{"id":"CVE-2025-52885","summary":"GHSL-2025-042: Poppler has Use-After-Free","details":"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.","modified":"2026-04-16T04:39:16.987201244Z","published":"2025-10-10T22:11:20Z","related":["SUSE-SU-2025:21132-1","SUSE-SU-2025:3779-1","SUSE-SU-2025:3900-1","SUSE-SU-2025:3910-1","openSUSE-SU-2025:15648-1","openSUSE-SU-2025:20068-1"],"references":[{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2025-042_poppler/"},{"type":"FIX","url":"https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884"},{"type":"FIX","url":"https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884#note_3114334"}],"affected":[{"database_specific":{"unresolved_versions":[{"type":"","events":[{"introduced":"0"},{"fixed":"25.10.0"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-52885.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}