Skip to content

CVE-2015-20107 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 appl...

HighCVSS 7.6 EPSS 2.8%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
ubuntu/python2.7(Ubuntu:22.04) < 2.7.18-13ubuntu1.1 2.7.18-13ubuntu1.1
ubuntu/python3.10(Ubuntu:22.04) < 3.10.4-3ubuntu0.1 3.10.4-3ubuntu0.1
debian/pypy3(Debian:12) < 7.3.11+dfsg-1 7.3.11+dfsg-1
debian/pypy3(Debian:13) < 7.3.11+dfsg-1 7.3.11+dfsg-1
debian/pypy3(Debian:14) < 7.3.11+dfsg-1 7.3.11+dfsg-1
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
alpine/python3(Alpine:v3.17) < 3.10.5-r0 3.10.5-r0
alpine/python3(Alpine:v3.18) < 3.10.5-r0 3.10.5-r0
alpine/python3(Alpine:v3.19) < 3.10.5-r0 3.10.5-r0
alpine/python3(Alpine:v3.20) < 3.10.5-r0 3.10.5-r0
alpine/python3(Alpine:v3.21) < 3.10.5-r0 3.10.5-r0
alpine/python3(Alpine:v3.22) < 3.10.5-r0 3.10.5-r0
alpine/python3(Alpine:v3.23) < 3.10.5-r0 3.10.5-r0
alpine/python3(Alpine:v3.24) < 3.10.5-r0 3.10.5-r0
python >= 3.7.0, <= 3.7.15 No fix listed
python >= 3.8.0, <= 3.8.15 No fix listed
python >= 3.9.0, <= 3.9.15 No fix listed
python >= 3.10.0, < 3.10.8 3.10.8
netapp active iq unified manager All versions No fix listed
netapp ontap select deploy administration utility All versions No fix listed
netapp snapcenter All versions No fix listed
fedoraproject fedora = 35 No fix listed
fedoraproject fedora = 36 No fix listed
Show 1 more
ProductAffected versionsFixed in
fedoraproject fedora = 37 No fix listed

References