CVE-2022-42916
Reported by mitre · Published October 29, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libcurl | Amazon Linux | 7.87.0-2.amzn2023.0.2, 7.79.1-7.amzn2.0.1 |
| libcurl-devel | Amazon Linux | 7.87.0-2.amzn2023.0.2, 7.79.1-7.amzn2.0.1 |
| curl | Amazon Linux | 7.87.0-2.amzn2023.0.2 |
| libcurl-minimal | Amazon Linux | 7.87.0-2.amzn2023.0.2 |
| curl | Wolfi | 7.86.0-r0 |
| curl-minimal | Amazon Linux | 7.87.0-2.amzn2023.0.2 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| macos | apple | 13.2, 12.6.3 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
| universal_forwarder | splunk | 9.0.6, 8.2.12 |
| curl | haxx | 7.86.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libcurl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | libcurl-devel | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | libcurl | 0 |
| amazon:2023 | curl | 0 |
| amazon:2023 | libcurl-minimal | 0 |
| amazon:2 | libcurl-devel | 0 |
| wolfi | curl | 0 |
| amazon:2023 | curl-minimal | 0 |
| n/a | n/a | * |
| alpine | curl | 0, 0, 0 |
| amazon:2 | curl | 0 |
| chainguard | curl | 0 |
Timeline
- Oct 27, 2022 PoC Published (7 in total, the first dated here)
- Oct 29, 2022 CVE Published
- Oct 29, 2022 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (12 in total, the first dated here)
- Jun 14, 2026 Coalition ESS Score
- Jul 2, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-42916
vulnetix vdb fixes CVE-2022-42916
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-42916/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-01ffde372c vendor-advisory
- FEDORA-2022-39688a779d vendor-advisory
- FEDORA-2022-e9d65906c4 vendor-advisory
- GLSA-202212-01 vendor-advisory
- [oss-security] 20221221 curl: CVE-2022-43551: Another HSTS bypass via IDN mailing-list
- 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 url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url