CVE-2024-1647 json
pyhtml2pdf 0.0.6 - Local File Read via Server Side XSS
published 2024-02-19 2 y ago modified 2026-06-17 4 mo ago also GHSA-p3rv-qj56-2fqx , PYSEC-2024-301 , EUVD-2024-0679
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
Pyhtml2pdf version 0.0.6 allows an external attacker to remotely obtain
arbitrary local files. This is possible because the application does not
validate the HTML content entered by the user.
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.69% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- fluidattacks.com https://fluidattacks.com/advisories/oliver/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pyhtml2pdf | <=0.0.6 |
no fix listed |
Affected products
- pyhtml2pdf pyhtml2pdf
- pyhtml2pdf_project pyhtml2pdf
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
fluidattacks.com
/advisories/oliver/
exploit, third-party-advisory, evidence
-
pypi.org
/project/pyhtml2pdf/
product, package
-
nvd.nist.gov
/vuln/detail/CVE-2024-1647
advisory
-
fluidattacks.com
/advisories/oliver
web
-
github.com
/pypa/advisory-database/tree/main/vulns/pyhtml2pdf/PYSEC-2024-301.yaml
web
-
pypi.org
/project/pyhtml2pdf
web
-
github.com
/advisories/GHSA-p3rv-qj56-2fqx
advisory
Sources
- CVE List CVE-2024-1647
- GitHub Advisory GHSA-p3rv-qj56-2fqx
- NVD CVE-2024-1647
- OSV PYSEC-2024-301
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.