All vulnerabilities

Servers and applications

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 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

Severity
High 7.6
Published
13 Apr 2022
Last changed
14 Oct 2026
Added to UpHeron
21 Oct 2026
Fixed in
3.10.8
Sources
NVD

Affected software

SoftwareAffected versions
PythonServers and applications · cpe:a:python:python
  • From 3.7.0 up to 3.7.15
  • From 3.8.0 up to 3.8.15
  • From 3.9.0 up to 3.9.15
  • From 3.10.0 before 3.10.8

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2015-20107
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2015-20107