Heap-based buffer overflow in libspf2 - CVE-2021-33913

 

Heap-based buffer overflow in libspf2 - CVE-2021-33913

Published: August 22, 2022


Vulnerability identifier: #VU66695
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-33913
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the spf_expand.c when parsing SPF DNS records. A remote attacker can send an email to the affected server, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libspf2
Gentoo Linux
Ubuntu
libmail-spf-xs-perl (Ubuntu package)
libspf2-2 (Ubuntu package)
libspf2-dev (Ubuntu package)
spfquery (Ubuntu package)
mail-filter/libspf2

How to mitigate CVE-2021-33913

Cybersecurity Help is currently unaware of any official solution to address this vulnerability..

libmail-spf-xs-perl (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.10-7+deb9u2build0.20.04.1
libspf2-2 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.10-7+deb9u2build0.20.04.1
libspf2-dev (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.10-7+deb9u2build0.20.04.1
spfquery (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.10-7+deb9u2build0.20.04.1
mail-filter/libspf2 - update to 1.2.11

External References

Related Security Bulletins