Skip to content

Conversation

@dhdaines
Copy link
Owner

@dhdaines dhdaines commented Nov 9, 2025

Bug inherited from pdfminer.six, fixed there in pdfminer/pdfminer.six@b808ee0

Also removes the useless CMAP_PATH environment variable which could (theoretically...) be used for privilege escalation.

This is a quick patch to the problem, which also eliminates some nonsense in the way cmap files are loaded, but fundamentally cmap should NOT BE USING PICKLE! and in fact pdfminer.six once upon a time had a PR for that which wasn't accepted.

More comprehensive fix to cmap to follow later, but we need to release this now.

@dhdaines dhdaines changed the title Fix path traversal vulnerability in cmap code Fix path traversal and deserialization vulnerabilities in cmap code Nov 10, 2025
@dhdaines dhdaines merged commit 417c662 into main Nov 10, 2025
4 checks passed
@dhdaines dhdaines deleted the path_traversal_fix branch November 10, 2025 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants