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
https://github.com/python/cpython/issues/68966
https://bugs.python.org/issue24778
https://security.netapp.com/advisory/ntap-20220616-0001/
https://python-security.readthedocs.io/vuln/mailcap-shell-injection.html
Source: MITRE
Published: 2022-04-13
Updated: 2022-11-28
Type: CWE-77
Base Score: 8
Vector: AV:N/AC:L/Au:S/C:P/I:C/A:P
Impact Score: 8.5
Exploitability Score: 8
Severity: HIGH
Base Score: 7.6
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
Impact Score: 4.7
Exploitability Score: 2.8
Severity: HIGH