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
CVSS summary v3.1
- 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 | Affected versions |
|---|---|---|
| Vendor:Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Affected versions: ≥ V3.1.0, < V3.1.5 |
| Vendor:Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Affected versions: ≥ V3.1.0, < V3.1.5 |
| Vendor:Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Affected versions: ≥ V3.1.0, < V3.1.5 |
| Vendor:python | python | Affected 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:Fedora | fedora | Affected versions:35Show full version range for fedora3637 |
| Vendor:redhat | python3Environments (1)
| Affected versions:Range not specifiedShow full version range for python3
|
| Vendor:redhat | python3-debugEnvironments (1)
| Affected versions:Range not specifiedShow full version range for python3-debug
|
| Vendor:redhat | python3-develEnvironments (1)
| Affected versions:Range not specifiedShow full version range for python3-devel
|
| Vendor:redhat | python3-idleEnvironments (1)
| Affected versions:Range not specifiedShow full version range for python3-idle
|
| Vendor:redhat | python3-libsEnvironments (1)
| Affected versions:Range not specifiedShow full version range for python3-libs
|
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:LCISA-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:H134c704f-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:Hrocky · 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:Lredhat · 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:Lnvd · 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:Hnvd · 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:Lcanonical · 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:Lalmalinux · 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:Lsuse · 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:LRed 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:LSUSE · 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:Loraclelinux · 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:Pnvd · 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:PCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories137
- cve.org
- NVD
- Wazuh CTI
- Red Hat VEX
- SUSE VEX
- FIRST EPSS
- security.netapp.com
- security.gentoo.org
- python-security.readthedocs.io
- cert-portal.siemens.com
- bugs.python.org
- github.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.debian.org
- lists.debian.org
- lists.debian.org
- SUSE-SU-2023:0748-1
- access.redhat.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- security-tracker.debian.org
- SUSE CVE-2015-20107
- SUSE-CU-2022:1385-1
- SUSE-CU-2022:1435-1
- SUSE-CU-2022:1460-1
- SUSE-CU-2022:1477-1
- SUSE-CU-2022:1492-1
- SUSE-CU-2022:1498-1
- SUSE-CU-2022:1616-1
- SUSE-CU-2022:1736-1
- SUSE-CU-2022:1765-1
- SUSE-CU-2022:1771-1
- SUSE-CU-2022:1780-1
- SUSE-CU-2022:1852-1
- SUSE-CU-2022:2082-1
- SUSE-CU-2022:2123-1
- SUSE-CU-2022:2125-1
- SUSE-CU-2022:2126-1
- SUSE-CU-2022:2149-1
- SUSE-CU-2023:322-1
- SUSE-CU-2023:694-1
- SUSE-IU-2022:814-1
- SUSE-IU-2022:817-1
- SUSE-IU-2022:836-1
- SUSE-IU-2022:853-1
- SUSE-IU-2022:859-1
- SUSE-IU-2022:878-1
- SUSE-IU-2022:894-1
- SUSE-IU-2022:903-1
- SUSE-IU-2022:904-1
- SUSE-IU-2022:953-1
- SUSE-IU-2022:954-1
- SUSE-IU-2022:955-1
- SUSE-SU-2022:2147-1
- SUSE-SU-2022:2166-1
- SUSE-SU-2022:2174-1
- SUSE-SU-2022:2248-1
- SUSE-SU-2022:2249-1
- SUSE-SU-2022:2291-1
- SUSE-SU-2022:2344-1
- SUSE-SU-2022:2351-1
- SUSE-SU-2022:2357-1
- SUSE-SU-2022:2357-2
- SUSE-SU-2023:0707-1
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- linux.oracle.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- Mitre CVE-2015-20107
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
- bodhi.fedoraproject.org
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