CVE-2023-31137
MaraDNS Denial of Service Vulnerability
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.
INFO
Published Date :
May 9, 2023, 2:15 p.m.
Last Modified :
March 7, 2024, 7:56 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Affected Products
The following products are affected by CVE-2023-31137
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-31137
.
URL | Resource |
---|---|
https://github.com/samboy/MaraDNS/blob/08b21ea20d80cedcb74aa8f14979ec7c61846663/dns/Decompress.c#L886 | Product |
https://github.com/samboy/MaraDNS/commit/bab062bde40b2ae8a91eecd522e84d8b993bab58 | Patch |
https://github.com/samboy/MaraDNS/security/advisories/GHSA-58m7-826v-9c3c | Vendor Advisory |
https://lists.debian.org/debian-lts-announce/2023/06/msg00019.html | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/[email protected]/message/3VSMLJX25MXGQ6A7UPOGK7VPUVDESPHL/ | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/[email protected]/message/NB7LDZM5AGWC5BHHQHW6CP5OFNBBKFOQ/ | Mailing List Third Party Advisory |
https://www.debian.org/security/2023/dsa-5441 | Mailing List Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-31137
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-31137
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Mar. 07, 2024
Action Type Old Value New Value Changed Reference Type https://lists.debian.org/debian-lts-announce/2023/06/msg00019.html No Types Assigned https://lists.debian.org/debian-lts-announce/2023/06/msg00019.html Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/3VSMLJX25MXGQ6A7UPOGK7VPUVDESPHL/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/3VSMLJX25MXGQ6A7UPOGK7VPUVDESPHL/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/NB7LDZM5AGWC5BHHQHW6CP5OFNBBKFOQ/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/NB7LDZM5AGWC5BHHQHW6CP5OFNBBKFOQ/ Mailing List, Third Party Advisory Changed Reference Type https://www.debian.org/security/2023/dsa-5441 No Types Assigned https://www.debian.org/security/2023/dsa-5441 Mailing List, Third Party Advisory Changed CPE Configuration OR *cpe:2.3:a:maradns:maradns:*:*:*:*:*:*:*:* versions up to (including) 3.5.0024 OR *cpe:2.3:a:maradns:maradns:*:*:*:*:*:*:*:* versions up to (excluding) 3.4.10 *cpe:2.3:a:maradns:maradns:*:*:*:*:*:*:*:* versions from (including) 3.5.0001 up to (excluding) 3.5.0036 Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Jun. 29, 2023
Action Type Old Value New Value Added Reference https://www.debian.org/security/2023/dsa-5441 [No Types Assigned] -
CVE Modified by [email protected]
Jun. 19, 2023
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2023/06/msg00019.html [No Types Assigned] -
CVE Modified by [email protected]
May. 25, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/NB7LDZM5AGWC5BHHQHW6CP5OFNBBKFOQ/ [No Types Assigned] Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/3VSMLJX25MXGQ6A7UPOGK7VPUVDESPHL/ [No Types Assigned] -
Initial Analysis by [email protected]
May. 16, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/samboy/MaraDNS/blob/08b21ea20d80cedcb74aa8f14979ec7c61846663/dns/Decompress.c#L886 No Types Assigned https://github.com/samboy/MaraDNS/blob/08b21ea20d80cedcb74aa8f14979ec7c61846663/dns/Decompress.c#L886 Product Changed Reference Type https://github.com/samboy/MaraDNS/commit/bab062bde40b2ae8a91eecd522e84d8b993bab58 No Types Assigned https://github.com/samboy/MaraDNS/commit/bab062bde40b2ae8a91eecd522e84d8b993bab58 Patch Changed Reference Type https://github.com/samboy/MaraDNS/security/advisories/GHSA-58m7-826v-9c3c No Types Assigned https://github.com/samboy/MaraDNS/security/advisories/GHSA-58m7-826v-9c3c Vendor Advisory Added CPE Configuration OR *cpe:2.3:a:maradns:maradns:*:*:*:*:*:*:*:* versions up to (including) 3.5.0024
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-31137
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-31137
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.18 }} 0.03%
score
0.55302
percentile