CVE-2020-10799

The svglib package through 0.9.3 for Python allows XXE attacks via an svg2rlg call

published March 20, 2020

CVSS
—
EPSS
2%
Percentile
74.5
In the wild
Unconfirmed
What it is

⚠️ An unsuspecting svg2rlg call can open the door to XXE attacks in the svglib package, putting your app at risk! Think of it like a restaurant accepting a delivery order without checking the contents — someone could send in malicious ingredients that ruin more than just the dish. In this case, external entities can be fetched without scrutiny, exposing sensitive data. An attacker could potentially sneak in harmful data, leading to unauthorized access to sensitive system resources. If exploited, this could result in the exposure of confidential information or even a complete system compromise. Not a good look for your application!

Put simply

Think of it like a restaurant accepting a delivery order without checking the contents — someone could send in malicious ingredients that ruin more than just the dish. In this case, external entities can be fetched without scrutiny, exposing sensitive data. This vulnerability arises from the way the svglib package processes SVG files. Specifically, the svg2rlg function does not adequately validate external entity references, allowing for XXE attacks that can disclose sensitive information.

What to do

An attacker could potentially sneak in harmful data, leading to unauthorized access to sensitive system resources. If exploited, this could result in the exposure of confidential information or even a complete system compromise. Not a good look for your application! Upgrade the svglib package to at least version 0.9.4 to mitigate this risk. Additionally, review your input handling practices to ensure that external entities are disabled where unnecessary. Don’t leave your doors wide open! You've got this! Just follow these steps, and you'll keep your application safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01528 · 74.5th percentile
Published
2020-03-20T22:40Z
EPSS history
Timeline
  • 20 MAR 22:40Z
    The svglib package through 0.9.3 for Python allows XXE attacks via an svg2rlg call
    cvelistv5