Memory disclosure and crash via unchecked memcpy length
Published May 26, 2021 · Updated Aug 3, 2024
Out-of-bounds read in dmg2img through 20170502 allows local users to disclose process memory or crash the converter via a crafted DMG file. The main function passes the attacker-controlled parts[i].BlocksRunCount multiplied by 0x28 to memcpy without checking it against the decoded buffer length. Exploitation requires a user to process the crafted image; a heap over-read and abort are demonstrated, while the source reports code execution only as a chained possibility.
Summary
What happened
Out-of-bounds read in dmg2img through 20170502 allows local users to disclose process memory or crash the converter via a crafted DMG file. The main function passes the attacker-controlled parts[i].BlocksRunCount multiplied by 0x28 to memcpy without checking it against the decoded buffer length. Exploitation requires a user to process the crafted image; a heap over-read and abort are demonstrated, while the source reports code execution only as a chained possibility.
The record
- CVE
- CVE-2021-3548
- Published
- May 26, 2021
- Updated
- Aug 3, 2024
- Vendor
- dmg2img Project
- Product
- dmg2img
- Classifications
- CWE-125, T1204.002
- 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=dmg2img through 20170502
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.
Public exploit references
- heap-overflow-dmg2img-284 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