Description
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, as demonstrated by including dangerous PostScript code.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lilypond | 2.20.0-2 | — |
| Debian 13 | lilypond | 2.20.0-2 | — |
| Debian 12 | lilypond | 2.20.0-2 | — |
| Debian 10 | lilypond | 2.19.81+really-2.18.2-13+deb10u1 | DSA-4756-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | lilypond | No fix yet | — |
| Ubuntu 18.04 LTS | lilypond | No fix yet | — |
| Ubuntu 16.04 LTS | lilypond | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP2 | lilypond | 2.20.0-bp152.2.5.6 | openSUSE-SU-2020:1506-1, openSUSE-SU-2020:1453-1 |
| SUSE Package Hub 15 SP2 | lilypond-doc | 2.20.0-lp152.2.5.10 | openSUSE-SU-2020:1453-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | lilypond | 2.23.3-1.3 | openSUSE-SU-2024:11021-1 |
| openSUSE Leap 15.2 | lilypond | 2.20.0-bp152.2.5.6 | openSUSE-SU-2020:1453-1 |
| openSUSE Leap 15.2 | lilypond-doc | 2.20.0-lp152.2.5.10 | openSUSE-SU-2020:1453-1 |
Advisories 4
- DSA-4756-1 lilypond - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11021-1 lilypond-2.23.3-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1506-1 Security update for lilypond SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1453-1 Security update for lilypond SUSE / openSUSE Security Updates · Feb 4, 2026
References
- http://git.savannah.gnu.org/gitweb/?p=lilypond.git%3Ba=commit%3Bh=b84ea4740f3279516905c5db05f4074e777c16ff
- FEDORA-2020-328534eeba vendor-advisory
- FEDORA-2020-7cd08d85ce vendor-advisory
- DSA-4756 vendor-advisory
- openSUSE-SU-2020:1453 vendor-advisory
- openSUSE-SU-2020:1506 vendor-advisory