Description
libtins through 4.6 contains a heap out-of-bounds read vulnerability in DNS::compose_name in src/dns.cpp that allows remote attackers to read past the packet buffer by sending a label ending exactly at the packet end. Attackers can deliver crafted DNS packets whose additional, answer, or authority records trigger a one-byte read when parsed, crashing applications on hardened allocators.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-125 — Out-of-bounds Read
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libtins | libtins | 0 to <=4.6 [affected] |
References
- https://hackmd.io/@haindpwn/libtins-dns-name-parsing-oob-read (third-party-advisory)
- https://github.com/mfontanini/libtins/blob/v4.6/src/dns.cpp#L338-L389 (technical-description)
- https://github.com/mfontanini/libtins (product)
- https://www.vulncheck.com/advisories/libtins-through-4.6-heap-out-of-bounds-read-via-dns-compose-name (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 20 Oct 2026 07:03 UTC.