Vulnerability · Published Oct 29, 2022 · Assigned by mitre
CVE-2022-42916
High 7.5
In plain English
A high-severity security flaw in the curl package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 7.86.0-r0 | ALPINE-CVE-2022-42916 |
| Alpine:v3.21 | curl | 7.86.0-r0 | ALPINE-CVE-2022-42916 |
| Alpine:v3.22 | curl | 7.86.0-r0 | ALPINE-CVE-2022-42916 |
| Alpine:v3.23 | curl | 7.86.0-r0 | ALPINE-CVE-2022-42916 |
| Alpine:v3.24 | curl | 7.86.0-r0 | ALPINE-CVE-2022-42916 |
| Debian:12 | curl | 7.86.0-1 | DEBIAN-CVE-2022-42916 |
| Debian:13 | curl | 7.86.0-1 | DEBIAN-CVE-2022-42916 |
| Debian:14 | curl | 7.86.0-1 | DEBIAN-CVE-2022-42916 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.6 | UBUNTU-CVE-2022-42916 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.6 | USN-5702-1 |
Affected products (as reported)
Weakness: CWE-319 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://curl.se/docs/CVE-2022-42916.html
- FEDORA-2022-01ffde372c vendor-advisory
- FEDORA-2022-39688a779d vendor-advisory
- FEDORA-2022-e9d65906c4 vendor-advisory
- https://security.netapp.com/advisory/ntap-20221209-0010/
- GLSA-202212-01 vendor-advisory
- [oss-security] 20221221 curl: CVE-2022-43551: Another HSTS bypass via IDN mailing-list
- https://support.apple.com/kb/HT213604
- https://support.apple.com/kb/HT213605
- 20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3 mailing-list
- 20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2 mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-892048.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html