Article View: linux.debian.bugs.dist
Article #5270Bug#1154618: bookworm-pu: package poetry/1.3.2+dfsg-3+deb12u1
From: Nico Della Torre
Date: Fri, 20 Nov 2026 21:50
Date: Fri, 20 Nov 2026 21:50
51 lines
4854 bytes
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
Technical Details
Message-ID:
<O1EEx-d9qx-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Nico Della Torre <nicoz91@ubuntu.com> Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release Subject: Bug#1154618: bookworm-pu: package poetry/1.3.2+dfsg-3+deb12u1 Date: Fri, 20 Nov 2026 22:50:01 +0100 Message-ID: <O1EEx-d9qx-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 20 21:41:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Nico Della Torre <nicoz91@ubuntu.com>, 1154618@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: poetry@packages.debian.org, debian-release@lists.debian.org X-Debian-Pr-Message: report 1154618 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: bookworm Cfbl-Feedback-ID: 6b00bd1920a6350eae16e3ac:ecfdcc762baa376a0bd9394a663cb811 Cfbl-Address: abuse@forwardemail.net; report=arf X-Forward-Email-ID: 6b00bd1920a6350eae16e3ac X-Forward-Email-Sender: rfc822; nicoz91@ubuntu.com, smtp.forwardemail.net, 149.28.215.223 X-Forward-Email-Version: 2.19.33 X-Forward-Email-Website: https://forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, it-IT Autocrypt: addr=nicoz91@ubuntu.com; keydata= xjMEatB+7BYJKwYBBAHaRw8BAQdARGh9r4fLjii90C49f7Hy+OY6iY02h1ZlFWQgmN8Scz3N JU5pY28gRGVsbGEgVG9ycmUgPG5pY296OTFAdWJ1bnR1LmNvbT7ClgQTFgoAPhYhBARW6Lwd wLAn741mppVJN4f28Z8DBQJq8yeKAhsDBQkD5YoEBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheA AAoJEJVJN4f28Z8DWqUA/24PIN/kDXrN6cA8r13ywpOEOGsYMdc12kFXXIsniKh4AQCthSwV pBRQuJrSYHlN/7faOT0n8jn+1GUtQ6TV0PgXB844BGrQf1gSCisGAQQBl1UBBQEBB0D3QetI xBKpMuLZXrjOVS2EVHIt8xvVrvlYNWpwBa3tAAMBCAfCfgQYFgoAJhYhBARW6LwdwLAn741m ppVJN4f28Z8DBQJq8yeKAhsMBQkD5YoEAAoJEJVJN4f28Z8D7KEBAPKjh2lHhXDErPMnOW1z NyNUrytBrPkjoFWwbO2UI/klAQCw/+abM7/W8h8ZXYQqStVOOkJSG1Tm9aSqroDyjDCIAQ== Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003789 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 51 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 20 Nov 2026 22:35:16 +0100 X-Original-Message-ID: <ec5c4790-ac6d-4fb1-98eb-496c43188a76@ubuntu.com> X-Original-X-Complaints-To: abuse@forwardemail.net