CVE-2025-52885 GHSL-2025-042: Poppler has Use-After-Free
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Poppler ia a library for rendering PDF files, and examining or modifying their structure. A use-after-free (write) vulnerability has been detected in versions Poppler prior to 25.10.0 within the StructTreeRoot class. The issue arises from the use of raw pointers to elements of a std::vector, which can lead to dangling pointers when the vector is resized. The vulnerability stems from the way that refToParentMap stores references to std::vector elements using raw pointers. These pointers may become invalid when the vector is resized. This vulnerability is a common security problem involving the use of raw pointers to std::vectors. Internally, std::vector stores its elements in a dynamically allocated array. When the array reaches its capacity and a new element is added, the vector reallocates a larger block of memory and moves all the existing elements to the new location. At this point if any pointers to elements are stored before a resize occurs, they become dangling pointers once the reallocation happens. Version 25.10.0 contains a patch for the issue.
Upgrade path
6 packages: 5 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/poppler(Debian 12) | < 22.12.0-2+deb12u2; = 22.12.0-2; = 22.12.0-2+deb12u1 | 22.12.0-2+deb12u2 | Fixed |
| debian/poppler(Debian 13) | < 25.03.0-5+deb13u3; = 25.03.0-5; = 25.03.0-5+deb13u2 | 25.03.0-5+deb13u3 | Fixed |
| debian/poppler(Debian 14) | < 25.03.0-11.1; = 25.03.0-5; = 25.03.0-6; = 25.03.0-7 +3 more | 25.03.0-11.1 | Fixed |
| ubuntu/poppler(Ubuntu 22.04) | < 22.02.0-2ubuntu0.12 | 22.02.0-2ubuntu0.12 | Fixed |
| ubuntu/poppler(Ubuntu 24.04) | < 24.02.0-1ubuntu9.8 | 24.02.0-1ubuntu9.8 | Fixed |
| poppler | = < 25.10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/poppler(Debian:12) | < 22.12.0-2+deb12u2 | 22.12.0-2+deb12u2 |
| debian/poppler(Debian:12) | = 22.12.0-2 | No fix listed |
| debian/poppler(Debian:12) | = 22.12.0-2+deb12u1 | No fix listed |
| debian/poppler(Debian:13) | < 25.03.0-5+deb13u3 | 25.03.0-5+deb13u3 |
| debian/poppler(Debian:13) | = 25.03.0-5 | No fix listed |
| debian/poppler(Debian:13) | = 25.03.0-5+deb13u2 | No fix listed |
| debian/poppler(Debian:14) | < 25.03.0-11.1 | 25.03.0-11.1 |
| debian/poppler(Debian:14) | = 25.03.0-10 | No fix listed |
| debian/poppler(Debian:14) | = 25.03.0-11 | No fix listed |
| debian/poppler(Debian:14) | = 25.03.0-5 | No fix listed |
| debian/poppler(Debian:14) | = 25.03.0-6 | No fix listed |
| debian/poppler(Debian:14) | = 25.03.0-7 | No fix listed |
| debian/poppler(Debian:14) | = 25.03.0-9 | No fix listed |
| poppler | = < 25.10.0 | No fix listed |
| ubuntu/poppler(Ubuntu:22.04) | < 22.02.0-2ubuntu0.12 | 22.02.0-2ubuntu0.12 |
| ubuntu/poppler(Ubuntu:24.04) | < 24.02.0-1ubuntu9.8 | 24.02.0-1ubuntu9.8 |
References
- Debian Security Tracker CVE-2025-52885 vendor-advisory
- https://securitylab.github.com/advisories/GHSL-2025-042_poppler/
- https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884
- www.openwall.com
- Ubuntu CVE tracker vendor-advisory
- USN-7858-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking