Your message dated Fri, 20 Nov 2026 21:42:55 +0000
with message-id
<8baea3078664c27fb257ba91ca67d8ba682d8b95.ca...@adam-barratt.org.uk>
and subject line Re: Bug#1154618: bookworm-pu: package
poetry/1.3.2+dfsg-3+deb12u1
has caused the Debian Bug report #1154618,
regarding bookworm-pu: package poetry/1.3.2+dfsg-3+deb12u1
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1154618: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1154618
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
Tags: bookworm
User: [email protected]
Usertags: pu
X-Debbugs-Cc: [email protected]
[ Reason ]
CVE-2026-41140: poetry extracts sdist tarballs without path traversal
protection on Python versions lacking tarfile.data_filter. bookworm ships
Python 3.11.2, so a crafted sdist can write files outside the extraction
directory (via "../", symlinks or hardlinks) during lock/add/install.
The security team marked it no-dsa (minor issue).
[ Impact ]
A malicious sdist can overwrite arbitrary files writable by the user
running poetry, before any build step is executed.
[ Tests ]
Built in a bookworm chroot: the build-time test suite passes (1047 passed).
Tested in a bookworm chroot with crafted sdists (path traversal, outside
symlink, outside hardlink): with 1.3.2+dfsg-3 a file is written outside
the extraction directory, with the new version all are refused, while a
regular sdist is still extracted.
autopkgtest: 1045 passed, 2 failed (test_info_setup_complex*); the same
two tests fail with 1.3.2+dfsg-3, so they are not a regression.
[ Risks ]
Low. The patch is a backport of the upstream fix (e512e7fc, released in
2.3.4) and only touches the tar extraction in inspection/info.py; zip
handling is unchanged.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
* Backport upstream commit e512e7fc: refuse to write files outside the
target directory during sdist extraction (CVE-2026-41140)
[ Other info ]
Already fixed in trixie (2.1.2+dfsg-1+deb13u1) and unstable (2.3.4-4).
--
⠀⢀⣴⣾⠿⠿⣿⣶⣄⠀ Nico Della Torre (nicoz)
⢠⣿⠋⠀⣠⢄⠀⠙⣿⣇ Debian Maintainer · Ubuntu
⢾⡇⠀⣾⠀⠀⠀⢀⣿⡟ https://wiki.debian.org/nicoz
⠘⣇⠀⠘⢷⣶⣶⣾⠟⠁ IRC: nicoz @ OFTC, Libera.Chat
⠀⠈⠣⢄⠀⠀⠀⠀⠀⠀ GPG: 0456 E8BC 1DC0 B027 EF8D 66A6 9549 3787 F6F1 9F03
--- End Message ---
--- Begin Message ---
Duplicate of #1154617 (which I just closed)
On Fri, 2026-11-20 at 22:35 +0100, Nico Della Torre wrote:
> Package: release.debian.org
> Severity: normal
> Tags: bookworm
> User: [email protected]
> Usertags: pu
> X-Debbugs-Cc: [email protected]
>
> [ Reason ]
> CVE-2026-41140: poetry extracts sdist tarballs without path traversal
> protection on Python versions lacking tarfile.data_filter. bookworm
> ships
> Python 3.11.2, so a crafted sdist can write files outside the
> extraction
> directory (via "../", symlinks or hardlinks) during lock/add/install.
> The security team marked it no-dsa (minor issue).
>
> [ Impact ]
> A malicious sdist can overwrite arbitrary files writable by the user
> running poetry, before any build step is executed.
>
> [ Tests ]
> Built in a bookworm chroot: the build-time test suite passes (1047
> passed).
> Tested in a bookworm chroot with crafted sdists (path traversal,
> outside
> symlink, outside hardlink): with 1.3.2+dfsg-3 a file is written
> outside
> the extraction directory, with the new version all are refused, while
> a
> regular sdist is still extracted.
> autopkgtest: 1045 passed, 2 failed (test_info_setup_complex*); the
> same
> two tests fail with 1.3.2+dfsg-3, so they are not a regression.
>
> [ Risks ]
> Low. The patch is a backport of the upstream fix (e512e7fc, released
> in
> 2.3.4) and only touches the tar extraction in inspection/info.py; zip
> handling is unchanged.
>
> [ Checklist ]
> [x] *all* changes are documented in the d/changelog
> [x] I reviewed all changes and I approve them
> [x] attach debdiff against the package in (old)stable
> [x] the issue is verified as fixed in unstable
>
> [ Changes ]
> * Backport upstream commit e512e7fc: refuse to write files outside
> the
> target directory during sdist extraction (CVE-2026-41140)
>
> [ Other info ]
> Already fixed in trixie (2.1.2+dfsg-1+deb13u1) and unstable (2.3.4-
> 4).
>
--- End Message ---