# CVE-2023-31470: SmartDNS through 41 before 56d0332 allows an out-of-bounds write because of a stack-based buffer overflow in the dnsencodedomain function i…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.12%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-28T00:00:00.000Z
- Modified: 2026-06-17T05:57:02.500Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

SmartDNS through 41 before 56d0332 allows an out-of-bounds write because of a stack-based buffer overflow in the _dns_encode_domain function in the dns.c file, via a crafted DNS request.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pymumu smartdns: up to 41

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pymumu/smartdns/issues/1378> (exploit)
- <https://github.com/pymumu/smartdns/commit/56d0332bf91104cfc877635f6c82e9348587df04> (patch)

## Sources

- CVE List: [CVE-2023-31470](https://www.cve.org/CVERecord?id=CVE-2023-31470), CVE Terms of Use, modified 2025-01-31
- NVD: [CVE-2023-31470](https://nvd.nist.gov/vuln/detail/CVE-2023-31470), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31470 · Whole record: https://cve.day/CVE-2023-31470.json · Rebuilt by cve.day 2026-11-25T22:58:23.826Z
