Skip to main content

Missing Release of Resource after Effective Lifetime

CVE-2024-52303

Severity High
Score 8.7/10

Summary

The package aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. A memory leak can occur when a request produces a "MatchInfoError". This was caused by adding an entry to a cache on each request, due to the building of each "MatchInfoError" producing a unique cache entry. An attacker may be able to exhaust the memory resources of a server by sending a substantial number (100,000s to millions) of such requests. Those who use any middleware's with "aiohttp.web" should upgrade to receive a patch. This issue affects aiohttp package versions 3.10.6rc0 through 3.10.11rc0, and 3.11.0b0 through 3.11.0rc2.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-772 - Missing Release Of Resource After Effective Lifetime

'Missing release of resource after effective lifetime' is a weakness that occurs when software doesn't sufficiently release a resource (e.g. memory, CPU, disk space, etc.) after it is used. If not addressed, attackers can launch a denial of service attack (by allocating a resource and not releasing it).

Advisory Timeline

  • Published