CVE-2020-17353

scm/define-stencil-commands.scm in LilyPond through 2.20.0, and 2.21.x through 2.21.4, when -dsafe is used, lacks restrictions on embedded-ps and embedded-svg…

published August 5, 2020

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

⚠️ A misconfiguration in LilyPond could let an attacker slip in dangerous PostScript code when using the `-dsafe` option — it’s like a restaurant allowing patrons to bring their own ingredients for the chef’s special! Think of it like a diner sneaking in a forbidden ingredient. The kitchen, trusting and unguarded, ends up cooking with something potentially harmful without checking it first. An attacker could exploit this vulnerability to execute malicious PostScript commands, potentially leading to unexpected behaviors or even the corruption of your documents. It's a surprisingly sneaky way to compromise the integrity of your output without anyone realizing it!

Put simply

Think of it like a diner sneaking in a forbidden ingredient. The kitchen, trusting and unguarded, ends up cooking with something potentially harmful without checking it first. This vulnerability arises from the lack of restrictions on embedded-ps and embedded-svg in the `scm/define-stencil-commands.scm` file, which allows for the execution of unsafe PostScript code when the `-dsafe` flag is used during parsing.

What to do

An attacker could exploit this vulnerability to execute malicious PostScript commands, potentially leading to unexpected behaviors or even the corruption of your documents. It's a surprisingly sneaky way to compromise the integrity of your output without anyone realizing it! To protect yourself, ensure you're using LilyPond version 2.20.1 or later, and review your configuration to prevent the use of `-dsafe` in contexts where untrusted input could occur. Regularly audit your setups to keep them secure! You've got this! Just follow the steps, and you'll keep your environment safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02306 · 83.2th percentile
Published
2020-08-05T12:55Z
EPSS history
Timeline
  • 05 AUG 12:55Z
    scm/define-stencil-commands.scm in LilyPond through 2.20.0, and 2.21.x through 2.21.4, when -dsafe is used, lacks restrictions on embedded-ps and embedded-svg…
    cvelistv5