Vulnerability · Published Apr 15, 2022 · Assigned by @huntrdev
CVE-2022-1231XSS via Embedded SVG in SVG Diagram Format in plantuml/plantuml
Critical 9.3
In plain English
A critical-severity cross-site scripting in plantuml/plantuml from plantuml. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | plantuml | no fix listed | DEBIAN-CVE-2022-1231 |
| Debian:13 | plantuml | 1:1.2020.2+ds-6 | DEBIAN-CVE-2022-1231 |
| Debian:14 | plantuml | 1:1.2020.2+ds-6 | DEBIAN-CVE-2022-1231 |
| Ubuntu:22.04:LTS | plantuml | 1:1.2020.2+ds-1ubuntu0.1 | USN-7353-1 |
| Ubuntu:22.04:LTS | plantuml | 1:1.2020.2+ds-1ubuntu0.1 | UBUNTU-CVE-2022-1231 |
| Ubuntu:24.04:LTS | plantuml | 1:1.2020.2+ds-3ubuntu1.1 | USN-7353-1 |
| Ubuntu:24.04:LTS | plantuml | 1:1.2020.2+ds-3ubuntu1.1 | UBUNTU-CVE-2022-1231 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| plantuml | plantuml/plantuml | unspecified – before 1.2022.4 |
Weakness: CWE-79 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
References
- https://huntr.dev/bounties/27db9509-6cd3-4148-8d70-5942f3837604 x_refsource_CONFIRM
- https://github.com/plantuml/plantuml/commit/c9137be051ce98b3e3e27f65f54ec7d9f8886903 x_refsource_MISC
- FEDORA-2022-e8b1324ec8 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-930b54aa84 vendor-advisory, x_refsource_FEDORA