Vulnerability · Published Oct 10, 2025 · Assigned by GitHub_M
CVE-2025-52885GHSL-2025-042: Poppler has Use-After-Free
Medium 6.1
In plain English
A medium-severity use-after-free in poppler from poppler. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | poppler | 22.12.0-2+deb12u2 | DEBIAN-CVE-2025-52885 |
| Debian:13 | poppler | 25.03.0-5+deb13u3 | DEBIAN-CVE-2025-52885 |
| Debian:14 | poppler | 25.03.0-11.1 | DEBIAN-CVE-2025-52885 |
| Ubuntu:22.04:LTS | poppler | 22.02.0-2ubuntu0.12 | USN-7858-1 |
| Ubuntu:22.04:LTS | poppler | 22.02.0-2ubuntu0.12 | UBUNTU-CVE-2025-52885 |
| Ubuntu:24.04:LTS | poppler | 24.02.0-1ubuntu9.8 | USN-7858-1 |
| Ubuntu:24.04:LTS | poppler | 24.02.0-1ubuntu9.8 | UBUNTU-CVE-2025-52885 |
| Ubuntu:25.10 | poppler | 25.03.0-10ubuntu0.1 | UBUNTU-CVE-2025-52885 |
| Ubuntu:25.10 | poppler | 25.03.0-10ubuntu0.1 | USN-7858-1 |
Affected products (as reported)
Weakness: CWE-416 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
References
- https://securitylab.github.com/advisories/GHSL-2025-042_poppler/ x_refsource_CONFIRM
- https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884 x_refsource_MISC
- https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884#note_3114334 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2025/10/13/2