CVE-2026-81334
Last modified
CVE-2026-81334 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| hank-ai | darknet | <= 6.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-81334?
How severe is CVE-2026-81334?
How do I fix CVE-2026-81334?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-8132A weakness has been identified in CodeAstro Leave Management…7.3
- CVE-2026-81320A flaw was found in hawtio-operator. When a custom Route TLS…5.5
- CVE-2026-81322Exposure of Sensitive Information to an Unauthorized Actor v…2.1
- CVE-2026-81326QND uses a hard-coded cryptographic key, which may allow a l…6.8
- CVE-2026-8133A security vulnerability has been detected in zyx0814 FilePr…7.3
- CVE-2026-81330The C6 ear camera transmits live video to the EarVision Andr…6.5
- CVE-2026-81335Baserow dispatches an Application Builder data source withou…7.5
- CVE-2026-8134Concrete CMS 9.5.0 and below fails to sanitize path traversa…7.2
- CVE-2026-81340The MasterStudy LMS WordPress Plugin WordPress plugin befor…
- CVE-2026-81341wolfEngine before 1.4.1 sources the explicit AES-CCM nonce f…6.5
- CVE-2026-81342The MasterStudy LMS WordPress Plugin WordPress plugin befor…4.7
- CVE-2026-81346The Frontend Admin by DynamiApps WordPress plugin before 3.2…4.3
Are you affected by CVE-2026-81334?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
