Vulnerability · Published Dec 23, 2022 · Assigned by hackerone
CVE-2022-43551
High 7.5
In plain English
A high-severity security flaw in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 16.6% (higher than 97% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Using its HSTS support, curl can be instructed to use HTTPS instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. However, the HSTS mechanism could be bypassed if the host name in the given URL first uses IDN characters that get replaced to ASCII counterparts as part of the IDN conversion. Like using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop (U+002E) `.`. Then in a subsequent request, it does not detect the HSTS state and makes a clear text transfer. Because it would store the info IDN encoded but look for it IDN decoded.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 7.87.0-r0 | ALPINE-CVE-2022-43551 |
| Alpine:v3.21 | curl | 7.87.0-r0 | ALPINE-CVE-2022-43551 |
| Alpine:v3.22 | curl | 7.87.0-r0 | ALPINE-CVE-2022-43551 |
| Alpine:v3.23 | curl | 7.87.0-r0 | ALPINE-CVE-2022-43551 |
| Alpine:v3.24 | curl | 7.87.0-r0 | ALPINE-CVE-2022-43551 |
| Debian:12 | curl | 7.86.0-3 | DEBIAN-CVE-2022-43551 |
| Debian:13 | curl | 7.86.0-3 | DEBIAN-CVE-2022-43551 |
| Debian:14 | curl | 7.86.0-3 | DEBIAN-CVE-2022-43551 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.7 | UBUNTU-CVE-2022-43551 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.7 | USN-5788-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in curl 7.87.0 |
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://hackerone.com/reports/1755083
- FEDORA-2022-d7ee33d4ad vendor-advisory
- https://security.netapp.com/advisory/ntap-20230427-0007/
- https://security.gentoo.org/glsa/202310-12
- https://cert-portal.siemens.com/productcert/html/ssa-892048.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html