Skip to content
OpenAdvisories
Unscored Public exploit CVE-2009-0037 EUVD-2009-0048GHSA-jr23-52fg-m7rm

The redirect implementation in curl and libcurl 5.11 through 7.19.3, when CURLOPT_FOLLOWLOCATION is enabled, accepts arbitrary Location val…

Published Mar 5, 2009 · Updated Aug 7, 2024 · Assigned by redhat

Description

The redirect implementation in curl and libcurl 5.11 through 7.19.3, when CURLOPT_FOLLOWLOCATION is enabled, accepts arbitrary Location values, which might allow remote HTTP servers to (1) trigger arbitrary requests to intranet servers, (2) read or overwrite arbitrary files via a redirect to a file: URL, or (3) execute arbitrary commands via a redirect to an scp: URL.

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.18.2-8.1 —
Debian 13 curl 7.18.2-8.1 —
Debian 12 curl 7.18.2-8.1 —
Debian 5.0 curl 7.18.2-8lenny2 DSA-1738-1
Debian 4.0 curl 7.15.5-1etch2 DSA-1738-1
ReleasePackageFixed inAdvisory
RHEL 5 curl +1 7.15.5-2.1.el5_3.4 RHSA-2009:0341
RHEL 4 curl +1 7.12.1-11.1.el4_7.1 RHSA-2009:0341
RHEL 3 curl +1 7.10.6-9.rhel3 RHSA-2009:0341
RHEL 2 curl +1 7.8-3.rhel2 RHSA-2009:0341
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.51.0-1.1 openSUSE-SU-2024:10303-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References