Back to CVE catalog
CVE-2015-20107

Command injection in Python mailcap module

Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP

At a glance

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

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityLow
IntegrityHigh
AvailabilityLow

CVSS summary v3.1

7.6High
Published:
Updated:
EPSS:
2.78%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFPAffected versions:
≥ V3.1.0, < V3.1.5
Vendor:SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFPAffected versions:
≥ V3.1.0, < V3.1.5
Vendor:SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFPAffected versions:
≥ V3.1.0, < V3.1.5
Vendor:pythonpythonAffected versions:
≥ 3.10.0, < 3.10.8Show full version range for python
≥ 3.7.0, ≤ 3.7.15≥ 3.8.0, ≤ 3.8.15≥ 3.9.0, ≤ 3.9.15
Vendor:FedorafedoraAffected versions:
35Show full version range for fedora
3637
Vendor:redhatpython3
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for python3
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatpython3-debug
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for python3-debug
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatpython3-devel
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for python3-devel
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatpython3-idle
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for python3-idle
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatpython3-libs
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for python3-libs
  • Other versions are affected by default; consult the source for exceptions.

1–10 of 1140 · Page 1 of 114

CVSS scores and metrics15
[email protected] · NVD (Primary)Primary7.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
CISA-ADP · CVE List / CNA (adp)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
134c704f-9b21-4f2e-91b3-4a467353bcc0 · NVD (Secondary)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
rocky · Wazuh CTI (adp)7.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
redhat · Wazuh CTI (adp)7.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
nvd · Wazuh CTI (cna)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd · Wazuh CTI (cna)7.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
canonical · Wazuh CTI (adp)7.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
almalinux · Wazuh CTI (adp)7.1 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
suse · Wazuh CTI (adp)7.1 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Red Hat · Red Hat VEX (adp)7.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
SUSE · SUSE VEX (adp)7.1 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
oraclelinux · Wazuh CTI (adp)7.6 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
Low
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
[email protected] · NVD (Primary)8.0 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Complete
Availability
Partial
Attack vector
Network
Authentication
Single

Source vector

AV:N/AC:L/Au:S/C:P/I:C/A:P
nvd · Wazuh CTI (cna)8.0 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Complete
Availability
Partial
Attack vector
Network
Authentication
Single

Source vector

AV:N/AC:L/Au:S/C:P/I:C/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories137

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences