CVE-2022-1231XSS via Embedded SVG in SVG Diagram Format in plantuml/plantuml
XSS via Embedded SVG in SVG Diagram Format in GitHub repository plantuml/plantuml prior to 1.2022.4. Stored XSS in the context of the diagram embedder. Depending on the actual context, this ranges from stealing secrets to account hijacking or even to code execution for example in desktop applications. Web based applications are the ones most affected. Since the SVG format allows clickable links in diagrams, it is commonly used in plugins for web based projects (like the Confluence plugin, etc. see https://plantuml.com/de/running).
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | plantuml | Fixed | 1:1.2020.2+ds-3ubuntu1.1 | UBUNTU-CVE-2022-1231 |
| Ubuntu 22.04 | plantuml | Fixed | 1:1.2020.2+ds-1ubuntu0.1 | UBUNTU-CVE-2022-1231 |
| Ubuntu 20.04 | plantuml | Fix pending | 1:1.2018.13+ds-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-1231 |
| Ubuntu 18.04 | plantuml | Fix pending | 1:1.2017.15-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-1231 |
| Ubuntu 16.04 | plantuml | Fix pending | 8024-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-1231 |
| Debian 14 | plantuml | Fixed | 1:1.2020.2+ds-6 | DEBIAN-CVE-2022-1231 |
| Debian 13 | plantuml | Fixed | 1:1.2020.2+ds-6 | DEBIAN-CVE-2022-1231 |
| Debian 12 | plantuml | Fix pending | DEBIAN-CVE-2022-1231 |
What the vendor says
As published in the CVE record by @huntrdev, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- plantuml/plantuml: affected: unspecified to before 1.2022.4; fixed in
1.2022.4
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://huntr.dev/bounties/27db9509-6cd3-4148-8d70-5942f3837604
- https://github.com/plantuml/plantuml/commit/c9137be051ce98b3e3e27f65f54ec7d9f8886903
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FQMHXN5BVBK433C5SVSSBXWB5JLJ7NID/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EO26WBHQRMWTS44M5VLZJIJZOIGJYL3A/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.