{"answers":{"affected":"3 open source packages ship an affected version, including aiohttp. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-23334 exists.","fix":"Upgrade aiohttp to 3.9.2 or later.","what":"CVE-2024-23334 is a medium-severity path traversal vulnerability in Fedoraproject Fedora, published on 29 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-23334 and fix it if it is affected.\n\nWhat it is: CVE-2024-23334 is a medium-severity path traversal vulnerability in Fedoraproject Fedora, published on 29 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-23334 exists.\n\nAffected packages and fixed versions:\n- aiohttp (PyPI): affected from 1.0.5; fixed in 3.9.2\n- aiohttp (PyPI): affected from 1.0.5; fixed in 3.9.2\n- aiohttp (PyPI): affected from 1.0.5; fixed in 3.9.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-23334/ (Markdown: https://insights.sbomify.com/CVE-2024-23334/index.md)","id":"CVE-2024-23334","markdown":"https://insights.sbomify.com/CVE-2024-23334/index.md","name":"CVE-2024-23334","record":{"aliases":["AZL-43552","AZL-44319","CLSA-2026-1788349677","DEBIAN-CVE-2024-23334","ECHO-14a1-a31d-6fee","GHSA-5h86-8mv2-jq9f","PYSEC-2024-24","ROOT-APP-PYPI-CVE-2024-23334","UBUNTU-CVE-2024-23334","USN-6991-1","openSUSE-SU-2024:13642-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Python HTTP library","requires_auth":"none","summary":"Attackers can read arbitrary files on the server when aiohttp static routes are configured with follow_symlinks enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"aiohttp","vendor":"aiohttp"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. When using aiohttp as a web server and configuring static routes, it is necessary to specify the root path for static files. Additionally, the option 'follow_symlinks' can be used to determine whether to follow symbolic links outside the static root directory. When 'follow_symlinks' is set to True, there is no validation to check if reading a file is within the root directory. This can lead to directory traversal vulnerabilities, resulting in unauthorized access to arbitrary files on the system, even when symlinks are not present.  Disabling follow_symlinks and using a reverse proxy are encouraged mitigations.  Version 3.9.2 fixes this issue.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":1,"first_seen":"2024-02-28","github_poc":15,"max_poc_stars":27,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-03-19T16:28:56Z","kind":"github_poc","ref":"https://github.com/jhonnybonny/CVE-2024-23334","stars":27,"title":"aiohttp LFI (CVE-2024-23334)"},{"date":"2024-03-18T20:39:27Z","kind":"github_poc","ref":"https://github.com/z3rObyte/CVE-2024-23334-PoC","stars":20,"title":"A proof of concept of the path traversal vulnerability in the python AioHTTP library =\u003c 3.9.1"},{"date":"2024-02-28T22:30:21Z","kind":"github_poc","ref":"https://github.com/ox1111/CVE-2024-23334","stars":6,"title":"CVE-2024-23334"},{"date":"2024-10-20T15:28:58Z","kind":"github_poc","ref":"https://github.com/wizarddos/CVE-2024-23334","stars":5,"title":"Proof-of-Concept for LFI/Path Traversal vulnerability in Aiohttp =\u003c 3.9.1"},{"date":"2024-03-17T10:56:02Z","kind":"github_poc","ref":"https://github.com/sxyrxyy/aiohttp-exploit-CVE-2024-23334-certstream","stars":4,"title":null},{"date":"2024-09-08T10:37:29Z","kind":"github_poc","ref":"https://github.com/s4botai/CVE-2024-23334-PoC","stars":4,"title":"A proof of concept of the LFI vulnerability on aiohttp 3.9.1"},{"date":"2024-11-14T21:43:29Z","kind":"github_poc","ref":"https://github.com/TheRedP4nther/LFI-aiohttp-CVE-2024-23334-PoC","stars":2,"title":"Bash script to automate Local File Inclusion (LFI) attacks on aiohttp server version 3.9.1."},{"date":"2024-11-07T21:37:05Z","kind":"github_poc","ref":"https://github.com/0xR00/CVE-2024-23334","stars":1,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal","id":"CVE-2024-23334","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"path_traversal","year":"2024"},"n_packages":4,"n_references":5,"next":{"headline":"Backups directory .htaccess deletion in. MyBB","id":"CVE-2024-23335"},"packages":[{"ecosystem":"PyPI","fixed":["3.9.2"],"introduced":["1.0.5"],"last_affected":[],"package":"aiohttp","purl":null,"source":"GHSA-5h86-8mv2-jq9f"},{"ecosystem":"PyPI","fixed":["3.9.2"],"introduced":["1.0.5"],"last_affected":[],"package":"aiohttp","purl":"pkg:pypi/aiohttp","source":"GHSA-5h86-8mv2-jq9f"},{"ecosystem":"PyPI","fixed":["3.9.2"],"introduced":["1.0.5"],"last_affected":[],"package":"aiohttp","purl":"pkg:pypi/aiohttp","source":"PYSEC-2024-24"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.9.3-1.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/opensuse/python-aiohttp\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13642-1"}],"prev":{"headline":"LAM vulnerable to Authenticated Remote Code Execution","id":"CVE-2024-23333"},"products":["aiohttp"],"published":"2024-01-29","related":[{"cvss_score":8.7,"headline":"aiohttp memory leak when middleware is enabled when requesting a resource with a non-allowed method","id":"CVE-2024-52303","kev_date_added":null,"published":"2024-11-18"},{"cvss_score":7.5,"headline":"AIOHTTP's HTTP Parser auto_decompress feature is vulnerable to zip bomb","id":"CVE-2025-69223","kev_date_added":null,"published":"2026-01-05"},{"cvss_score":7.5,"headline":"Denial of service when trying to parse malformed POST requests in aiohttp","id":"CVE-2024-30251","kev_date_added":null,"published":"2024-05-02"},{"cvss_score":7.2,"headline":"aiohttp's ClientSession is vulnerable to CRLF injection via version","id":"CVE-2023-49081","kev_date_added":null,"published":"2023-11-30"},{"cvss_score":6.9,"headline":"AIOHTTP: Uncapped memory usage possible through aiohttp allowing unlimited trailer headers","id":"CVE-2026-22815","kev_date_added":null,"published":"2026-04-01"},{"cvss_score":6.6,"headline":"AIOHTTP: HTTP/1 Pipelined Requests Queue Without Limit","id":"CVE-2026-54273","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":6.6,"headline":"AIOHTTP: Incomplete websocket frame payloads bypass memory limits","id":"CVE-2026-54274","kev_date_added":null,"published":"2026-06-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-04","vendors":["aio-libs"]},"summary":"Attackers can read arbitrary files on the server when aiohttp static routes are configured with follow_symlinks enabled.","url":"https://insights.sbomify.com/CVE-2024-23334/"}