Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-64785 — swift-nio-http2

🟡 CVSS 5.3 — Medium ✅ No Known Exploit CWE-113 NVD
5.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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.

Impact

Two related gaps in inbound header validation, against any application

using HTTP2ToHTTP1Codec (or HTTP2FramePayloadToHTTP1Codec) to front an

HTTP/1.1 backend:

Regular header field values were only checked against a forbidden-name

list (connection, transfer-encoding, proxy-connection, keep-alive,

upgrade); the value itself was never inspected. An attacker-controlled

regular header field value containing CR or LF passed validation and, once

serialized as name: value CRLF by the codec, terminated the field early

and injected extra header lines into the outbound HTTP/1.1 message.

Pseudo-header values (:path in particular) were only checked against

CR, LF and NUL. A :path value containing SP serializes into the

request-target of METHOD SP request-target SP HTTP-version CRLF, so a

value like /a HTTP/1.1 produces GET /a HTTP/1.1 HTTP/1.1 — a

parser-differential request line depending on whether a downstream reader

takes the first or last SP-delimited token as the version.

Neither of these is reachable on a stock pipeline: NIOHTTP1's outbound

validator (enableOutboundHeaderValidation, on by default) already rejects

these characters on write. The exposure is pipelines that skip outbound

validation, or any code that reads validated-looking HTTPRequestHead.headers

and forwards the values on trusting that HTTP/2 already checked them.

Fix

Fixed in 48bfd90 and 45bdf67.

Mitigation

Upgrade to 1.45.0

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity low, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: Low — limited, and the attacker does not choose what is affected.
  • Availability impact: None.

Weakness class

CVE-2026-64785 is classified as CWE-113: HTTP Response Splitting. Unescaped input reaches an HTTP header, letting an attacker inject line breaks and forge additional headers or responses.

Affected software

CVE-2026-64785 is recorded against 2 packages.

  • swift-nio-http2
  • unknown

Timeline and source

Published on 24 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)

Same weakness in other software

These advisories are the same class of weakness (CWE-113: HTTP Response Splitting) in other software:

Details

Severity Medium
CVSS Score 5.3
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CWE CWE-113
Public Exploit ✅ No
Source NVD
Published 2026-07-24
Updated 2026-08-20
Modified 2026-07-24
Fix URL N/A

Affected Packages

Software From version Fixed in
swift-nio-http2
unknown

Vulnerability Monitoring

Track new vulnerabilities in swift-nio-http2

CVE-2026-64785 is rated CVSS 5.3 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026