VYPR
Unrated severityNVD Advisory· Published Jun 1, 2022· Updated Aug 7, 2024

CVE-2022-27780

CVE-2022-27780

Description

The curl URL parser incorrectly accepts percent-encoded forward slashes in host names, allowing attackers to bypass host-based filters and checks.

AI Insight

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

The curl URL parser incorrectly accepts percent-encoded forward slashes in host names, allowing attackers to bypass host-based filters and checks.

Vulnerability

The curl URL parser accepts percent-encoded URL separators such as %2F in the host name part of a URL, treating them as literal characters instead of decoding them as the path separator. This affects versions of curl prior to 7.86.0 [1]. For example, the URL http://example.com%2F127.0.0.1/ is parsed as having host example.com with a path /127.0.0.1/, while the intended host should be example.com followed by a path containing %2F. This parsing flaw can lead to URL confusion.

Exploitation

An attacker can craft a URL such as http://example.com%2F127.0.0.1/ and induce a victim or a server using curl to process it. No special privileges are required; the attacker only needs to supply the malicious URL to a curl-based client or service. The parser will accept the invalid host name and treat the percent-encoded slash as a path separator, effectively making the URL point to a different host (in this case 127.0.0.1). This can be used to bypass host-based filters, access controls, or security checks that rely on the host name.

Impact

Successful exploitation allows an attacker to cause the URL to be interpreted as targeting a different host than intended, potentially gaining access to internal resources or bypassing security controls. The impact is a violation of integrity and confidentiality as the attacker can redirect requests to unintended destinations. The severity is moderate (CVSS 5.3) and could lead to information disclosure or further attacks depending on the context.

Mitigation

The fix is included in curl version 7.86.0 and later [1]. Users should upgrade to the latest version. No known workaround exists for earlier versions [1]. Gentoo users can update via emerge --sync && emerge --ask --oneshot --verbose ">=net-misc/curl-7.86.0". The vulnerability is not listed in the Known Exploited Vulnerabilities (KEV) catalog.

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

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.