Bug 2082203 (CVE-2022-27780) - CVE-2022-27780 curl: percent-encoded path separator in URL host
Summary: CVE-2022-27780 curl: percent-encoded path separator in URL host
Keywords:
Status: NEW
Alias: CVE-2022-27780
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2082195
TreeView+ depends on / blocked
 
Reported: 2022-05-05 15:07 UTC by Marian Rehak
Modified: 2022-05-11 14:40 UTC (History)
25 users (show)

Fixed In Version: curl 7.83.1
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in curl. This issue occurs because the curl URL parser wrongly accepts percent-encoded URL separators like '/' when decoding the hostname part of a URL, making it a different URL using the wrong hostname when it is later retrieved. This flaw allows a malicious actor to make circumventing filters.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Marian Rehak 2022-05-05 15:07:26 UTC
The curl URL parser wrongly accepts percent-encoded URL separators like '/' when decoding the host name part of a URL, making it a *different* URL using the wrong host name when it is later retrieved. For example, a URL like `http://example.com%2F10.0.0.1/`, would be allowed by the parser and get transposed into `http://example.com/10.0.0.1/`. This flaw can be used to circumvent filters, checks and more.


Note You need to log in before you can comment on or make changes to this bug.