{"id":"CVE-2025-52885","aliases":["CVE-2025-52885"],"related":[],"kind":"vulnerability","state":"published","title":"GHSL-2025-042: Poppler has Use-After-Free","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Poppler es una biblioteca para renderizar archivos PDF, y examinar o modificar su estructura. Se ha detectado una vulnerabilidad de uso después de liberación (escritura) en versiones de Poppler anteriores a la 25.10.0 dentro de la clase StructTreeRoot. El problema surge del uso de punteros crudos a elementos de un 'std::vector', lo que puede llevar a punteros colgantes cuando el vector se redimensiona. La vulnerabilidad se origina en la forma en que refToParentMap almacena referencias a elementos de 'std::vector' utilizando punteros crudos. Estos punteros pueden volverse inválidos cuando el vector se redimensiona. Esta vulnerabilidad es un problema de seguridad común que implica el uso de punteros crudos a 'std::vectors'. Internamente, 'std::vector' almacena sus elementos en un array asignado dinámicamente. Cuando el array alcanza su capacidad y se añade un nuevo elemento, el vector reasigna un bloque de memoria más grande y mueve todos los elementos existentes a la nueva ubicación. En este punto, si se almacenan punteros a elementos antes de que ocurra un redimensionamiento, se convierten en punteros colgantes una vez que ocurre la reasignación. La versión 25.10.0 contiene un parche para el problema.","source":"nvd"}],"published":"2025-10-10T22:11:20.494Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"< 25.10.0","status":"affected"}],"vendor":"poppler","product":"poppler","source":"cvelist"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2025-042_poppler/","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884#note_3114334","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/13/2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-14T14:59:44.878Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-52885","url":"https://www.cve.org/CVERecord?id=CVE-2025-52885","licence":"CVE Terms of Use","modified":"2025-11-04T21:11:41.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-52885","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52885","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"}],"updatedAt":"2026-11-25T22:59:05.781Z","epss":{"score":0.00239,"percentile":0.08996,"date":"2026-11-30T12:00:22.000Z"}}