Memory corruption via unchecked encryption key length
Published May 26, 2021 · Updated Aug 3, 2024
Stack-based buffer overflow in PoDoFo 0.9.7 allows local users to corrupt process memory by processing a crafted encrypted PDF. PdfEncryptMD5Base::ComputeOwnerKey uses a keyLength of 32 to index 16-byte mkey and digest stack buffers, writing past mkey and reading past digest. Processing attacker-supplied PDF content is required, and the demonstrated consequence is a crash with exploitable stack corruption.
Summary
What happened
Stack-based buffer overflow in PoDoFo 0.9.7 allows local users to corrupt process memory by processing a crafted encrypted PDF. PdfEncryptMD5Base::ComputeOwnerKey uses a keyLength of 32 to index 16-byte mkey and digest stack buffers, writing past mkey and reading past digest. Processing attacker-supplied PDF content is required, and the demonstrated consequence is a crash with exploitable stack corruption.
The record
- CVE
- CVE-2021-30472
- Published
- May 26, 2021
- Updated
- Aug 3, 2024
- Vendor
- PoDoFo Project
- Product
- PoDoFo
- Classifications
- CWE-787, CWE-119, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 26, 2021CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=PoDoFo 0.9.7
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- bug4 crafted PDF proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo