VDB

CVE-2015-20107

CVE-2015-20107 PUBLISHED CVSS 7.8 HIGH

Reported by mitre · Published April 13, 2022

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3Alpine3.10.5-r0
python3.9Ubuntu:Pro:20.04:LTS3.9.5-3ubuntu0~20.04.1+esm1
debian/python-3.13debian3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16
debian/python-3.10debian3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16
python3.6Ubuntu:18.04:LTS3.6.9-1~18.04ubuntu1.8
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPSiemens3.1.5
python2.7Ubuntu:18.04:LTS2.7.17-1~18.04ubuntu1.8
debian/python-3.12debian3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16
alpine/python-3.13alpine3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
python2.7Ubuntu:22.04:LTS2.7.18-13ubuntu1.1
python2.7Ubuntu:Pro:16.04:LTS2.7.12-1ubuntu0~16.04.18+esm2

11 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
alpinepython30
n/an/a*
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0

Timeline

  • Apr 13, 2022 CVE Published
  • Apr 14, 2022 EPSS Score (30 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Mar 5, 2026 Distribution Patch (56 in total, the first dated here)
  • Mar 5, 2026 Security Advisory (60 in total, the first dated here)
  • Oct 15, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2015-20107
vulnetix vdb fixes CVE-2015-20107

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2015-20107/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

…and 11 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›