Out-of-bounds write in OpenDMARC - CVE-2020-12460

 

Out-of-bounds write in OpenDMARC - CVE-2020-12460

Published: July 28, 2020 / Updated: April 30, 2021


Vulnerability identifier: #VU34050
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-12460
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

OpenDMARC
Arch Linux
Gentoo Linux
Fedora
Ubuntu
libopendmarc2 (Ubuntu package)
opendmarc (Ubuntu package)
opendmarc

How to mitigate CVE-2020-12460

Install update from vendor's website.

OpenDMARC - update to 1.4.0
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

External References

Related Security Bulletins