CVE-2022-42916: High severity Apple macOS Monterey vulnerability
A vulnerability was found in curl. The issue occurs because curl's HSTS check can be bypassed to trick it to keep using HTTP. Using its HSTS support, it can instruct curl to use HTTPS directly instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. This mechanism can be bypassed if the hostname in the given URL uses IDN characters that get replaced with 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) ..
Other sources
curl. Multiple issues were addressed by updating to curl version 7.86.0.
— Apple
curl's HSTS check could be bypassed to trick it to keep using HTTP. Using its HSTS support, curl can be instructed to use HTTPS directly instead of using an insecure clear-text 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 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) ..
Reference:
https://curl.se/docs/CVE-2022-42916.html
— Red Hat
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.
— Microsoft
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.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/jbcs-httpd24-curlto a version that resolves this vulnerability.Fixed in 0:7.86.0-2.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-curlto a version that resolves this vulnerability.Fixed in 0:7.86.0-2.el7 - Upgrade
Upgrade
redhat/curlto a version that resolves this vulnerability.Fixed in 7.86.0 - Upgrade
Upgrade
macOSto a version that resolves this vulnerability.Fixed in 12.6.3 - Upgrade
Upgrade
macOS Venturato a version that resolves this vulnerability.Fixed in 13.2 - Upgrade
Upgrade
curl/curlto a version that resolves this vulnerability.Fixed in 7.86.0 - Upgrade
Upgrade
curl/curlto a version that resolves this vulnerability.Fixed in 7.77.0 - Compensating control
Avoid using IDN hostname characters that can be replaced during IDN conversion (e.g., using UTF-8 U+3002 IDEOGRAPHIC FULL STOP instead of ASCII U+002E full stop) in URLs, since this can bypass curl's HSTS check to keep using HTTP.
Event History
Parent advisories
This vulnerability appears in the following advisories.
Peer vulnerabilities
Found alongside the following vulnerabilities.
- CVE-2023-23499
- CVE-2022-42915
- CVE-2022-42916
- CVE-2022-32221
- CVE-2022-35260
- CVE-2022-35252
- CVE-2023-23513
- CVE-2023-23493
- CVE-2022-32915
- CVE-2023-23507
- CVE-2023-23516
- CVE-2023-23504
- CVE-2023-23502
- CVE-2022-42834
- CVE-2023-23497
- CVE-2023-23505
- CVE-2023-27931
- CVE-2023-23511
- CVE-2023-23518
- CVE-2023-23517
- CVE-2023-23508
- CVE-2023-32438
- CVE-2023-23520
- CVE-2023-23539
- CVE-2023-41990
- CVE-2023-23530
- CVE-2023-23531
- CVE-2023-23519
- CVE-2023-23500
- CVE-2023-23506
- CVE-2023-23498
- CVE-2023-23503
- CVE-2023-28208
- CVE-2023-23510
- CVE-2023-23512
- CVE-2022-3705
- CVE-2023-32393
- CVE-2023-23496
- CVE-2023-23501
- CVE-2022-0108
Frequently Asked Questions
What is the vulnerability ID for this issue?
The vulnerability ID for this issue is CVE-2022-42916.
What is the severity of CVE-2022-42916?
The severity of CVE-2022-42916 is high.
How can this vulnerability be exploited?
This vulnerability can be exploited by bypassing the HSTS check in curl before version 7.86.0, allowing an attacker to trick it into staying with HTTP.
Which software versions are affected by CVE-2022-42916?
macOS Monterey version 12.6.3, curl version up to 7.86.0, jbcs-httpd24-curl version up to 0:7.86.0-2.el8, jbcs-httpd24-curl version up to 0:7.86.0-2.el7, and macOS Ventura version up to 13.2.
How do I fix CVE-2022-42916?
To fix CVE-2022-42916, update to curl version 7.86.0 or newer.