CVE-2022-30115
JSON

4.3medium

HSTS bypass via trailing dot

Severity
4.3medium CVSS:3.1 by NVD
Exploit likelihood
1.04% (higher than 63% of CVEs)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2022-30115

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.

Affected

Product or packageVersionsReported by
https://github.com/curl/curlFixed in 7.83.1CVE List
https://github.com/curl/curl.gitfrom 7.82.0 before 7.83.1, from b27ad8e1d3e68eb3214fcbb398ca436873aa7c67 before fae6fea209a2d4db1582f608bd8cc8000721733acurl
haxx curlfrom 7.82.0 before 7.83.1NVD
netapp hci_bootstrap_osNot specifiedNVD
netapp clustered_data_ontapNot specifiedNVD
netapp solidfire,_enterprise_sds_&_hci_storage_nodeNot specifiedNVD
netapp solidfire_&_hci_management_nodeNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD
netapp h410s_firmwareNot specifiedNVD
splunk universal_forwarderfrom 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0NVD

All scores

curlmedium rating
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:N/A:N

Classification

CWE-319CWE-325

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

curl

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 hostname in the given URL used a trailing dot while not using one when it built the HSTS cache. Or the other way around - by having the trailing dot in the HSTS cache and not using the trailing dot in the URL.

Since trailing dots in hostnames are somewhat special, many sites work equally fine with or without a trailing dot present.

NVD (es)

usando su soporte HSTS, curl puede ser instruido para usar HTTPS directamente en lugar de usar un paso no seguro de texto sin cifrar HTTP incluso cuando HTTP es proporcionado en la URL. Este mecanismo podría ser omitido si el nombre de host en la URL dada usara un endpoint mientras no es usado uno cuando es construida la caché HSTS. O al revés, si el endpoint estuviera en la caché HSTS y *no* es usado el punto al final en la URL

References

Sources

SourceRecordLicence
CVE ListCVE-2022-30115 changed 2026-10-14CVE Terms of Use
curlCURL-CVE-2022-30115 changed 2026-10-25MIT
NVDCVE-2022-30115 changed 2026-10-14Public domain