Description
dpkg 1.15.9, 1.16.x before 1.16.14, and 1.17.x before 1.17.9 expect the patch program to be compliant with a need for the "C-style encoded filenames" feature, but is supported in environments with noncompliant patch programs, which triggers an interaction error that allows remote attackers to conduct directory traversal attacks and modify files outside of the intended directories via a crafted source package. NOTE: this vulnerability exists because of reliance on unrealistic constraints on the behavior of an external program.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | dpkg | 1.17.9 | — |
| Debian 13 | dpkg | 1.17.9 | — |
| Debian 12 | dpkg | 1.17.9 | — |
| Debian 7 | dpkg | 1.16.14 | DSA-2915-2 |
| Debian 6.0 | dpkg | 1.15.10 | DSA-2915-2 |
Advisories 1
- DSA-2915-2 dpkg - security update Debian Security (DSA / DLA) · Mar 9, 2026