Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PoC for poppler CVE-2025-52886 #896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pdfgen
2 changes: 2 additions & 0 deletions SecurityExploits/freedesktop/poppler-CVE-2025-52886/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pdfgen: pdfgen.cpp utils.cpp utils.h
g++ -Wall -Wextra -g -O0 pdfgen.cpp utils.cpp -lz -o pdfgen
25 changes: 25 additions & 0 deletions SecurityExploits/freedesktop/poppler-CVE-2025-52886/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Proof of concept for poppler CVE-2025-52886

CVE-2025-52886 is a use-after-free vulnerability in
[poppler](https://gitlab.freedesktop.org/poppler), caused by a
reference count overflow. Reference counting was done with a 32-bit
counter, which meant it was feasible to overflow the counter. In my
testing, it took approximately 12 hours to overflow the counter
though, so the risk of exploitation was low.

This directory contains the code for building the proof-of-concept. To
run it:

```bash
make
./pdfgen > poc.pdf
```

Notice that the size of the generated PDF is only 3104 bytes. Now try
to either open the PDF or run a command line application like
`pdftohtml` on it.

## Links:

* https://gitlab.freedesktop.org/poppler/poppler/-/issues/1581
* https://securitylab.github.com/advisories/GHSL-2025-054_poppler/
Loading