CVE-2021-45957: Dnsmasq 2.86 has a heap-based buffer overflow in answer_request (called from FuzzAnswerTheRequest and fuzz_rfc
CVE-2021-45957 is a critical-severity flaw (CVSS 9.8) affecting dnsmasq. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Dnsmasq 2.86 has a heap-based buffer overflow in answer_request (called from FuzzAnswerTheRequest and fuzz_rfc1035.c). NOTE: the vendor's position is that CVE-2021-45951 through CVE-2021-45957 "do not represent real vulnerabilities, to the best of our knowledge.
Why this priority
- Critical severity
- Public exploit reference
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 2.6% (top 15%) |
| CISA exploited list | No |
| Weakness | CWE-787 |
| Published | 2022-01-01 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-45957?
dnsmasq: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-45957 being exploited?
CVE-2021-45957 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-45957 affect?
CVE-2021-45957 affects dnsmasq. Severity is critical (CVSS 9.8). Dnsmasq 2.86 has a heap-based buffer overflow in answer_request (called from FuzzAnswerTheRequest and fuzz_rfc1035.c). NOTE: the vendor's position is that CVE-2021-45951 through CVE-2021-45957 "do not represent real vulnerabilities, to the
How urgent is CVE-2021-45957?
Priority 66/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2026-12725 MEDIUM 5.9 UPGRADE MITIGATE A heap-based buffer overflow was found in dnsmasq
- CVE-2026-12969 MEDIUM 5.3 MITIGATE UPGRADE An out-of-bounds read vulnerability exists in dnsmasq's find_soa() function in src/rfc1035.c
- CVE-2023-49441 HIGH 7.5 DOWNGRADE dnsmasq 2.9 is vulnerable to Integer Overflow via forward_query.
- CVE-2023-28450 HIGH 7.5 UPGRADE An issue was discovered in Dnsmasq before 2.90
- CVE-2022-0934 HIGH 7.5 UPGRADE MITIGATE A single-byte, non-arbitrary write/use-after-free flaw was found in dnsmasq