CVE-2010-3842: Path Traversal
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.
Other sources
cURL did not properly cut off directory parts from user provided file name to be downloaded on operating systems, where backslashes are used to separate directories and file names. This could allow remote servers to create or overwrite files via a Content-Disposition header that suggests a crafted filename, and possibly execute arbitrary code as a consequence of writing to a certain file in a user's home directory. Different vulnerability than CVE-2010-2251, CVE-2010-2252 and CVE-2010-2253.
Note: As already mentioned in [2]. This flaw only affected those operating systems, where backslash is used to separate directories and file names, thus Microsoft Windows, Novell Netware, MSDOS, OS/2 and Symbian to mention some of them.
References: [1] http://curl.haxx.se/docs/security.html [2] http://curl.haxx.se/docs/adv20101013.html
Upstream patch: [3] http://curl.haxx.se/curl-content-disposition.patch
Credit: Upstream acknowledges Dan Fandrich as the original reporter.
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2010-3842?
CVE-2010-3842 has a medium severity level due to its ability to allow remote servers to create or overwrite arbitrary files.
How do I fix CVE-2010-3842?
To fix CVE-2010-3842, upgrade curl to version 7.21.2 or later, which addresses the vulnerability.
What versions of curl are affected by CVE-2010-3842?
CVE-2010-3842 affects curl versions 7.20.0 through 7.21.1.
What is the impact of CVE-2010-3842?
The impact of CVE-2010-3842 includes the potential for unauthorized file creation or overwriting on vulnerable systems.
Is CVE-2010-3842 a known vulnerability?
Yes, CVE-2010-3842 is a known vulnerability that was disclosed in October 2010.