TensorFlow JPEG Decoder DoS β Proof of Concept
CVE: Pending
Severity: High (CVSS 7.5) β CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE: CWE-770: Allocation of Resources Without Limits or Throttling
Affected: tensorflow β DecodeJpegV2 in decode_image_op.cc
Summary
A ~200-byte crafted JPEG file triggers a ~10.8 GB unbounded memory allocation in TensorFlow's DecodeJpegV2 kernel. All other decoders in the same file (BMP, PNG, WebP) have hard limits β JPEG does not.
Files
poc_exploit.pyβ generates malicious JPEG and triggers OOMvulnerability_report.mdβ full technical report
Quick Reproduction
pip install tensorflow
python3 poc_exploit.py
Researcher
Rodion Khoroshev (Rodion111)
Reported: 2026-04-09
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support