Lucene search

K
osvGoogleOSV:PSF-2022-1
HistoryApr 13, 2022 - 12:00 a.m.

mailcap shell command injection

2022-04-1300:00:00
Google
osv.dev
5

7.6 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

55.8%

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