CVE-2021-33913 Memory corruption in n/a
Remote attackers can execute arbitrary code via a crafted SPF DNS record due to a heap-based buffer overflow in the libspf2 library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-33913?
CVE-2021-33913 is a critical memory corruption vulnerability in n/a, published on 19 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
libspf2 before 1.2.11 has a heap-based buffer overflow that might allow remote attackers to execute arbitrary code (via an unauthenticated e-mail message from anywhere on the Internet) with a crafted SPF DNS record, because of SPF_record_expand_data in spf_expand.c. The amount of overflowed data depends on the relationship between the length of an entire domain name and the length of its leftmost label. The vulnerable code may be part of the supply chain of a site's e-mail infrastructure (e.g., with additional configuration, Exim can use libspf2; the Postfix web site links to unofficial patches for use of libspf2 with Postfix; older versions of spfquery relied on libspf2) but most often is not.
Weakness: CWE-787
Which versions are affected by CVE-2021-33913?
It affects 1 product.
Products include Libspf2 Project Libspf2.
How do I fix CVE-2021-33913?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-33913 being exploited?
There is no known exploitation of CVE-2021-33913 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as ALPINE-CVE-2021-33913, DEBIAN-CVE-2021-33913, GHSA-7659-433m-4fhx, UBUNTU-CVE-2021-33913.