Exploit database

Vulnerability

CVE-2024-23334

aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal

Vulnerability details

Score
5.9
Severity
medium

CVSS 3.1 · GitHub_M

Vector string

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

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.

CVE Program

Exploit source choices

16 sources
jhonnybonny/cve-2024-23334
GH-7ec0a8d965f4563e9bfbfe44b1fa2317GitHubUnofficial GitHub source

aiohttp LFI (CVE-2024-23334)

2024-03-195 files · 27 stars
z3robyte/cve-2024-23334-poc
GH-0d7c41d094cb98fe14c8e6462cf3cf93GitHubUnofficial GitHub source

A proof of concept of the path traversal vulnerability in the python AioHTTP library =< 3.9.1

2024-03-185 files · 20 stars
ox1111/cve-2024-23334
GH-b18be73780d4f5b9ee631324929e9325GitHubUnofficial GitHub source

CVE-2024-23334

2024-02-284 files · 6 stars
wizarddos/cve-2024-23334
GH-b14659218ce6c91e2c5f52c958d72544GitHubUnofficial GitHub source

Proof-of-Concept for LFI/Path Traversal vulnerability in Aiohttp =< 3.9.1

2024-10-202 files · 5 stars
s4botai/cve-2024-23334-poc
GH-8420239bad1e23922a92e62ee69f8acaGitHubUnofficial GitHub source

A proof of concept of the LFI vulnerability on aiohttp 3.9.1

2024-09-082 files · 4 stars
theredp4nther/lfi-aiohttp-cve-2024-23334-poc
GH-ec2de8aa4c2362847ac9d24054b4aa2bGitHubUnofficial GitHub source

Bash script to automate Local File Inclusion (LFI) attacks on aiohttp server version 3.9.1.

2024-11-142 files · 2 stars
12442rf/poc
GH-3a840c3a743e0417793b49231edf2d51GitHubUnofficial GitHub source

12442rf/poc source repository

2025-05-0612 files · 1 stars
arc4he/cve-2024-23334-poc
GH-8cf4ceb4f4cb664aa8b87e67fd9f0fefGitHubUnofficial GitHub source

Proof of concept of the parh traversal in python AioHTTP library =< 3.9.1

2024-11-093 files · 1 stars
betan423/cve-2024-23334-poc
GH-261c3b1e130a18aa2bf69254c1ea0b68GitHubUnofficial GitHub source

This repository is a proof of concept (POC) for CVE-2024-23334, demonstrating an attempt to replicate the bug in aiohttp that leads to Local File Inclusion (LFI).

2024-12-096 files · 1 stars
frogb1t/cve-2024-23334
GH-3f76682db7c7c981e293e99bb0d39a28GitHubUnofficial GitHub source

frogb1t/cve-2024-23334 source repository

2024-11-074 files · 1 stars
aaronhmiller/aiohttp-demo
GH-8e6fcba88d6c7864b9939657d6b6f08dGitHubUnofficial GitHub source

aaronhmiller/aiohttp-demo source repository

2025-09-2810 files · 0 stars
bestdevofc/cve-2024-23334-poc
GH-17c540749de3cb3dd3b1a04490e7b323GitHubUnofficial GitHub source

A proof of concept of the path traversal vulnerability in the python AioHTTP library =< 3.9.1

2024-12-252 files · 0 stars
binaryninja/cve-2024-23334
GH-e878ff92212b18a11de9d69d423b7b14GitHubUnofficial GitHub source

Expolit for CVE-2024-23334 (aiohttp >= 1.0.5> && <=3.9.1)

2024-06-177 files · 0 stars
brian-edgar-re/poc-cve-2024-23334
GH-161af5a06edf6f2da58fe72c2d7681adGitHubUnofficial GitHub source

This repository contains a proof of concept about the exploitation of the aiohttp library for the reported vulnerability CVE-2024-23334.

2024-04-2713 files · 0 stars