JLSEC-2026-1599
JSON

7.6high

In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the system mailcap file.

Severity
7.6high CVSS:3.1 by Julia Security Advisories
Published
Last changed

Description

In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the system mailcap file. This may allow attackers to inject shell commands into applications that call mailcap.findmatch with untrusted input (if they lack validation of user-provided filenames or arguments). The fix is also back-ported to 3.7, 3.8, 3.9

Affected

Product or packageVersionsReported by
Python_jll (Julia)before 3.10.8+0Julia Security Advisories

All scores

Julia Security AdvisoriesNot scored CVSS:2.0AV:N/AC:L/Au:S/C:P/I:C/A:P
Julia Security Advisories7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

References

https://bugs.python.org/issue24778web
https://cert-portal.siemens.com/productcert/html/ssa-398330.htmlweb
https://github.com/python/cpython/issues/68966web
https://lists.debian.org/debian-lts-announce/2023/05/msg00024.htmlweb
https://lists.debian.org/debian-lts-announce/2023/06/msg00039.htmlweb
https://lists.debian.org/debian-lts-announce/2024/12/msg00000.htmlweb
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46KWPTI72SSEOF53DOYQBQOCN4QQB2GE/web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/53TQZFLS6O3FLIMVSXFEEPZSWLDZLBOX/web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/57NECACX333A3BBZM2TR2VZ4ZE3UG3SN/web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5DBVY4YC2P6EPZZ2DROOXHDOWZ4BJFLW/web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIKVSW3H6W2GQGDE5DTIWLGFNH6KKEW/web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AKGMYDVKI3XNM27B6I6RQ6QV3TVJAUCG/web

Related

Sources

SourceRecordLicence
Julia Security AdvisoriesJLSEC-2026-1599 changed 2026-12-01CC-BY-4.0