CVE-2022-24429
HIGH 7.8CVSS 3.1Code injection via SVG file in convert-svg-core
The package convert-svg-core before 0.6.3 are vulnerable to Arbitrary Code Injection when using a specially crafted SVG file. An attacker can read arbitrary files from the file system and then show the file content as a converted PNG file.
- Published
- 10 Jun 2022
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-74CWE-94
- Also known as
- GHSA-54px-mhwv-5v8xSNYK-JS-CONVERTSVGCORE-2859212
- Sources
- NVDJSONOSV GHSA-54px-mhwv-5v8xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | convert-svg-core_project | convert-svg-corecpe:2.3:a:convert-svg-core_project:convert-svg-core:*:*:*:*:*:node.js:*:* |
< 0.6.3 | 0.6.3 |
| OSV | npm | convert-svg-core | < 0.6.3 | 0.6.3 |
References
- https://github.com/neocotic/convert-svg/commit/a43dffaab0f1e419d5be84e2e7356b86ffac3cf1 · Patch, Third Party Advisory, WEB
- https://github.com/neocotic/convert-svg/issues/84 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-2859212 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24429 · ADVISORY
- https://github.com/neocotic/convert-svg · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 10 Jun 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Jun 2022)