JLSEC-2026-1599: High severity julia/python_jll vulnerability
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Python_jllto a version that resolves this vulnerability.Fixed in 3.10.8+0 - Compensating control
Validate user-provided filenames and arguments before passing them to mailcap.findmatch.
Event History
Frequently Asked Questions
Which applications are exposed to command injection?
Applications are exposed if they call mailcap.findmatch with untrusted filenames or arguments and do not validate that user-provided input. The issue affects commands obtained from the system mailcap file because the module does not add escape characters.
What level of access does an attacker need?
An attacker needs a way to supply untrusted input that reaches an application's call to mailcap.findmatch. The vector is network-accessible with low attack complexity, but exploitation requires authentication according to the provided severity vector.
Are fixed Python releases available?
The issue is described as affecting CPython through 3.10.8. The fix was backported to the 3.7, 3.8, and 3.9 release branches.