Out-of-bounds write in OpenDMARC - CVE-2020-12460
Published: July 28, 2020 / Updated: April 30, 2021
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
OpenDMARC through 1.3.2 and 1.4.x through 1.4.0-Beta1 has improper null termination in the function opendmarc_xml_parse that can result in a one-byte heap overflow in opendmarc_xml when parsing a specially crafted DMARC aggregate report. This can cause remote memory corruption when a '�' byte overwrites the heap metadata of the next chunk and its PREV_INUSE flag.
Affected software
Arch Linux
Gentoo Linux
Fedora
Ubuntu
libopendmarc2 (Ubuntu package)
opendmarc (Ubuntu package)
opendmarc
How to mitigate CVE-2020-12460
libopendmarc2 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.3.2-3ubuntu0.2, 1.3.2-7ubuntu0.1
opendmarc (Ubuntu package) - addressed in versions Ubuntu Pro, 1.3.2-3ubuntu0.2, 1.3.2-7ubuntu0.1
opendmarc - addressed in versions 1.4.0-1.fc34, 1.4.1-1.el7, 1.4.1-1.el8, 1.4.1-1.fc33, 1.4.1-1.fc34