Darknet convolutional-padding allocation DoS PoC

This repository contains a benign security research PoC for a Darknet config that drives large allocation in cv2.dnn.readNetFromDarknet(...).

Files:

  • control_same_size.cfg
  • malicious_padding_20000.cfg
  • tiny_shared.weights
  • reproduce.py

Observed behavior:

  • control config:
    • loads successfully
  • malicious config:
    • with [convolutional] padding=20000
    • raises: Failed to allocate 6400320004 bytes

Reproduction:

python3 build_poc.py
python3 reproduce.py
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support