CVE-2022-30115 Security feature bypass in https://github.com/curl/curl

Medium 4.3 Published Updated

Attackers can bypass HSTS protection in curl by manipulating trailing dots in hostnames, forcing insecure HTTP connections.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-30115?

CVE-2022-30115 is a medium-severity vulnerability in Haxx Curl, published on 1 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Using its HSTS support, curl can be instructed to use HTTPS directly insteadof using an insecure clear-text HTTP step even when HTTP is provided in theURL. This mechanism could be bypassed if the host name in the given URL used atrailing dot while not using one when it built the HSTS cache. Or the otherway around - by having the trailing dot in the HSTS cache and *not* using thetrailing dot in the URL.

Weakness: CWE-319, CWE-325

Which versions are affected by CVE-2022-30115?

It affects 10 products.

Products include Haxx Curl, Netapp Clustered Data Ontap, Netapp H300s Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware and 4 more.

How do I fix CVE-2022-30115?

Upgrade to a fixed version.

Is CVE-2022-30115 being exploited?

There is no known exploitation of CVE-2022-30115 in the wild and no public exploit code.

All Haxx Curl vulnerabilities

Sources

Also known as ALPINE-CVE-2022-30115, AZL-9891, CLEANSTART-2026-OY53589, CURL-CVE-2022-30115, DEBIAN-CVE-2022-30115, GHSA-p8vh-85vc-66x9.

Is CVE-2022-30115 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free