Skip to content
OpenAdvisories
Medium · 5.3 CVE-2022-27780 EUVD-2022-32275GHSA-82rv-h33p-2xgc

The curl URL parser wrongly accepts percent-encoded URL separators like '/'when decoding the host name part of a URL, making it a *differen…

Published Jun 1, 2022 · Updated Oct 14, 2026 · Assigned by hackerone

Description

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 usingthe wrong host name when it is later retrieved.For example, a URL like `http://example.com%2F127.0.0.1/`, would be allowed bythe parser and get transposed into `http://example.com/127.0.0.1/`. This flawcan be used to circumvent filters, checks and more.

Affected products

VendorProductAffectedFixed
— https://github.com/curl/curl Fixed in 7.83.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.83.1-1 —
Debian 13 curl 7.83.1-1 —
Debian 12 curl 7.83.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS curl 7.81.0-1ubuntu1.2 USN-5412-1
Ubuntu 20.04 LTS curl 7.68.0-1ubuntu2.11 USN-5412-1
Ubuntu 18.04 LTS curl 7.58.0-2ubuntu3.18 USN-5412-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.83.1-1.1 openSUSE-SU-2024:12062-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.83.1-r0 —
Alpine v3.23 curl 7.83.1-r0 —
Alpine v3.22 curl 7.83.1-r0 —
Alpine v3.21 curl 7.83.1-r0 —
Alpine v3.20 curl 7.83.1-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.83.1-r0 —
Alpine v3.18 curl 7.83.1-r0 —
Alpine v3.17 curl 7.83.1-r0 —
Alpine v3.16 curl 7.83.1-r0 —
Alpine v3.15 curl 7.80.0-r2 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 curl +4 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) curl 7.83.1-1 —

Advisories 10

References