CVE-2020-17353
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedscm/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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA code injection vulnerability in LilyPond's safe mode (-dsafe) allows execution of arbitrary PostScript code through unrestricted embedded-ps and embedded-svg commands in scm/define-stencil-commands.scm, affecting versions 2.20.0 and earlier as well as 2.21.x through 2.21.4.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 31= 32= 10.0<= 2.20.0>= 2.21.0, <= 2.21.4= 15.0= 15.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check if LilyPond is installedRun `lilypond --version` or check for the lilypond package using your system's package manager (e.g., `dnf list installed lilypond` on Fedora, `dpkg -l lilypond` on Debian, `rpm -qa lilypond` on openSUSE)Affected if LilyPond is installed and the version falls within 2.20.0 and earlier, or 2.21.0 through 2.21.4
-
Identify the exact installed versionRun `lilypond --version` and capture the version number from the outputAffected if The version output is <= 2.20.0 OR >= 2.21.0 AND <= 2.21.4 (for example, 2.18.2, 2.19.84, 2.20.0, 2.21.0, or 2.21.4)
-
Determine if -dsafe mode is being usedSearch your LilyPond build scripts, makefiles, or command-line invocations for the `-dsafe` flag being passed to LilyPond (grep for '-dsafe' in your project files or review the build logs)Affected if The -dsafe flag is present in the LilyPond command being used to process files
-
Check for embedded-ps or embedded-svg in processed filesInspect the LilyPond source files (.ly files) being processed for presence of the #\{ embedded-ps ... \#} or #\{ embedded-svg ... \#} SCM commands in the inputAffected if The LilyPond input files contain embedded-ps or embedded-svg expressions and are processed with -dsafe mode
You are affected if LilyPond version 2.20.0 or earlier, or 2.21.0 through 2.21.4 is installed AND the -dsafe flag is used to process LilyPond files containing embedded-ps or embedded-svg commands.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedAvoid processing untrusted LilyPond files with -dsafe until a patched version is available; the fix requires implementing proper restrictions on embedded-ps and embedded-svg in the affected SCM file.
LilyPond 2.22.0 or later (e.g., 2.22.1, 2.23.x, or latest stable release)
- 1. Check the current LilyPond version by running: lilypond --version
- 2. Upgrade LilyPond to version 2.22.0 or later (such as 2.22.1, 2.23.x, or the latest stable release)
- 3. On Fedora: Run 'sudo dnf update lilypond' to update to the latest available version
- 4. On Debian: Run 'sudo apt-get update && sudo apt-get install lilypond' to get the latest version
- 5. Verify the upgrade was successful by running: lilypond --version
- 6. If using lilypond in automated workflows, ensure your build pipelines fetch the updated version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing5.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,752.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2020-17353 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2020-17353 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data