🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Nico Della Torre Fri, 20 Nov 2026 21:50
Bug#1154618: bookworm-pu: package poetry/1.3.2+dfsg-3+deb12u1
#5270
Author: Nico Della Torre
Date: Fri, 20 Nov 2026 21:50
51 lines
4854 bytes
Package: release.debian.org
Severity: normal
Tags: bookworm
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-Cc: poetry@packages.debian.org

[ 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads