CVE-2025-52885
CVE-2025-52885 · GHSL-2025-042: Poppler has Use-After-Free
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 6.1 · Medium · EPSS 0.2% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
poppler
- Versions
- < 25.10.0: Affected
No fix published
poppler Debian:12
- Versions
- 22.12.0-2
- 22.12.0-2+deb12u1
- Affected ranges
- ECOSYSTEM: < 22.12.0-2+deb12u2
Update to 22.12.0-2+deb12u2
poppler Debian:13
- Versions
- 25.03.0-5
- 25.03.0-5+deb13u2
- Affected ranges
- ECOSYSTEM: < 25.03.0-5+deb13u3
Update to 25.03.0-5+deb13u3
poppler Debian:14
- Versions
- 25.03.0-10
- 25.03.0-11
- 25.03.0-5
- 25.03.0-6
- 25.03.0-7
- 25.03.0-9
- Affected ranges
- ECOSYSTEM: < 25.03.0-11.1
Update to 25.03.0-11.1
poppler Ubuntu:Pro:20.04:LTS
- Versions
- 0.80.0-0ubuntu1
- 0.80.0-0ubuntu3
- 0.80.0-0ubuntu4
- 0.80.0-0ubuntu5
- 0.85.0-1ubuntu1
- 0.85.0-1ubuntu3
- 0.86.1-0ubuntu1
- 0.86.1-0ubuntu1.1
- 0.86.1-0ubuntu1.2
- 0.86.1-0ubuntu1.3
- 0.86.1-0ubuntu1.4
- 0.86.1-0ubuntu1.5
- 0.86.1-0ubuntu1.6
- 0.86.1-0ubuntu1.7
- 0.86.1-0ubuntu1.7+esm1
- 0.86.1-0ubuntu1.7+esm2
- Affected ranges
- ECOSYSTEM: < 0.86.1-0ubuntu1.7+esm3
Update to 0.86.1-0ubuntu1.7+esm3
poppler Ubuntu:22.04:LTS
- Versions
- 21.06.1-1
- 21.11.0-1~ubuntu2
- 22.02.0-2
- 22.02.0-2ubuntu0.1
- 22.02.0-2ubuntu0.2
- 22.02.0-2ubuntu0.3
- 22.02.0-2ubuntu0.4
- 22.02.0-2ubuntu0.5
- 22.02.0-2ubuntu0.6
- 22.02.0-2ubuntu0.7
- 22.02.0-2ubuntu0.8
- 22.02.0-2ubuntu0.9
- 22.02.0-2ubuntu0.10
- 22.02.0-2ubuntu0.11
- Affected ranges
- ECOSYSTEM: < 22.02.0-2ubuntu0.12
Update to 22.02.0-2ubuntu0.12
poppler Ubuntu:24.04:LTS
- Versions
- 23.08.0-2ubuntu1
- 23.12.0-1ubuntu2
- 24.02.0-1ubuntu2
- 24.02.0-1ubuntu8
- 24.02.0-1ubuntu9
- 24.02.0-1ubuntu9.1
- 24.02.0-1ubuntu9.2
- 24.02.0-1ubuntu9.3
- 24.02.0-1ubuntu9.4
- 24.02.0-1ubuntu9.5
- 24.02.0-1ubuntu9.6
- 24.02.0-1ubuntu9.7
- Affected ranges
- ECOSYSTEM: < 24.02.0-1ubuntu9.8
Update to 24.02.0-1ubuntu9.8
poppler Ubuntu:25.10
- Versions
- 25.03.0-3
- 25.03.0-4
- 25.03.0-4build1
- 25.03.0-4ubuntu1
- 25.03.0-5
- 25.03.0-6
- 25.03.0-7
- 25.03.0-10
- Affected ranges
- ECOSYSTEM: < 25.03.0-10ubuntu0.1
Update to 25.03.0-10ubuntu0.1
Original sources
- https://securitylab.github.com/advisories/GHSL-2025-042_poppler/
- https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884
- https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884#note_3114334
- http://www.openwall.com/lists/oss-security/2025/10/13/2
- https://nvd.nist.gov/vuln/detail/CVE-2025-52885