Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. aiohttp
  4. ›
  5. CVE-2024-52303

CVE-2024-52303: aiohttp has a memory leak when middleware is enabled when requesting a resource with a non-allowed method

November 18, 2024 (updated November 19, 2024)

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.

References

  • github.com/advisories/GHSA-27mf-ghqm-j3j8
  • github.com/aio-libs/aiohttp
  • github.com/aio-libs/aiohttp/commit/bc15db61615079d1b6327ba42c682f758fa96936
  • github.com/aio-libs/aiohttp/security/advisories/GHSA-27mf-ghqm-j3j8
  • nvd.nist.gov/vuln/detail/CVE-2024-52303

Code Behaviors & Features

Detect and mitigate CVE-2024-52303 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.10.6 before 3.10.11

Fixed versions

  • 3.10.11

Solution

Upgrade to version 3.10.11 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-772: Missing Release of Resource after Effective Lifetime

Source file

pypi/aiohttp/CVE-2024-52303.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:03 +0000.