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.

Severity (CVSS 4.0)6.1Medium
Exploit odds (30 days)0.2%top 93.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12poppler22.12.0-2+deb12u2DEBIAN-CVE-2025-52885
Debian:13poppler25.03.0-5+deb13u3DEBIAN-CVE-2025-52885
Debian:14poppler25.03.0-11.1DEBIAN-CVE-2025-52885
Ubuntu:22.04:LTSpoppler22.02.0-2ubuntu0.12USN-7858-1
Ubuntu:22.04:LTSpoppler22.02.0-2ubuntu0.12UBUNTU-CVE-2025-52885
Ubuntu:24.04:LTSpoppler24.02.0-1ubuntu9.8USN-7858-1
Ubuntu:24.04:LTSpoppler24.02.0-1ubuntu9.8UBUNTU-CVE-2025-52885
Ubuntu:25.10poppler25.03.0-10ubuntu0.1UBUNTU-CVE-2025-52885
Ubuntu:25.10poppler25.03.0-10ubuntu0.1USN-7858-1

Affected products (as reported)

VendorProductVersions
poppler poppler < 25.10.0

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