CVE-2026-41168: Unbounded Loop From Dict

An integer parsed from a dictionary is used as a loop bound without validation against a maximum or file size. An attacker could provide a maliciously large value in a crafted file, causing a Denial of Service (DoS) due to excessive resource consumption. Ensure the loop limit is capped relative to the physical data size using `min()` or explicit `>=` / `<=`

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-41168-unbounded-loop-from-dict --engine opengrep

Description

An integer parsed from a dictionary is used as a loop bound without validation against a maximum or file size. An attacker could provide a maliciously large value in a crafted file, causing a Denial of Service (DoS) due to excessive resource consumption. Ensure the loop limit is capped relative to the physical data size using `min()` or explicit `>=` / `<=`