Intel

AIKIDO-2026-237477

guard-core is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-c2r5-9jw9-m8q5 Published Yesterday

53

Medium Risk

This Affects:

PYTHONguard-core
0.0.1 - 3.11.0
Fixed in 3.12.0
Are you affected? Scan for Free

TL;DR

The penetration detector engine bounds how much request body it reads through a cap that is only enforced when a Content-Length header is present, and treats a missing header as under the cap. A request sent with Transfer-Encoding: chunked carries no Content-Length, so the check fails and the middleware reads the entire stream into memory and then decodes it to text. An unauthenticated client can send a large chunked body to any route the middleware covers and consume large amounts of server memory. The fix reads only a bounded prefix of bodies that lack a usable Content-Length and applies a wall-clock read timeout so the unbounded read no longer happens.

Who does this affect?

You are affected if penetration detection is enabled and any covered route is reachable by untrusted clients.

Background info

guard-core is vulnerable to Uncontrolled Resource Consumption in versions 0.0.1 - 3.11.0.

How to fix this

Upgrade the guard-core library to the patch version.