{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-31137","published":"2023-05-09T14:15:13.607000Z","last_modified":"2026-06-17T05:56:21.527000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-191"],"cpes":[{"criteria":"cpe:2.3:a:maradns:maradns:*:*:*:*:*:*:*:*","part":"a","vendor":"maradns","product":"maradns","version_end_excluding":"3.4.10"},{"criteria":"cpe:2.3:a:maradns:maradns:*:*:*:*:*:*:*:*","part":"a","vendor":"maradns","product":"maradns","version_start_including":"3.5.0001","version_end_excluding":"3.5.0036"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"37"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"38"},{"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"10.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"11.0"}],"cpes_truncated":false,"vendors":["maradns","fedoraproject","debian"],"products":["maradns/maradns","fedoraproject/fedora","debian/debian_linux"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01429,"percentile":0.73253,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2023-31137/","html_en":"/en/cve/CVE-2023-31137/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-31137","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-31137"},"untrusted":{"vendor_name":"Maradns","product_name":"Maradns","desc_en":"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.\n\nThe 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.\n\nOne 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.","affected":[{"untrusted_vendor":"samboy","untrusted_product":"MaraDNS","versions":[]}],"references":[{"url":"https://github.com/samboy/MaraDNS/blob/08b21ea20d80cedcb74aa8f14979ec7c61846663/dns/Decompress.c#L886","tags":["Product"]},{"url":"https://github.com/samboy/MaraDNS/commit/bab062bde40b2ae8a91eecd522e84d8b993bab58","tags":["Patch"]},{"url":"https://github.com/samboy/MaraDNS/security/advisories/GHSA-58m7-826v-9c3c","tags":["Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00019.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3VSMLJX25MXGQ6A7UPOGK7VPUVDESPHL/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NB7LDZM5AGWC5BHHQHW6CP5OFNBBKFOQ/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://www.debian.org/security/2023/dsa-5441","tags":["Mailing List","Third Party Advisory"]}]}}