CVE-2010-3842
mediumpriority · track · 24EPSS 0.017 · 77 %ileEUUSEPSS · scored 2026-10-27
Absolute path traversal vulnerability in curl 7.20.0 through 7.21.1, when the --remote-header-name or -J option is used, allows remote servers to create or overwrite arbitrary files by using \ (backslash) as a separator of path components within the Content-disposition HTTP header.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- CURL-CVE-2010-3842local file overwrite2010-10-13vendor · osvUS
curl offers a command line option --remote-header-name (also usable as -J) which uses the filename of the Content-disposition: header when it saves the downloaded data locally. curl attempts to cut off the directory parts from any given filename in the header to only store files in the current directory. It might overwrite a local file using the same name as the header specifies. The stripping of the directory did not take backslashes into account. On some operating systems, backslashes are used to separate directories and filenames. This allows a rogue server to send back a response that overwrites a filename in the local machine that the user is allowed to write, potentially a system file, a command or a known executable. Operating systems affected include Windows, Netware, MSDOS, OS/2 and Symbian. This error is only present in the curl command line tool, it is NOT a problem of the library libcurl.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- http://curl.haxx.se/docs/adv_20101013.htmlenisa_euvd
- http://secunia.com/advisories/39532enisa_euvd
- http://securitytracker.com/id?1024583enisa_euvd
- http://www.openwall.com/lists/oss-security/2010/10/13/1enisa_euvd
- http://www.openwall.com/lists/oss-security/2010/10/13/4enisa_euvd
- http://www.openwall.com/lists/oss-security/2010/10/13/5enisa_euvd
- https://bugzilla.redhat.com/show_bug.cgi?id=642642enisa_euvd
- http://curl.haxx.se/docs/adv_20101013.htmlVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan