Directory Traversal in dpkg-source (dpkg-dev 1.3.0)
CVE-2014-3865 describes multiple directory traversal vulnerabilities in dpkg-source, part of dpkg-dev 1.3.0. The vulnerability allows remote attackers to modify files outside of the intended directories by providing a malicious source package. This is achieved by crafting the Index: pseudo-header in patch files, either omitting the --- and +++ header lines or supplying a +++ header line with a blank pathname, thereby bypassing directory restrictions.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker to write or modify arbitrary files on the system where the source package is unpacked, potentially leading to privilege escalation, code execution, or system compromise, depending on the files targeted.
If you can’t patch tonight, do this now.
As a temporary mitigation, avoid applying untrusted or unaudited source packages. Restrict access to systems where dpkg-source is used and monitor for suspicious patch files with malformed headers.
Patch, then assume compromise.
Upgrade dpkg-dev to a version where this vulnerability is patched. Ensure that patch parsing in dpkg-source strictly validates header lines and enforces directory boundaries.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.