# CVE-2021-3548: A flaw was found in dmg2img through 20170502.

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-02)
- Published: 2021-05-26T20:32:33.000Z
- Modified: 2026-06-17T04:05:19.650Z
- Weaknesses: CWE-125
- Assigned by: redhat

## Description

A flaw was found in dmg2img through 20170502. dmg2img did not validate the size of the read buffer during memcpy() inside the main() function. This possibly leads to memory layout information leaking in the data. This might be used in a chain of vulnerability in order to reach code execution.

(As written by CVE List.)

## Affected

- dmg2img: dmg2img through 20170502
- dmg2img_project dmg2img: up to 20170502

## Every score

- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1959585> (issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3548](https://www.cve.org/CVERecord?id=CVE-2021-3548), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3548](https://nvd.nist.gov/vuln/detail/CVE-2021-3548), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3548 · Whole record: https://cve.day/CVE-2021-3548.json · Rebuilt by cve.day 2026-11-25T22:58:01.551Z
