{"id":"UBUNTU-CVE-2025-52885","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-01-30T00:46:53.685722Z","published":"2025-10-10T23:15:00Z","related":["USN-7858-1"],"upstream":["CVE-2025-52885"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-52885"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-52885"},{"type":"REPORT","url":"https://securitylab.github.com/advisories/GHSL-2025-042_poppler/"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884#note_3114334"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7858-1"}],"affected":[{"package":{"name":"poppler","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/poppler@0.86.1-0ubuntu1.7+esm3?arch=source&distro=esm-infra/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.86.1-0ubuntu1.7+esm3"}]}],"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"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"gir1.2-poppler-0.18"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-cpp-dev"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-cpp0v5"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-dev"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-glib-dev"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-glib8"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-private-dev"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-qt5-1"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler-qt5-dev"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"libpoppler97"},{"binary_version":"0.86.1-0ubuntu1.7+esm3","binary_name":"poppler-utils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-52885.json"}},{"package":{"name":"poppler","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/poppler@22.02.0-2ubuntu0.12?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.02.0-2ubuntu0.12"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"gir1.2-poppler-0.18"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-cpp-dev"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-cpp0v5"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-dev"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-glib-dev"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-glib8"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-private-dev"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-qt5-1"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler-qt5-dev"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"libpoppler118"},{"binary_version":"22.02.0-2ubuntu0.12","binary_name":"poppler-utils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-52885.json"}},{"package":{"name":"poppler","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/poppler@24.02.0-1ubuntu9.8?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"24.02.0-1ubuntu9.8"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"gir1.2-poppler-0.18"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-cpp-dev"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-cpp0t64"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-dev"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-glib-dev"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-glib8t64"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-private-dev"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-qt5-1t64"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-qt5-dev"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-qt6-3t64"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler-qt6-dev"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"libpoppler134"},{"binary_version":"24.02.0-1ubuntu9.8","binary_name":"poppler-utils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-52885.json"}},{"package":{"name":"poppler","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/poppler@25.03.0-10ubuntu0.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"25.03.0-10ubuntu0.1"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"gir1.2-poppler-0.18"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-cpp-dev"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-cpp2"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-dev"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-glib-dev"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-glib8t64"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-private-dev"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-qt5-1t64"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-qt5-dev"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-qt6-3t64"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler-qt6-dev"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"libpoppler147"},{"binary_version":"25.03.0-10ubuntu0.1","binary_name":"poppler-utils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-52885.json"}}],"schema_version":"1.7.3","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"},{"type":"Ubuntu","score":"medium"}]}