Skip to content

Commit 9e2fc2e

Browse files
Merge pull request #906 from kevinbackhouse/GHSL-2025-042_poppler
Proof of concept for poppler CVE-2025-52885
2 parents ddab5ce + 1356052 commit 9e2fc2e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Proof of concept for poppler CVE-2025-52885
2+
3+
CVE-2025-52885 is a use-after-free vulnerability in
4+
[poppler](https://gitlab.freedesktop.org/poppler). The bug is in
5+
[StructTreeRoot.cc](https://gitlab.freedesktop.org/poppler/poppler/-/blob/2a3135888b6079f0a9fd6410ff65351482087b50/poppler/StructTreeRoot.cc). As
6+
far as we know, this code is only used when one of poppler's command
7+
line tools is run with a non-default command line option, so the
8+
vulnerability does not affect the most common uses of poppler.
9+
10+
This directory contains a poc which triggers the bug. To run it:
11+
12+
```bash
13+
pdfinfo -struct bug.pdf
14+
```
15+
16+
In our testing, this causes `pdfinfo` to crash with the following error message:
17+
18+
```
19+
free(): invalid next size (fast)
20+
Aborted
21+
```
22+
23+
## Links:
24+
25+
* https://gitlab.freedesktop.org/poppler/poppler/-/issues/1580
26+
* https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1884
27+
* https://securitylab.github.com/advisories/GHSL-2025-042_poppler/
28+
* https://www.openwall.com/lists/oss-security/2025/10/13/2
8.78 KB
Binary file not shown.

0 commit comments

Comments
 (0)