ADVISORIES

GitHub Advisory Database

GHSA-rrc9-mx66-ffcm

daphne: Unauthenticated attackers can cause excessive memory consumption by sending arbitrarily large WebSocket messages/frames

Details

daphne before 4.2.2 did not pass maxFramePayloadSize or maxMessagePayloadSize to Autobahn's WebSocketServerFactory. Because Autobahn defaults both values to 0 (unlimited), an unauthenticated remote attacker could send arbitrarily large WebSocket messages or frames, causing excessive memory consumption and a denial of service.

Affected packages

EcosystemPackageAffected versions
PyPIdaphne
All versions before 4.2.2 (fixed in 4.2.2)

References