Downloads · 30 days
0
ericblackgachara/darrknet-cv2-dos-oom-pos
darrknet-cv2-dos-oom-pos is a machine learning model from ericblackgachara. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Status: PoC CONFIRMED ✅ — Ready for huntr submission
Downloads · 30 days
0
Access
Public
Updated May 9, 2026
Repo size
133 KB
Likes
0
Public
Click a slice to open those files.
.pdf133 KB · 95%
From the Hugging Face model README
Status: PoC CONFIRMED ✅ — Ready for huntr submission
| Field | Value |
|---|---|
| Target | opencv-python DNN module (cv2.dnn.readNetFromDarknet) / darknet |
| Format | Darknet .cfg + .weights files |
| Vuln | CWE-789 — Unbounded output tensor allocation from file-controlled filters |
| CVSS | 7.5 High |
| Trigger | readNetFromDarknet("evil.cfg", "evil.weights") → net.forward() → cv2.error |
| Effect | OutOfMemoryError: Failed to allocate 346,112,000,000 bytes |
python3 poc/make_poc.py # creates evil.cfg + evil.weights
python3 poc/trigger.py # cv2.error OutOfMemoryError at net.forward()
poc/make_poc.py — builds evil.cfg + evil.weightspoc/trigger.py — triggers crashreport.md — huntr submission reportevidence/poc-run.html — self-contained HTML evidencemodules/dnn/src/darknet/darknet_io.cpp — filters read from .cfg with only > 0 checkforward(): h × w × filters × batch × sizeof(float)416 × 416 × 500000 × 1 × 4 = 346,112,000,000 bytes = 322 GiB → OutOfMemoryErrorNormal YOLO input (416×416×3) with a .cfg setting filters=500000.
readNetFromDarknet() loads without error. net.forward() attempts to allocate
the output tensor proportional to filters → 322 GiB → crash.