In Python (aka CPython) through 3.10.4, the mailcap...
Critical severity
Unreviewed
Published
Apr 14, 2022
to the GitHub Advisory Database
•
Updated May 12, 2023
Description
Published by the National Vulnerability Database
Apr 13, 2022
Published to the GitHub Advisory Database
Apr 14, 2022
Last updated
May 12, 2023
In Python (aka CPython) through 3.10.4, 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).
References