{"id":"CVE-2026-64785","aliases":["CVE-2026-64785","GHSA-q3g2-m552-3r9c"],"related":[],"kind":"vulnerability","state":"published","title":"swift-nio-http2: Missing CR/LF/NUL validation in header values","summary":"SwiftNIO HTTP/2 was missing validation on inbound HEADERS frames that let CR, LF, NUL, SP and other control characters reach an HTTP/1.1 backend through NIOHTTP2's HTTP/2-to-HTTP/1 codec, enabling HTTP request smuggling or response splitting. This vulnerability is addressed in swift-nio-http2 version 1.45.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SwiftNIO HTTP/2 was missing validation on inbound HEADERS frames that let CR, LF, NUL, SP and other control characters reach an HTTP/1.1 backend through NIOHTTP2's HTTP/2-to-HTTP/1 codec, enabling HTTP request smuggling or response splitting. This vulnerability is addressed in swift-nio-http2 version 1.45.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nSwiftNIO HTTP/2 was missing validation on inbound HEADERS frames that let\nCR, LF, NUL, SP and other control characters reach an HTTP/1.1 backend\nthrough NIOHTTP2's HTTP/2-to-HTTP/1 codec, enabling HTTP request smuggling\nor response splitting.\n\n## Impact\n\nTwo related gaps in inbound header validation, against any application\nusing HTTP2ToHTTP1Codec (or HTTP2FramePayloadToHTTP1Codec) to front an\nHTTP/1.1 backend:\n\nRegular header field values were only checked against a forbidden-name\nlist (connection, transfer-encoding, proxy-connection, keep-alive,\nupgrade); the value itself was never inspected. An attacker-controlled\nregular header field value containing CR or LF passed validation and, once\nserialized as `name: value CRLF` by the codec, terminated the field early\nand injected extra header lines into the outbound HTTP/1.1 message.\n\nPseudo-header values (`:path` in particular) were only checked against\nCR, LF and NUL. A `:path` value containing SP serializes into the\nrequest-target of `METHOD SP request-target SP HTTP-version CRLF`, so a\nvalue like `/a HTTP/1.1` produces `GET /a HTTP/1.1 HTTP/1.1` — a\nparser-differential request line depending on whether a downstream reader\ntakes the first or last SP-delimited token as the version.\n\nNeither of these is reachable on a stock pipeline: NIOHTTP1's outbound\nvalidator (`enableOutboundHeaderValidation`, on by default) already rejects\nthese characters on write. The exposure is pipelines that skip outbound\nvalidation, or any code that reads validated-looking `HTTPRequestHead.headers`\nand forwards the values on trusting that HTTP/2 already checked them.\n\n## Fix\n\nFixed in 48bfd90 and 45bdf67.\n\n## Mitigation\n\nUpgrade to 1.45.0","format":"markdown","source":"ghsa"},{"lang":"es","text":"SwiftNIO HTTP/2 carecía de validación en los marcos HEADERS entrantes, lo que permitía que CR, LF, NUL, SP y otros caracteres de control alcanzaran un backend HTTP/1.1 a través del codec de HTTP/2 a HTTP/1 de NIOHTTP2, posibilitando el contrabando de solicitudes HTTP o la división de respuestas. Esta vulnerabilidad se ha solucionado en la versión 1.45.0 de swift-nio-http2.","source":"nvd"}],"published":"2026-07-23T18:50:40.468Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-113","CWE-444"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.45.0","status":"affected"}],"vendor":"Apple","product":"swift-nio-http2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.45.0"}],"ecosystem":"SwiftURL","package":"swift-nio-http2","purl":"pkg:swift/swift-nio-http2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.45.0"}],"vendor":"apple","product":"swiftnio_http/2","cpe":"cpe:2.3:a:apple:swiftnio_http\\/2:*:*:*:*:*:swift:*:*","source":"nvd"}],"references":[{"url":"https://github.com/apple/swift-nio-http2/security/advisories/GHSA-q3g2-m552-3r9c","tags":["patch","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64785","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apple/swift-nio-http2/commit/45bdf670248be5f16ec0340e125dca285536f0fb","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apple/swift-nio-http2/commit/48bfd9067d7d1d15c4789440127a0cf36222ea43","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apple/swift-nio-http2","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/apple/swift-nio-http2/releases/tag/1.45.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"apple","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-24T20:06:09.684Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64785","url":"https://www.cve.org/CVERecord?id=CVE-2026-64785","licence":"CVE Terms of Use","modified":"2026-07-24T20:06:58.518Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q3g2-m552-3r9c","url":"https://github.com/advisories/GHSA-q3g2-m552-3r9c","licence":"CC-BY-4.0","modified":"2026-07-24T22:11:43.421Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64785","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64785","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:29.953Z","epss":{"score":0.00181,"percentile":0.07981,"date":"2026-12-01T12:00:22.000Z"}}