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

