Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847976 (CVE-2022-1664) - <app-arch/dpkg-1.20.9-r1: directory traversal via crafted orig.tar and debian.tar
Summary: <app-arch/dpkg-1.20.9-r1: directory traversal via crafted orig.tar and debian...
Alias: CVE-2022-1664
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
Whiteboard: B2 [glsa?]
Depends on:
Reported: 2022-05-28 21:59 UTC by John Helmert III
Modified: 2023-10-13 13:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 21:59:12 UTC

Dpkg::Source::Archive in dpkg, the Debian package management system, before version 1.21.8, 1.20.10, 1.19.8, 1.18.26 is prone to a directory traversal vulnerability. When extracting untrusted source packages in v2 and v3 source package formats that include a debian.tar, the in-place extraction can lead to directory traversal situations on specially crafted orig.tar and debian.tar tarballs.

1.20.10 patch:
1.21.8 patch:

Please bump.
Comment 1 Larry the Git Cow gentoo-dev 2023-01-04 09:09:58 UTC
The bug has been referenced in the following commit(s):

commit 354a6035384dee11b2fb6a43298c1235838b6ae4
Author:     Georgy Yakovlev <>
AuthorDate: 2023-01-04 08:48:32 +0000
Commit:     Georgy Yakovlev <>
CommitDate: 2023-01-04 08:48:32 +0000

    app-arch/dpkg: stablebump, add CVE-2022-1664 patch
    Signed-off-by: Georgy Yakovlev <>

 .../{dpkg-1.20.9.ebuild => dpkg-1.20.9-r1.ebuild}  |   3 +-
 .../dpkg/files/dpkg-1.20.9-CVE-2022-1664.patch     | 324 +++++++++++++++++++++
 2 files changed, 326 insertions(+), 1 deletion(-)
Comment 2 Georgy Yakovlev archtester gentoo-dev 2023-01-04 09:18:39 UTC
bumped current stable,

there are some bugs in current unstables, as soon as it'll be sorted out I'll file new stablereq and remove all other versions right after.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-01-04 17:41:33 UTC