SwiftNIO CVE-2026-28980
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify HTTP/1 endpoint on SwiftNIO service
-
DeliveryOpen TCP connection to target
-
ExploitSend single request with hundreds of thousands of small valid headers
-
ExecutionHTTPDecoder accumulates unbounded HTTPHeaders
-
PersistDownstream framework crashes or memory exhausts
-
ImpactService denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of any HTTP/1 server or HTTP/1 client built on SwiftNIO's NIOHTTP1 (swift-nio <= 2.99.0). The target must accept HTTP/1.x traffic from the attacker (direct exposure or a proxy that forwards without enforcing its own header-count/size caps); HTTP/2-only deployments and services already fronted by a reverse proxy that bounds header count and total header bytes are not exposed in practice. In the client direction, the victim process must initiate an HTTP/1 request to an attacker-controlled or attacker-influenced server that returns a malicious response. |
| Impact | No NVD CVSS vector, EPSS score, or CISA KEV listing is available in the provided data, so quantitative scoring signals are absent and risk must be assessed from the vendor advisory alone. The vendor explicitly states a single unauthenticated remote peer can trigger DoS, indicating network attack vector, low complexity, no privileges, and no user interaction - a high-availability-impact profile typical of CVSS ~7.5. Real-world risk is meaningful because SwiftNIO underpins production Swift HTTP servers (Vapor, Hummingbird) and the attack is trivial to mount over a single TCP connection; however, the impact is bounded to availability with no confidentiality or integrity consequences. The absence of EPSS and KEV data should not be read as low risk - it more likely reflects the recency of the disclosure rather than low exploitability. Defenders fronting NIOHTTP1 services with a hardened reverse proxy already enforcing header limits face materially reduced exposure. |
| Exploit ScenarioDerived | An attacker opens a single TCP connection to a public-facing HTTP/1 endpoint backed by SwiftNIO (for example, a Vapor 4 or Hummingbird 2 API server) and sends one request whose header section contains hundreds of thousands of short, syntactically valid header lines such as 'X-Pad-NNNN: a'. On Hummingbird 2 the request triggers a precondition failure inside HTTPFields and the process aborts; on Vapor 4 the server's resident memory grows linearly with header count, and repeated connections from one or a few peers drive the host into swap or OOM-kill. No public exploit code is identified at time of analysis, but the attack requires only curl-equivalent tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 12, 2026
Denial of service in Apple's SwiftNIO NIOHTTP1 module (versions <= 2.99.0) allows unauthenticated remote attackers to exhaust server memory or crash processes by submitting HTTP/1 requests containing an unbounded number of small, valid header fields. The HTTPDecoder previously enforced only an 80 KB per-field limit with no cap on cumulative header block size or field count, letting hundreds of thousands of headers accumulate before application code runs. No public exploit identified at time of analysis, but the attack is trivial and impacts any HTTP/1 server or client built on NIOHTTP1, including downstream frameworks like Hummingbird 2 (crashes) and Vapor 4 (memory inflation).
RemediationAI
Vendor-released patch: swift-nio 2.100.0 - upgrade the swift-nio package dependency to 2.100.0 or later, which introduces the NIOHTTPDecoderLimitConfiguration type with conservative defaults (maxHeaderFieldSize 80 KB, maxHeaderListSize 2 MB, maxHeaderFieldCount 256) that cause the decoder to fail with HTTPParserError.headerOverflow when exceeded; applications exchanging legitimately large header blocks can opt into higher limits via a custom configuration passed to HTTPRequestDecoder/HTTPResponseDecoder or via decoderConfiguration on NIOUpgradableHTTPServerPipelineConfiguration / NIOUpgradableHTTPClientPipelineConfiguration. Consult the advisory at https://github.com/apple/swift-nio/security/advisories/GHSA-rj37-6j9x-74q6 for the configuration API. If upgrading is not immediately possible, place a reverse proxy (nginx, HAProxy, Envoy) in front of the service that enforces equivalent caps on total header bytes and header field count per request - note the trade-off that the proxy's limits must match or be tighter than what legitimate clients need, and clients sending oversized but valid header blocks will be rejected with 4xx responses.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SwiftNIO is Apple's event-driven, non-blocking network application framework for Swift, widely used as the foundation for Swift server-side ecosystems including Vapor and Hummingbird. The NIOHTTP1 module's HTTPDecoder is the channel handler responsible for parsing inbound HTTP/1.x byte streams into HTTPHeaders structures before they are surfaced to user code as HTTPServerRequestPart.head or HTTPClientResponsePart.head events. The CWE-400 (Uncontrolled Resource Consumption) root cause is the absence of two parsing bounds: a cumulative header-list size cap and a header-field-count cap - only a single per-field 80 KB ceiling existed. Because each individual header can stay well below 80 KB while the aggregate grows without bound, the decoder appends every field into HTTPHeaders before any handler can reject the request, and downstream bridges into swift-http-types' HTTPFields can additionally trigger precondition failures that abort the process. CPE pkg:swift/github.com_apple_swift-nio identifies the affected Swift package.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Vendor states a single unauthenticated remote peer can trigger DoS over HTTP/1 (AV:N/AC:L/PR:N/UI:N); impact is availability-only (process crash or memory exhaustion), no confidentiality or integrity effect.
Estimated by vuln.today — no official severity rating has been published for this CVE yet.
DescriptionCVE.org
Summary
The HTTPDecoder in NIOHTTP1 enforces no limit on the total size of an HTTP/1 message's header block or on the number of header fields per message. A remote peer can submit an arbitrary number of small, valid headers in a single request and have them all accumulated into the resulting HTTPHeaders value before any application code runs. This can be used to exhaust memory, or - for consumers that subsequently convert headers into swift-http-types' HTTPFields - to crash the process.
Details
HTTPDecoder previously enforced only a single hardcoded parsing limit: 80 KB per individual header field (name + value). There was no cap on the cumulative size of the header block, nor on the number of header fields per message. Because each individual field can remain well below the 80 KB threshold, a peer can submit hundreds of thousands of valid headers in a single request, all of which are appended to the decoded HTTPHeaders without bound.
The headers are then visible to user code through the standard HTTPServerRequestPart.head / HTTPClientResponsePart.head events. Two observed downstream effects:
- Hummingbird 2 (and other consumers that bridge
HTTPHeadersintoswift-http-types'HTTPFields) crashes via a precondition failure insideHTTPFieldsonce the configured field count is exceeded. - Vapor 4 does not crash, but the per-request memory footprint scales linearly with the number of headers received, allowing a single connection to inflate server memory use substantially.
Impact
A single unauthenticated remote peer can trigger a denial of service against any HTTP/1 server (or, in the response direction, any HTTP/1 client) built on NIOHTTP1 - either by crashing the process, depending on the downstream framework, or by driving the process's resident memory to arbitrary sizes.
Patches
This issue is addressed in swift-nio 2.100.0 and later.
The HTTPDecoder now applies three parsing limits with conservative defaults, exposed through the new NIOHTTPDecoderLimitConfiguration type:
| Limit | Default |
|---|---|
maxHeaderFieldSize | 80 KB |
maxHeaderListSize | 2 MB |
maxHeaderFieldCount | 256 |
Exceeding any of these limits causes the decoder to fail with HTTPParserError.headerOverflow. The configuration can be supplied directly to HTTPRequestDecoder / HTTPResponseDecoder, or via the decoderConfiguration property on NIOUpgradableHTTPServerPipelineConfiguration and NIOUpgradableHTTPClientPipelineConfiguration.
Users who require larger limits - for example, applications that legitimately exchange very large header blocks - can opt into them explicitly by constructing a custom NIOHTTPDecoderLimitConfiguration.
Workarounds
Users unable to upgrade can mitigate by placing a reverse proxy in front of the service that enforces equivalent limits on request header count and total header size.
Credit
This issue was reported by @Joannis. SwiftNIO thanks @Joannis for the report and the support in landing the fix.
Executive ViewAI
Apple's SwiftNIO NIOHTTP1 HTTP server library (versions 2.99.0 and earlier) contains a denial-of-service vulnerability that allows remote attackers to exhaust server memory or crash application processes through malformed HTTP/1 requests containing excessive header fields. Organizations running web services built on SwiftNIO, Hummingbird 2, or Vapor 4 frameworks face immediate risk of service unavailability with no patch currently available.
No vendor-released patch identified at time of analysis. Implement interim mitigations: (1) enforce strict header field count limits and cumulative header block size restrictions at reverse proxy, load balancer, or WAF layer; (2) configure HTTP request rate limiting per source IP to throttle attack traffic; (3) deploy services exclusively behind request-validating reverse proxies with header validation enabled; (4) enable request logging with automated alerts triggered on header threshold violations to detect exploitation attempts and enable rapid incident response.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-rj37-6j9x-74q6
CVE.org
EPSS
Exploit-DB