# CVE-2024-56139: A stack overflow Segmentation Fault (SEGV) and Memory Leak in pdftools

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-17T18:32:18.011Z
- Modified: 2026-06-17T08:11:45.103Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

pdftools is a high level tools to convert PDF files to ePUB formats. In versions up to and including 0.5.0 maliciously crafted epub files can cause a stack overflow leading to a crash. This issue has not yet been addressed and users are advised to avoid untrusted input to their systems.

(As written by CVE List.)

## Affected

- leonhad pdftools: <= 0.5.0

## References

- <https://github.com/leonhad/pdftools/security/advisories/GHSA-hgvf-4pf3-fwc9> (exploit)

## Sources

- CVE List: [CVE-2024-56139](https://www.cve.org/CVERecord?id=CVE-2024-56139), CVE Terms of Use, modified 2024-12-20
- NVD: [CVE-2024-56139](https://nvd.nist.gov/vuln/detail/CVE-2024-56139), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56139 · Whole record: https://cve.day/CVE-2024-56139.json · Rebuilt by cve.day 2026-11-25T22:58:50.207Z
