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.
Published: 2026-10-19
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

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.

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

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

History

Mon, 19 Oct 2026 14:00:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T13:55:20.684Z

Reserved: 2026-10-19T13:25:28.347Z

Link: CVE-2026-112273

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-19T14:17:05.080

Modified: 2026-10-19T21:14:14.150

Link: CVE-2026-112273

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T15:45:17Z

Weaknesses