CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2024-12254

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

High risk
1.88%

77th percentile - higher than 77% of all known CVEs

Summary

W wersji Python 3.12.0 i nowszych metoda asyncio._SelectorSocketTransport.writelines() nie wstrzymuje pisania i nie sygnalizuje protokołowi, aby opróżnił bufor, gdy osiągnie on 'wysoki poziom wody'. Może to prowadzić do wyczerpania pamięci, ponieważ protokoły nie opróżniają okresowo bufora zapisu.

Risk Assessment

Podatność ta może wpłynąć na niewielką liczbę użytkowników, którzy korzystają z Pythona 3.12.0 lub nowszego na systemach macOS lub Linux, używając modułu asyncio z protokołami oraz metody .writelines(). W przeciwnym razie użytkowanie Pythona nie jest zagrożone.

Recommendation

Zaleca się aktualizację do najnowszej wersji Pythona oraz monitorowanie użycia metody .writelines() w kontekście protokołów, aby uniknąć problemów z wyczerpaniem pamięci.

Related vulnerabilities

Original NVD description (English source)

Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines() method would not "pause" writing and signal to the Protocol to drain the buffer to the wire once the write buffer reached the "high-water mark". Because of this, Protocols would not periodically drain the write buffer potentially leading to memory exhaustion. This vulnerability likely impacts a small number of users, you must be using Python 3.12.0 or later, on macOS or Linux, using the asyncio module with protocols, and using .writelines() method which had new zero-copy-on-write behavior in Python 3.12.0 and later. If not all of these factors are true then your usage of Python is unaffected.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS