Files
CVEs-PoC/2021/CVE-2021-23631.md
T
2025-09-29 21:09:30 +02:00

23 lines
1.1 KiB
Markdown

### [CVE-2021-23631](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23631)
![](https://img.shields.io/static/v1?label=Product&message=convert-svg-core&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=convert-svg-to-jpeg&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=convert-svg-to-png&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Directory%20Traversal&color=brightgreen)
### Description
This affects all versions of package convert-svg-core; all versions of package convert-svg-to-png; all versions of package convert-svg-to-jpeg. Using a specially crafted SVG file, an attacker could read arbitrary files from the file system and then show the file content as a converted PNG file.
### POC
#### Reference
- https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244
#### Github
No PoCs found on GitHub currently.