CVE-2021-42697 in Akka Http Server
Akka HTTP 10.1.x before 10.1.15 and 10.2.x before 10.2.7 can encounter stack exhaustion while parsing HTTP headers, which allows a remote attacker to conduct a Denial of Service attack by sending a User-Agent header with deeply nested comments.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Akka | Http Server | ≥ 10.1.0, < 10.1.15 ≥ 10.2.0, < 10.2.7 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
Akka HTTP 10.1.x before 10.1.15 and 10.2.x before 10.2.7 can encounter stack exhaustion while parsing HTTP headers, which allows a remote attacker to conduct a Denial of Service attack by sending a User-Agent header with deeply nested comments.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-42697 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-160158-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2021-11-02 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-674: CWE-674
Related attack patterns (CAPEC)
CAPEC-230 Serialized Data with Nested Payloads via CWE-674
CAPEC-231 Oversized Serialized Data Payloads via CWE-674
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2021-42697 affects Akka HTTP versions 10.1.x before 10.1.15 and 10.2.x before 10.2.7, leading to stack exhaustion and potential Denial of Service (DoS) when parsing deeply nested comments in HTTP headers. This vulnerability has a CVSS score of 7.5 and is publicly exploitable with a high likelihood of exploitation.
A remote attacker can exploit this vulnerability by sending a User-Agent header with deeply nested comments, causing stack exhaustion and leading to a Denial of Service (DoS) condition. This can result in the affected system becoming unresponsive, impacting the availability of the service.
Compensating controls AI-drafted, review before use
Implement input validation and rate limiting on HTTP headers to prevent deeply nested comments from being processed. Additionally, configure the application to limit the depth of nested comments in headers.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2021-42697?
CVE-2021-42697 affects Akka HTTP versions 10.1.x before 10.1.15 and 10.2.x before 10.2.7, leading to stack exhaustion and potential Denial of Service (DoS) when parsing deeply nested comments in HTTP headers. This vulnerability has a CVSS score of 7.5 and is publicly exploitable with a high likelihood of exploitation.
What is the CVSS score for CVE-2021-42697?
CVE-2021-42697 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 35.3%.
Is CVE-2021-42697 actively exploited?
Public exploit available for CVE-2021-42697. Exploitation risk elevated.
How do I remediate CVE-2021-42697?
Priority: HIGH. Advisory: https://akka.io/blog/ PSIRT: [email protected]
What systems are affected by CVE-2021-42697?
CVE-2021-42697 affects Akka Http Server.
What NERC-CIP standard applies to CVE-2021-42697?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 as it allows a remote attacker to cause a Denial of Service, which can impact the availability of critical systems and services, thereby compromising the reliability of the bulk electric system.
What IEC 62443 requirement maps to CVE-2021-42697?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 as it involves a vulnerability that can be exploited to cause a Denial of Service, which can affect the availability and reliability of the industrial control system, thereby violating the security requirements for system availability.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Akka","product":"Http Server","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.