CVE-2026-112273

libtins through 4.6 Heap Out-of-Bounds Read via DNS::compose_name

Published Oct 19, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability resides in libtins up to version 4.6, where the function that composes DNS names can read beyond the bounds of a heap buffer. By sending a DNS packet whose label ends exactly at the packet end, a remote attacker can force the library to read one byte past the allocated memory. The read is not controlled by an attacker but can expose data beyond the packet or, in the case of hardened allocators, trigger a crash. The primary consequence is a denial of service to applications that rely on libtins for DNS packet processing, and there is a remote possibility of leaking sensitive information from memory if the environment is not hardened.

Affected Systems

The issue affects any installation of libtins version 4.6 or earlier when DNS packet parsing is enabled. The library is widely used in network monitoring, packet sniffing, and forensic tools that process DNS data. The vulnerability is triggered by a single crafted DNS query containing a label that terminates precisely at the packet boundary. Supported platforms include Linux, Windows, and macOS through the standard libtins distribution and any derivative projects that embed the library.

Risk and Exploitability

The CVSS score of 6.9 indicates a medium severity. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog. Attackers can remotely exploit this flaw by transmitting malicious DNS packets over the network to any host running libtins without protective controls. Because the vulnerability requires only crafted packet delivery, it is practical for attackers and can cause service disruption or data exposure if memory contents are readable. The exploit is straightforward and does not require privileged access to the target system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libtins to the latest patched release or to a version newer than 4.6 that resolves the heap out‑of‑bounds read.
  • Configure network filters or firewall rules to block or reject DNS packets that contain excessively long or malformed labels that could trigger the vulnerable code path.
  • Continuously monitor application logs and performance metrics for abnormal crashes or memory access violations and apply remediation as soon as a vulnerability is detected.

Generated by OpenCVE AI on October 19, 2026 at 15:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Libtins
Libtins libtins
Vendors & Products Libtins
Libtins libtins
Type Values Removed Values Added
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.
Title libtins through 4.6 Heap Out-of-Bounds Read via DNS::compose_name
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 22, 2026, 2:51 AM
Reserved
Oct 19, 2026, 1:25 PM
Status
Deferred
Published
Oct 19, 2026, 2:17 PM
Modified
Oct 22, 2026, 3:16 AM