CVE-2026-116178: Python Pydantic Unbounded Multimodal Range Fields

Pydantic request model $MODEL declares range-geometry fields (offset / start / index / position, length / size) as plain `int` with no `Field(ge=...)` / `Field(gt=...)` constraint. When this schema validates remote request bodies, a client can supply negative offsets or zero/negative lengths that slip past downstream arithmetic bounds checks (Python negative

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-116178-python-pydantic-unbounded-multimodal-range-fields --engine opengrep

Description

Pydantic request model $MODEL declares range-geometry fields (offset / start / index / position, length / size) as plain `int` with no `Field(ge=...)` / `Field(gt=...)` constraint. When this schema validates remote request bodies, a client can supply negative offsets or zero/negative lengths that slip past downstream arithmetic bounds checks (Python negative