Article View: linux.debian.bugs.dist
Article #5769Bug#1154467: certdata2pem.py: path traversal via escaped CKA_LABEL (build-time arbitrary file creation)
From: Julien Cristau
Date: Mon, 23 Nov 2026 16:00
Date: Mon, 23 Nov 2026 16:00
40 lines
3235 bytes
3235 bytes
Control: severity -1 minor Control: tag -1 -security On 11/19/26 13:45, Bassel Shurbaji wrote: > Package: ca-certificates > Version: 20260816+nmu1 > Severity: important > Tags: security patch > > Dear Maintainer, > > mozilla/certdata2pem.py derives an output filename from each certificate's > CKA_LABEL. It sanitises the label (replacing '/' with '_') *before* > decoding > backslash escape sequences, so an escaped path separator in a label > survives > sanitisation and is turned back into a real '/' afterwards. The result > is used > directly as the path passed to open(), allowing the written file to > escape the > intended output directory. > > This is an input-validation / defense-in-depth issue, not a remote > vulnerability: certdata.txt is normally the trusted Mozilla NSS trust > store. > It becomes relevant wherever certdata2pem.py is run on an > attacker-influenced > certdata.txt (e.g. a derivative rebuilding the bundle from a > vendor/mirror blob, > a pipeline fetching certdata over a weak channel, or a developer > running the > tool on an untrusted file). I'm filing it as a hardening fix and am not > requesting an embargo; a CVE is at your discretion. > I think calling this a security issue is quite a stretch. certdata.txt is not arbitrary/untrusted input, certainly not in the context of this package. Cheers, Julien
Technical Details
Message-ID:
<O2ECt-dHaF-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O2ECt-dHaF-3@gated-at.bofh.it> <O2ECt-dHaF-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Julien Cristau <jcristau@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154467: certdata2pem.py: path traversal via escaped CKA_LABEL (build-time arbitrary file creation) Date: Mon, 23 Nov 2026 17:00:01 +0100 Message-ID: <O2ECt-dHaF-1@gated-at.bofh.it> References: <O2ECt-dHaF-3@gated-at.bofh.it> <O2ECt-dHaF-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 23 15:55:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Julien Cristau <jcristau@debian.org>, 1154467@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: jcristau@debian.org X-Debian-Pr-Message: followup 1154467 X-Debian-Pr-Package: ca-certificates X-Debian-Pr-Keywords: patch security X-Debian-Pr-Source: ca-certificates MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Debian-User: jcristau X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004461 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 40 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 23 Nov 2026 16:52:24 +0100 X-Original-Message-ID: <686af855-d15c-4173-b670-52a2fdc96c4d@debian.org> X-Original-References: <CAAZ1S4YPLztC1W5oDBgp-9SUSa7E5qMALxoXYYW2899Bxa_NVw@mail.gmail.com> <CAAZ1S4YPLztC1W5oDBgp-9SUSa7E5qMALxoXYYW2899Bxa_NVw@mail.gmail.com>