CVE-2023-31137
HIGHDescription
MaraDNS is open-source software that implements the Domain Name System (DNS). In version 3.5.0024 and prior, a remotely exploitable integer underflow vulnerability in the DNS packet decompression function allows an attacker to cause a Denial of Service by triggering an abnormal program termination. The vulnerability exists in the `decomp_get_rddata` function within the `Decompress.c` file. When handling a DNS packet with an Answer RR of qtype 16 (TXT record) and any qclass, if the `rdlength` is smaller than `rdata`, the result of the line `Decompress.c:886` is a negative number `len = rdlength - total;`. This value is then passed to the `decomp_append_bytes` function without proper validation, causing the program to attempt to allocate a massive chunk of memory that is impossible to allocate. Consequently, the program exits with an error code of 64, causing a Denial of Service. One proposed fix for this vulnerability is to patch `Decompress.c:887` by breaking `if(len <= 0)`, which has been incorporated in version 3.5.0036 via commit bab062bde40b2ae8a91eecd522e84d8b993bab58.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 63% of all known CVEs.
References
Related Vulnerabilities
Other CWE-191 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2014-0497 | Critical | 9.8 | 100% | KEV | Fix |
| CVE-2020-36221 | High | 7.5 | 84% | - | Fix |
| CVE-2020-36228 | High | 7.5 | 83% | - | Fix |
| CVE-2023-31102 | High | 7.8 | 71% | - | Fix |
| CVE-2024-38063 | Critical | 9.8 | 71% | - | Fix |
| CVE-2017-14496 | High | 7.5 | 66% | - | Fix |
Embed a live status badge for CVE-2023-31137
Markdown
[](https://tridentstack.com/cve/CVE-2023-31137)HTML
<a href="https://tridentstack.com/cve/CVE-2023-31137"><img src="https://tridentstack.com/cve/badge/CVE-2023-31137.svg" alt="CVE-2023-31137"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.