CVE-2026-39805
Full vulnerability record from the local CVENow database.
Description
Inconsistent Interpretation of HTTP Requests vulnerability in mtrudel bandit allows HTTP request smuggling via duplicate Content-Length headers. 'Elixir.Bandit.Headers':get_content_length/1 in lib/bandit/headers.ex uses List.keyfind/3, which returns only the first matching header. When a request contains two Content-Length headers with different values, Bandit silently accepts it, uses the first value to read the body, and dispatches the remaining bytes as a second pipelined request on the same keep-alive connection. RFC 9112 §6.3 requires recipients to treat this as an unrecoverable framing error. When Bandit sits behind a proxy that picks the last Content-Length value and forwards the request rather than rejecting it, an unauthenticated attacker can smuggle requests past edge WAF rules, path-based ACLs, rate limiting, and audit logging. This issue affects bandit: before 1.11.0.
View original CVE JSON
{
"id": "CVE-2026-39805",
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"published": "2026-05-01T21:16:17.037",
"lastModified": "2026-10-26T22:10:00.163",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Inconsistent Interpretation of HTTP Requests vulnerability in mtrudel bandit allows HTTP request smuggling via duplicate Content-Length headers.\n\n'Elixir.Bandit.Headers':get_content_length/1 in lib/bandit/headers.ex uses List.keyfind/3, which returns only the first matching header. When a request contains two Content-Length headers with different values, Bandit silently accepts it, uses the first value to read the body, and dispatches the remaining bytes as a second pipelined request on the same keep-alive connection. RFC 9112 §6.3 requires recipients to treat this as an unrecoverable framing error.\n\nWhen Bandit sits behind a proxy that picks the last Content-Length value and forwards the request rather than rejecting it, an unauthenticated attacker can smuggle requests past edge WAF rules, path-based ACLs, rate limiting, and audit logging.\n\nThis issue affects bandit: before 1.11.0."
},
{
"lang": "es",
"value": "Vulnerabilidad de interpretación inconsistente de solicitudes HTTP en mtrudel bandit permite el contrabando de solicitudes HTTP mediante encabezados Content-Length duplicados.\n\n’Elixir.Bandit.Headers’:get_content_length/1 en lib/bandit/headers.ex usa List.keyfind/3, que devuelve solo el primer encabezado coincidente. Cuando una solicitud contiene dos encabezados Content-Length con valores diferentes, Bandit lo acepta silenciosamente, usa el primer valor para leer el cuerpo y despacha los bytes restantes como una segunda solicitud en pipeline en la misma conexión keep-alive. RFC 9112 §6.3 requiere que los receptores traten esto como un error de encuadre irrecuperable.\n\nCuando Bandit se encuentra detrás de un proxy que elige el último valor de Content-Length y reenvía la solicitud en lugar de rechazarla, un atacante no autenticado puede contrabandear solicitudes eludiendo las reglas de WAF de borde, las ACLs basadas en rutas, la limitación de velocidad y el registro de auditoría.\n\nEste problema afecta a bandit: antes de 1.11.0."
}
],
"affected": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"affectedData": [
{
"vendor": "mtrudel",
"product": "bandit",
"defaultStatus": "unaffected",
"collectionURL": "https://repo.hex.pm",
"packageName": "bandit",
"cpes": [
"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*"
],
"modules": [
"'Elixir.Bandit.Headers'"
],
"programFiles": [
"lib/bandit/headers.ex"
],
"programRoutines": [
{
"name": "'Elixir.Bandit.Headers':get_content_length/1"
}
],
"repo": "https://github.com/mtrudel/bandit",
"packageURL": "pkg:hex/bandit",
"versions": [
{
"version": "0.1.0",
"lessThan": "1.11.0",
"versionType": "semver",
"status": "affected"
}
]
},
{
"vendor": "mtrudel",
"product": "bandit",
"defaultStatus": "unaffected",
"collectionURL": "https://github.com",
"packageName": "mtrudel/bandit",
"cpes": [
"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*"
],
"modules": [
"'Elixir.Bandit.Headers'"
],
"programFiles": [
"lib/bandit/headers.ex"
],
"programRoutines": [
{
"name": "'Elixir.Bandit.Headers':get_content_length/1"
}
],
"repo": "https://github.com/mtrudel/bandit",
"packageURL": "pkg:github/mtrudel/bandit",
"versions": [
{
"version": "7bc8d97cd22697c299baa8012b7f419a7606a80c",
"lessThan": "f2ca636eb6df385219957e8934e9fc6efa1630d1",
"versionType": "git",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV40": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary",
"cvssData": {
"version": "4.0",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"subAvailabilityImpact": "NONE",
"exploitMaturity": "NOT_DEFINED",
"confidentialityRequirement": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"availabilityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"valueDensity": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED"
}
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-05-02T01:20:49.825555Z",
"id": "CVE-2026-39805",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-444"
}
]
}
],
"references": [
{
"url": "https://cna.erlef.org/cves/CVE-2026-39805.html",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/mtrudel/bandit/commit/f2ca636eb6df385219957e8934e9fc6efa1630d1",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/mtrudel/bandit/security/advisories/GHSA-c67r-gc9j-2qf7",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-39805",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/mtrudel/bandit/security/advisories/GHSA-c67r-gc9j-2qf7",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}