VDB
EN
HIGH 7.5

GHSA-m9gh-vj53-gvh9

python-engineio has possible denial of service due to maximum payload size sometimes not being enforced

상세

### Impact There are two specific configurations of the python-engineio server in which the size of incoming messages is not checked before the messages are loaded into memory. An attacker can take advantage of these to cause unnecessary memory allocations in the python-engineio server. The two cases are:

- POST requests, when using ASGI with the long polling transport - WebSocket messages, when using Aiohttp with the WebSocket transport

### Patches Version 4.13.2 addresses this issue as follows:

- ASGI severs now only load the body of incoming requests into memory after the client is confirmed to be known and authenticated, and the payload size is below the maximum allowed size. Requests that do not comply with these requirements are discarded. - Aiohttp servers configure the maximum payload size in the underlying WebSocket layer from Aiohttp, so that large messages are discarded by Aiohttp before they are delivered to python-engineio.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

PyPI / python-engineio
최초 영향 버전: 0 수정 버전: 4.13.2
수정 pip install --upgrade 'python-engineio>=4.13.2'

참고