{"id":"UBUNTU-CVE-2021-3548","details":"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.","modified":"2026-05-20T16:05:03.569221361Z","published":"2021-05-26T21:15:00Z","upstream":["CVE-2021-3548"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3548"},{"type":"REPORT","url":"https://github.com/Lekensteyn/dmg2img/issues/9"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-3548"}],"affected":[{"package":{"name":"dmg2img","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3548.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.5-1.1","1.6.7-1","1.6.7-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3548.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3548.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build1","1.6.7-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3548.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build2","1.6.7-1build3","1.6.7-1build4"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7-1build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3548.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build4","1.6.7+git20201227.a3e4134-0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7+git20201227.a3e4134-0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3548.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7+git20201227.a3e4134-0.1","1.6.7+git20201227.a3e4134-0.1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7+git20201227.a3e4134-0.1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3548.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}