Skip to main content

hank-ai Darknet CVE-2026-81334

| EUVDEUVD-2026-67031 MEDIUM
Out-of-bounds Read (CWE-125)
2026-08-27 VulnCheck GHSA-727p-q944-q4q7
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted .cfg file with oversized layer index
  2. Delivery
    Victim or pipeline invokes darknet configuration parser
  3. Exploit
    parse_shortcut_section reads net.layers[index].outputs out-of-bounds
  4. Execution
    create_network writes fixed byte to heap past allocation boundary
  5. Impact
    Process crashes (DoS) or adjacent heap metadata corrupted

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target invoke darknet's configuration parser against a .cfg file in which a shortcut, scale_channels, sam, or route section contains a from or layers field value that exceeds the count of network layer sections declared in that same file. No non-default runtime flag, environment variable, or build option is required-parsing runs unconditionally before weight loading. Limiting factors: the victim must execute darknet (or an application embedding it) with the attacker-supplied .cfg file as input (CVSS UI:P-passive user interaction or an automated pipeline consuming external configs); the attack vector is local file parsing (AV:L), not a network-reachable service; and the write primitive is constrained to a single fixed byte value per invocation, making reliable code execution beyond denial-of-service difficult without additional heap-shaping primitives. Deployments that exclusively process internally authored and validated configuration files are not at meaningful risk.

Impact

The CVSS 4.0 score of 6.9 with AV:L/UI:P accurately captures the constrained attack surface: exploitation requires local delivery of a malicious .cfg file and user (or pipeline) invocation of the parser. The high availability impact reflects a reliable, deterministic crash rather than a probabilistic one. The integrity impact is rated low because the write primitive controls only the heap offset, not the written value, significantly limiting exploitation beyond denial-of-service-heap layout randomization (ASLR) further reduces the utility of the fixed-byte write for memory corruption attacks. EPSS data was not provided and is therefore unavailable for comparison. The absence of a KEV listing and the lack of any referenced proof-of-concept code suggest no confirmed widespread exploitation. The realistic threat population is narrow: research or production ML pipelines that consume externally authored or user-supplied .cfg files; organizations processing only internally validated configurations face negligible risk. The niche deployment footprint of Darknet further limits aggregate exposure, though any team running automated model-training workflows against untrusted config repositories should treat bounds validation of index fields as a priority fix.

Exploit ScenarioDerived

An attacker crafts a darknet .cfg file containing a shortcut section whose from field is set to a value greater than the number of declared layers-for example, specifying layer index 9999 in a network with 10 declared layers. When a user or automated ML pipeline invokes darknet to load this configuration, parse_shortcut_section reads past the xcalloc-allocated layer array, and create_network subsequently writes a fixed byte to a heap address offset by the oversized index, reliably crashing the process and potentially corrupting adjacent heap metadata. No public proof-of-concept has been identified, though the attack is straightforward to reproduce given the documented source paths and the fact that parsing runs before any weights file is required.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 27, 2026

Out-of-bounds read and write primitives in the hank-ai Darknet neural network framework (all versions through 6.0) are triggered by parsing a crafted configuration file, yielding a reliable crash and a single fixed-byte heap write at an attacker-controlled offset. The parser in src-lib/darknet_cfg.cpp consumes the from field of shortcut, scale_channels, and sam sections-and the layers field of route sections-as a direct array index into the layer heap allocation without validating it against the array's declared size. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV.

RemediationAI

No vendor-released patched version has been identified at time of analysis; the affected version range is confirmed as all releases through 6.0. Monitor the VulnCheck advisory (https://www.vulncheck.com/advisories/darknet-through-6.0-out-of-bounds-read-and-write-via-unchecked-layer-index-in-cfg-parser) and the upstream GitHub repository (https://github.com/hank-ai/darknet) for a patched release. The correct upstream fix is to add a bounds check in parse_shortcut_section (src-lib/darknet_cfg.cpp) and in the create_network dispatch loop (src-lib/darknet_network.cpp), validating that any index derived from from or layers fields satisfies 0 <= index < net.n before use; this can be applied as a local source patch with no expected functional side effects. As a compensating control until a patch is available, restrict darknet to parsing only internally authored or schema-validated .cfg files-specifically preventing any external input from supplying from or layers field values. Where automated pipelines ingest third-party configs, sandbox the darknet process with OS-level isolation (seccomp profile, container with limited capabilities, or separate low-privilege user) to bound the impact of a crash or marginal heap write to the parser process alone.

Affected VersionsENISA

darknet 0 ≤6.0

Affected Packages

euvd darknet no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Darknet is an open-source C/C++ neural network inference framework maintained by hank-ai (CPE: cpe:2.3:a:hank-ai:darknet:*:*:*:*:*:*:*:*). The vulnerability's root cause is CWE-125 (out-of-bounds read), compounded by an associated out-of-bounds write. In src-lib/darknet_network.cpp, the layer heap is allocated via xcalloc(net.n, sizeof(Darknet::Layer)), sized exactly to the count of declared layer sections in the .cfg file. The parse_shortcut_section function in src-lib/darknet_cfg.cpp reads net.layers[index].outputs using an index derived directly from the from or layers configuration field, applying no bounds check against net.n. Subsequently, the create_network dispatch loop writes fixed one-byte values to net.layers[l.index].use_bin_output and net.layers[l.index].keep_delta_gpu at the same unchecked offset. The read and write both occur during configuration parsing, before any weights file is opened, meaning no model data or secondary file is required to trigger the vulnerability.

Know when Darknet gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.1 MEDIUM

AV:L because exploitation requires parsing a local config file; PR:N since no system privileges are needed to supply a .cfg file; UI:R because a user or pipeline must invoke darknet with the crafted input; A:H for reliable crash; I:L for the fixed-byte heap write with no confidentiality exposure.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

darknet subscripts its layer array with an index taken from a configuration file without checking it against the array's length. The array is allocated in src-lib/darknet_network.cpp as xcalloc(net.n, sizeof(Darknet::Layer)), sized to exactly the number of layer sections the file declares. The shortcut, scale_channels and sam sections supply that index through their from field and the route section through its layers field, and parse_shortcut_section in src-lib/darknet_cfg.cpp reads net.layers[index].outputs with no bounds check, which reads past the allocation. The dispatch loop in create_network then reuses the same index to assign net.layers[l.index].use_bin_output and net.layers[l.index].keep_delta_gpu, writing past the allocation at an offset the file controls, with a fixed one-byte value. Parsing a crafted configuration file is sufficient: the parse runs before any weights file is opened and needs no non-default option, so the result is a reliable crash and a write whose location, though not its value, is chosen by whoever supplied the file.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche open-source ML framework, limited enterprise production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy