CVE-2025-52885

Name
CVE-2025-52885
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884
MISC https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884#note_3114334
CONFIRM https://securitylab.github.com/advisories/GHSL-2025-042_poppler/
af854a3a-2127-422b-91ae-364da2661108 http://www.openwall.com/lists/oss-security/2025/10/13/2

Match rules

CPE URI Source package Min version Max version
poppler >= 0 < 25.10.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
poppler edge-main 25.09.1-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler edge-main 25.08.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler edge-main 25.07.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler edge-main 25.06.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler edge-main 25.04.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler edge-main 25.02.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler edge-main 25.01.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler edge-main 24.02.0-r2 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler 3.22-main 25.04.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler 3.21-main 24.02.0-r2 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler 3.20-main 24.02.0-r2 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
poppler 3.19-main 23.10.0-r0 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable