llamaCVEVulnerability Intelligence
/
aiohttp

CVE-2023-49081

aiohttp's ClientSession is vulnerable to CRLF injection via version

UnclearParche disponible
Descargar PNG JSON
CVSS 3.1
7.2
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N Fuente: CNA
5.3NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
ExplotaciónPoC públicaSSVC: PoC · no figura en CISA KEV
Exploits públicos0CISA-ADP reporta PoC; aún sin enlace público
Parche1 versiónPrimer parche a -12 d de la divulgación
Exposición1.087 dDesde la divulgación, 30 nov 2023, 1:56 a. m.
Detección1.068 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Modificada
Explotación
Remediación
Parche 3.9.0
Monitoreo
Detectada
Verificada
18 nov 23
30 nov 23
23 jun 26
3 nov 26
18 nov 26
21 nov 26
18 nov 23
19 ago 24
20 may 25
19 feb 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.9.0 aiohttp · -12 d desde divulgación
Divulgación Publicada CVE-2023-49081 divulgada · CVSS 7.2 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
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. Improper validation made it possible for an attacker to modify the HTTP request (e.g. to insert a new header) or create a new HTTP request if the attacker controls the HTTP version. The vulnerability only occurs if the attacker can control the HTTP version of the request. This issue has been patched in version 3.9.0.

Only affects aiohttp ClientSession requests where the attacker controls the HTTP version and the Connection header is passed to headers. Fixed in 3.9.0.

¿Qué significa?A CRLF injection flaw lets an attacker insert line breaks into an outgoing HTTP request, so they can add a new header or create a second request. This can lead to request smuggling.
¿Quién está afectado?The flaw only occurs when the attacker can control the HTTP version of the request, including its type, for example through an unvalidated JSON value passed as version. It also requires the Connection header to be passed to the headers parameter of ClientSession. Check the aiohttp version in your environment with pip show aiohttp and review how your code sets version and headers.
¿Qué hacer?Upgrade aiohttp to 3.9.0 or later. Until you can upgrade, validate user input passed to the version parameter so that it is a str.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The attacker must be able to control the HTTP version of the request (including its type), e.g. via an unvalidated JSON value passed as version.“The vulnerability only occurs if the attacker can control the HTTP version of the request (including its type).”
02
The Connection header must be passed to the headers parameter.“the vulnerability only occurs when the Connection header is passed to the headers parameter.”
¿Quién debe revisar?Teams running aiohttp ClientSession before 3.9.0 where the HTTP version or the Connection header can be influenced by untrusted input, such as JSON-driven request builders.
MitigaciónValidate user input to the version parameter to ensure it is a str.
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:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
aiohttp< 3.9.0
3.9.0
3.14.5
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypiaiohttp
Corregida 3.9.0 -12 d 3.14.5 no afectada
Versiones corregidas3.9.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/aio-libs/aiohttp/security/advisories/GHSA-q3qx-c6g2-7pw2
Otrahttps://github.com/aio-libs/aiohttp/pull/7835/files
Otrahttps://github.com/aio-libs/aiohttp/commit/1e86b777e61cf4eefc7d92fa57fa19dcc676013b
Otrahttps://gist.github.com/jnovikov/184afb593d9c2114d77f508e0ccd508e

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