In curl before 7.86.0, the HSTS check could be bypassed to trick it into staying with…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-319.
Summary
In curl before 7.86.0, the HSTS check could be bypassed to trick it into staying with HTTP. Using its HSTS support, curl can be instructed to use HTTPS directly (instead of using an insecure cleartext HTTP step) even when HTTP is provided in the URL. This mechanism could be bypassed if the host name in the given URL uses IDN characters that get replaced with ASCII counterparts as part of the IDN conversion, e.g., using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop of U+002E (.). The earliest affected version is 7.77.0 2021-05-26.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* | 7.77.0 to before 7.86.0 | Vulnerable | Haxx |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
| cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:* | before 12.6.3; 13.0 to before 13.2 | Vulnerable | Apple |
| cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:* | 8.2.0 to before 8.2.12; 9.0.0 to before 9.0.6 | Vulnerable | Splunk |
| cpe:2.3:a:splunk:universal_forwarder:9.1.0:*:*:*:*:*:*:* | 9.1.0 | Vulnerable | Splunk |
- cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* Versions 7.77.0 to before 7.86.0 Vulnerable ·Haxx
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
- cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:* Versions before 12.6.3; 13.0 to before 13.2 Vulnerable ·Apple
- cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:* Versions 8.2.0 to before 8.2.12; 9.0.0 to before 9.0.6 Vulnerable ·Splunk
- cpe:2.3:a:splunk:universal_forwarder:9.1.0:*:*:*:*:*:*:* Versions 9.1.0 Vulnerable ·Splunk
Remediation
Red Hat 2 advisories
- RHSA-2022:8841 Released 2022-12-08 · Red Hat rating ImportantRed Hat JBoss Core Services Apache HTTP Server 2.4.51 SP1 security update
- Red Hat JBoss Core Services
- RHSA-2022:8840 Released 2022-12-08 · Red Hat rating ModerateRed Hat JBoss Core Services Apache HTTP Server 2.4.51 SP1 security update
- Red Hat JBoss Core Services on RHEL 7 Server jbcs-httpd24-curl-7.86.0-2.el7jbcs, jbcs-httpd24-httpd-2.4.51-37.el7jbcs, jbcs-httpd24-httpd-devel-2.4.51-37.el7jbcs +15
- Red Hat JBoss Core Services on RHEL 8 jbcs-httpd24-curl-7.86.0-2.el8jbcs, jbcs-httpd24-httpd-2.4.51-37.el8jbcs, jbcs-httpd24-httpd-devel-2.4.51-37.el8jbcs +15
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat JBoss Core Services | Fixed | RHSA-2022:8841 |
| Red Hat JBoss Core Services on RHEL 7 Server | Fixed | RHSA-2022:8840 |
| Red Hat JBoss Core Services on RHEL 8 | Fixed | RHSA-2022:8840 |
Not affected: 6 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat JBoss Core Services on RHEL 7 Server
- Red Hat JBoss Core Services on RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-42916
- 2026-10-03 Alias added: GHSA-6295-5j29-3cc8
- 2026-10-09 Fix available: RHSA-2022:8841 · Red Hat
- 2026-10-16 Fix available: Red Hat JBoss Core Services · Red Hat
References
Advisory 10
- https://curl.se/docs/CVE-2022-42916.html
- FEDORA-2022-01ffde372c
- FEDORA-2022-39688a779d
- FEDORA-2022-e9d65906c4
- GLSA-202212-01
- [oss-security] 20221221 curl: CVE-2022-43551: Another HSTS bypass via IDN
- https://support.apple.com/kb/HT213604
- https://support.apple.com/kb/HT213605
- 20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3
- 20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2
Sources
- CVE-2022-42916 · CVE Program
- CVE-2022-42916 · NVD
- FIRST EPSS
- GHSA-6295-5j29-3cc8 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-42916 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences