VYPR
Unrated severityNVD Advisory· Published Oct 29, 2022· Updated Feb 13, 2026

CVE-2022-42916

CVE-2022-42916

Description

An IDN hostname bypass in curl before 7.86.0 allows HTTP downgrade when HSTS is enabled, violating HTTPS policy.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

An IDN hostname bypass in curl before 7.86.0 allows HTTP downgrade when HSTS is enabled, violating HTTPS policy.

Vulnerability

In curl versions 7.77.0 through 7.85.0, the HSTS (HTTP Strict Transport Security) check can be bypassed using Internationalized Domain Names (IDN). When curl is configured with HSTS support and a URL contains IDN characters that are converted to ASCII equivalents during IDN processing—for example, using the Unicode character U+3002 (IDEOGRAPHIC FULL STOP) instead of the ASCII full stop (U+002E)—the hostname after conversion may not match the HSTS cache entry, causing curl to fall back to cleartext HTTP even when HTTPS was intended [3][4].

Exploitation

An attacker can exploit this by tricking a victim into using curl (or an application that relies on curl) to access a URL containing a specially crafted IDN hostname. The victim must have HSTS support enabled in curl, and the attacker must be able to influence the URL used (e.g., via a crafted link or redirect). The IDN conversion silently changes the hostname, causing the HSTS preload list or previously stored HSTS policy to not apply, thus allowing a man-in-the-middle to downgrade the connection to HTTP [3][4].

Impact

Successful exploitation allows a man-in-the-middle attacker to force the use of plaintext HTTP instead of HTTPS, defeating HSTS protections. This can lead to disclosure or modification of data in transit (confidentiality and integrity compromise) that the user assumed would be encrypted. The attacker gains the ability to intercept, read, or alter network traffic that should have been protected by HTTPS.

Mitigation

The vulnerability is fixed in curl version 7.86.0, released October 26, 2022 [3][4]. Users should update curl to 7.86.0 or later. Apple included the fix in macOS Ventura 13.2 and macOS Monterey 12.6.3 [1][2][3][4]. No workaround is documented for unpatched versions; disabling HSTS may be a partial mitigation but is not recommended. The vulnerability is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog as of early 2025.

AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

20

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

11

News mentions

0

No linked articles in our index yet.