CVE-2025-52885GHSL-2025-042: Poppler has Use-After-Free
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | poppler | Fixed | 25.03.0-10ubuntu0.1 | UBUNTU-CVE-2025-52885 |
| Ubuntu 24.04 | poppler | Fixed | 24.02.0-1ubuntu9.8 | UBUNTU-CVE-2025-52885 |
| Ubuntu 22.04 | poppler | Fixed | 22.02.0-2ubuntu0.12 | UBUNTU-CVE-2025-52885 |
| Ubuntu 20.04 | poppler | Fix pending | 0.86.1-0ubuntu1.7+esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-52885 |
| Debian 14 | poppler | Fixed | 25.03.0-11.1 | DEBIAN-CVE-2025-52885 |
| Debian 13 | poppler | Fixed | 25.03.0-5+deb13u3 | DEBIAN-CVE-2025-52885 |
| Debian 12 | poppler | Fixed | 22.12.0-2+deb12u2 | DEBIAN-CVE-2025-52885 |
| Red Hat Enterprise Linux 10 | poppler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-cpp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-cpp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-glib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-glib-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-glib-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-qt6 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-qt6-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | poppler-utils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-cpp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-cpp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-glib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-glib-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-glib-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-qt5 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-qt5-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | poppler-utils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | poppler | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-cpp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-cpp-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-glib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-glib-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-glib-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-qt5 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-qt5-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | poppler-utils | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | compat-poppler022 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | compat-poppler022-cpp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | compat-poppler022-glib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | compat-poppler022-qt | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-cpp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-cpp-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-demos | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-glib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-glib-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-qt | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-qt-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | poppler-utils | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-glib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-glib-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-qt | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-qt-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-qt4 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-qt4-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | poppler-utils | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- poppler: affected: < 25.10.0
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.