llamaCVEVulnerability Intelligence
/
aiohttp

CVE-2024-23334

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

UnclearParche disponible
Descargar PNG JSON
CVSS 3.1
5.9
Media
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N Fuente: CNA
7.5NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
ExplotaciónExploit públicoSSVC: PoC · no figura en CISA KEV
Exploits públicos173 fuentes
Parche1 versiónPrimer parche a -1 d de la divulgación
Exposición1.026 dDesde la divulgación, 29 ene 2024, 5:41 p. m.
EPSS ≥ 10 %2 nov 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Exploit público disponible (17), no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Exploit-DB
Umbral EPSS
Remediación
Parche 3.9.2
Monitoreo
Detectada
Verificada
28 ene 24
29 ene 24
30 may 25
4 feb 26
2 nov 26
3 nov 26
18 nov 26
21 nov 26
28 ene 24
11 oct 24
25 jun 25
9 mar 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.9.2 aiohttp · -1 d desde divulgación
Divulgación Publicada CVE-2024-23334 divulgada · CVSS 5.9 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Explotación Exploit-DB 1 exploit público
Divulgación Modificada Última actualización del registro
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

Only aiohttp web servers that serve static routes with follow_symlinks=True, in versions after 1.0.5 and before 3.9.2, are affected. Fixed in 3.9.2.

¿Qué significa?The bug is a directory traversal in aiohttp.web.static() when follow_symlinks=True is set, which allows unauthorized reading of arbitrary files on the system.
¿Quién está afectado?Affected versions are those after 1.0.5 and before 3.9.2, and only when aiohttp is used as a web server with static routes set up with follow_symlinks=True. To check a setup, look at the installed aiohttp version and search the application code for web.static() calls that pass follow_symlinks=True.
¿Qué hacer?Upgrade aiohttp to 3.9.2 or later, which is the fixed version. The advisory's workaround is to disable follow_symlinks=True immediately if it is used outside a restricted local development environment.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
aiohttp used as a web server with static routes configured via web.static()“When using aiohttp as a web server and configuring static routes, it is necessary to specify the root path for static files.”
02
The static route is set up with follow_symlinks=True“An application is only vulnerable with setup code like:”
03
Affected versions are those after 1.0.5 (up to before 3.9.2)“Affected versions >1.0.5”
¿Quién debe revisar?Teams running aiohttp as a web server that serve static files with web.static(follow_symlinks=True), especially on remote-facing servers
MitigaciónIf using follow_symlinks=True outside of a restricted local development environment, disable the option immediately.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 7.1 (fácil) · +2.9 por exploit público.
Versiones

Rangos afectados

Afectada Corregida Última
aiohttp≥ 1.0.5 < 3.9.2
1.0.5
3.9.2
3.14.5
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypiaiohttp
Corregida 3.9.2 -1 d 3.14.5 no afectada
Versiones corregidas3.9.2
Explotación

Arsenal público

Exploit-DB
EDB-52474
1
Metasploit
—
0
Nuclei
http/cves/2024/CVE-2024-23334.yaml
1
PoC en GitHub
Arc4he/CVE-2024-23334-PoC · BestDevOfc/CVE-2024-23334-PoC · Betan423/CVE-2024-23334-PoC · JohnnyWang108/hdu-is-lab1-secure-api · Sn0wBaall/CVE-2024-23334-PoC · TheRedP4nther/LFI-aiohttp-CVE-2024-23334-PoC …
15
Ver los 15 repositorios de GitHub
Arc4he/CVE-2024-23334-PoC
BestDevOfc/CVE-2024-23334-PoC
Betan423/CVE-2024-23334-PoC
JohnnyWang108/hdu-is-lab1-secure-api
Sn0wBaall/CVE-2024-23334-PoC
TheRedP4nther/LFI-aiohttp-CVE-2024-23334-PoC
binaryninja/CVE-2024-23334
brian-edgar-re/poc-cve-2024-23334
frogb1t/CVE-2024-23334
jhonnybonny/CVE-2024-23334
ox1111/CVE-2024-23334
s4botai/CVE-2024-23334-PoC
sxyrxyy/aiohttp-exploit-CVE-2024-23334-certstream
wizarddos/CVE-2024-23334
z3rObyte/CVE-2024-23334-PoC

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Referencias
Fabricantehttps://github.com/aio-libs/aiohttp/security/advisories/GHSA-5h86-8mv2-jq9f
Exploithttps://www.exploit-db.com/exploits/52474
Exploithttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-23334.yaml
Exploithttps://github.com/Arc4he/CVE-2024-23334-PoC
Exploithttps://github.com/BestDevOfc/CVE-2024-23334-PoC
Exploithttps://github.com/Betan423/CVE-2024-23334-PoC
Exploithttps://github.com/JohnnyWang108/hdu-is-lab1-secure-api
Exploithttps://github.com/Sn0wBaall/CVE-2024-23334-PoC
Exploithttps://github.com/TheRedP4nther/LFI-aiohttp-CVE-2024-23334-PoC
Exploithttps://github.com/binaryninja/CVE-2024-23334
Exploithttps://github.com/brian-edgar-re/poc-cve-2024-23334
Exploithttps://github.com/frogb1t/CVE-2024-23334
Ver 10 referencias más
Exploithttps://github.com/jhonnybonny/CVE-2024-23334
Exploithttps://github.com/ox1111/CVE-2024-23334
Exploithttps://github.com/s4botai/CVE-2024-23334-PoC
Exploithttps://github.com/sxyrxyy/aiohttp-exploit-CVE-2024-23334-certstream
Exploithttps://github.com/wizarddos/CVE-2024-23334
Exploithttps://github.com/z3rObyte/CVE-2024-23334-PoC
Otrahttps://github.com/aio-libs/aiohttp/pull/8079
Otrahttps://github.com/aio-libs/aiohttp/commit/1c335944d6a8b1298baf179b7c0b3069f10c514b
Otrahttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXWVZIVAYWEBHNRIILZVB3R3SDQNNAA7/
Otrahttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ICUOCFGTB25WUT336BZ4UNYLSZOUVKBD/

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.