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