Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade pillow to version 13.0.0 or higher.
Affected versions of this package are vulnerable to Argument Injection in the Ghostscript function in src/PIL/EpsImagePlugin.py, which assigns infile = fp.name and places it after -f in the argument list without normalizing the path or rejecting the prefixes Ghostscript parses specially, namely -, --, and the @ argument-file token. An attacker can pass arbitrary options to the spawned Ghostscript process, and reach command execution by combining the @ token with a text file whose contents they also control, by arranging for a file whose name begins with one of those characters to be opened as an EPS image. This requires control of the file name reached by Image.open rather than only the file contents, along with an EPS load path that invokes Ghostscript, and the default -dSAFER sandbox does not constrain it, since the injection happens in Ghostscript's own command line parsing.