Skip to content

CVE-2022-42916 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...

HighCVSS 7.5 EPSS 2.5%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

21 packages: 20 fixed.

PackageAffectedFixed inStatus
alpine/curl(Alpine v3.15) >= 7.77.0, < 7.80.0-r4 7.80.0-r4 Fixed
alpine/curl(Alpine v3.16) >= 7.77.0, < 7.83.1-r4 7.83.1-r4 Fixed
alpine/curl(Alpine v3.17) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
alpine/curl(Alpine v3.18) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
alpine/curl(Alpine v3.19) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
alpine/curl(Alpine v3.20) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
alpine/curl(Alpine v3.21) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
alpine/curl(Alpine v3.22) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
alpine/curl(Alpine v3.23) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
alpine/curl(Alpine v3.24) >= 7.77.0, < 7.86.0-r0 7.86.0-r0 Fixed
apple macos < 12.6.3; >= 13.0, < 13.2 12.6.3, 13.2 Fixed
debian/curl(Debian 12) < 7.86.0-1 7.86.0-1 Fixed
debian/curl(Debian 13) < 7.86.0-1 7.86.0-1 Fixed
debian/curl(Debian 14) < 7.86.0-1 7.86.0-1 Fixed
haxx curl >= 7.77.0, < 7.86.0 7.86.0 Fixed
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Splunk Universal Forwarder = 9.1.0; >= 8.2.0, < 8.2.12; >= 9.0.0, < 9.0.6 8.2.12, 9.0.6 Fixed
ubuntu/curl(Ubuntu 22.04) < 7.81.0-1ubuntu1.6; = 7.74.0-1.3ubuntu2; = 7.74.0-1.3ubuntu3; = 7.80.0-3 +5 more 7.81.0-1ubuntu1.6 Fixed
fedoraproject fedora = 35; = 36; = 37 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
ubuntu/curl(Ubuntu:22.04) < 7.81.0-1ubuntu1.6 7.81.0-1ubuntu1.6
haxx curl >= 7.77.0, < 7.86.0 7.86.0
fedoraproject fedora = 35 No fix listed
fedoraproject fedora = 36 No fix listed
fedoraproject fedora = 37 No fix listed
apple macos < 12.6.3 12.6.3
apple macos >= 13.0, < 13.2 13.2
Splunk Universal Forwarder >= 8.2.0, < 8.2.12 8.2.12
Splunk Universal Forwarder >= 9.0.0, < 9.0.6 9.0.6
Splunk Universal Forwarder = 9.1.0 No fix listed
debian/curl(Debian:12) < 7.86.0-1 7.86.0-1
debian/curl(Debian:14) < 7.86.0-1 7.86.0-1
debian/curl(Debian:13) < 7.86.0-1 7.86.0-1
ubuntu/curl(Ubuntu:22.04) = 7.74.0-1.3ubuntu2 No fix listed
ubuntu/curl(Ubuntu:22.04) = 7.74.0-1.3ubuntu3 No fix listed
ubuntu/curl(Ubuntu:22.04) = 7.80.0-3 No fix listed
ubuntu/curl(Ubuntu:22.04) = 7.81.0-1 No fix listed
ubuntu/curl(Ubuntu:22.04) = 7.81.0-1ubuntu1.1 No fix listed
ubuntu/curl(Ubuntu:22.04) = 7.81.0-1ubuntu1.2 No fix listed
ubuntu/curl(Ubuntu:22.04) = 7.81.0-1ubuntu1.3 No fix listed
ubuntu/curl(Ubuntu:22.04) = 7.81.0-1ubuntu1.4 No fix listed
alpine/curl(Alpine:v3.15) >= 7.77.0, < 7.80.0-r4 7.80.0-r4
Show 9 more
ProductAffected versionsFixed in
alpine/curl(Alpine:v3.16) >= 7.77.0, < 7.83.1-r4 7.83.1-r4
alpine/curl(Alpine:v3.17) >= 7.77.0, < 7.86.0-r0 7.86.0-r0
alpine/curl(Alpine:v3.18) >= 7.77.0, < 7.86.0-r0 7.86.0-r0
alpine/curl(Alpine:v3.19) >= 7.77.0, < 7.86.0-r0 7.86.0-r0
alpine/curl(Alpine:v3.20) >= 7.77.0, < 7.86.0-r0 7.86.0-r0
alpine/curl(Alpine:v3.21) >= 7.77.0, < 7.86.0-r0 7.86.0-r0
alpine/curl(Alpine:v3.22) >= 7.77.0, < 7.86.0-r0 7.86.0-r0
alpine/curl(Alpine:v3.23) >= 7.77.0, < 7.86.0-r0 7.86.0-r0
alpine/curl(Alpine:v3.24) >= 7.77.0, < 7.86.0-r0 7.86.0-r0

References