CVE & CISA-KEV Catalog

CVE-2023-31137

HIGH
7.5
CVSS v3
NVD

Description

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 Available
maradnsDebian
Fixed in:2.0.13-1.4+deb11u1CVE-2023-31137
duendeUbuntu
Fixed in:2.0.13-1ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.2ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.20.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.22.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.23.04.1USN-6271-1
maradnsUbuntu
Fixed in:2.0.13-1ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.2ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.20.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.22.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.23.04.1USN-6271-1
maradns-deadwoodUbuntu
Fixed in:2.0.13-1ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.2ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.20.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.22.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.23.04.1USN-6271-1
maradns-zoneserverUbuntu
Fixed in:2.0.13-1ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.2ubuntu0.1~esm1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.20.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.22.04.1USN-6271-1
Fixed in:2.0.13-1.4+deb11u1build0.23.04.1USN-6271-1

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

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

1.14%probability of exploitation in 30 days
63rdpercentile

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

CVESeverityCVSSEPSSExploitedFix
CVE-2014-0497Critical9.8100%KEVFix
CVE-2020-36221High7.584%-Fix
CVE-2020-36228High7.583%-Fix
CVE-2023-31102High7.871%-Fix
CVE-2024-38063Critical9.871%-Fix
CVE-2017-14496High7.566%-Fix
Embed a live status badge for CVE-2023-31137
CVE-2023-31137 severity badge

Markdown

[![CVE-2023-31137](https://tridentstack.com/cve/badge/CVE-2023-31137.svg)](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 free

This 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.