Command injectionin Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP.
Proof of concept public (GitHub).
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
- Upgrade SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or later.
- Upgrade SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or later.
- Upgrade SIPLUS S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 13 Apr 2022CVE ID reserved by mitre.
- 13 Apr 2022Published in the CVE List.
- 24 Apr 2024First public proof of concept on GitHub.
- 14 Oct 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other SIMATIC S7-1500 CPU 1518-4 PN/DP MFP vulnerabilities
Same weakness: Command injection
- bugs.python.org
- github.com
- security.netapp.com
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- lists.fedoraproject.org vendor-advisory
- python-security.readthedocs.io
- security.gentoo.org vendor-advisory
- lists.debian.org mailing-list
- lists.debian.org mailing-list
- lists.debian.org
Patchminder. CVE-2015-20107: Command injection in Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. https://patchminder.com/cve/cve-2015-20107/ (accessed 5 December 2026).