# CVE-2021-42697: Uncontrolled Recursion in Akka HTTP

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 35.3%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-02T21:44:54.000Z
- Modified: 2026-06-17T04:09:58.213Z
- Also known as: GHSA-3hw2-h67c-wq66
- Weaknesses: CWE-674, CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.typesafe.akka:akka-http-core_2.13.0-RC3 (Maven): from 10.1.0
- com.typesafe.akka:akka-http-core_2.13.0-RC2 (Maven): from 10.1.0
- com.typesafe.akka:akka-http-core_2.13.0-M5 (Maven): from 10.1.0
- com.typesafe.akka:aakka-http-core_2.13.0-M3 (Maven): from 10.1.0
- com.typesafe.akka:akka-http-core_2.13 (Maven): from 10.1.0 before 10.1.15; from 10.2.0-M1 before 10.2.7
- com.typesafe.akka:akka-http-core_2.12 (Maven): from 10.1.0 before 10.1.15; from 10.2.0-M1 before 10.2.7
- com.typesafe.akka:akka-http-core_2.11 (Maven): from 10.1.0 before 10.1.15
- akka http_server: from 10.1.0 before 10.1.15; from 10.2.0 before 10.2.7

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html> (exploit, third-party-advisory, vdb-entry, web)
- <https://akka.io/blog/> (vendor-advisory)
- <https://doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html> (vendor-advisory, web)
- <https://akka.io/blog/news/2021/11/02/akka-http-10.2.7-released> (release-notes, vendor-advisory, web)
- <https://akka.io/blog/news/2021/11/22/akka-http-10.1.15-released> (release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42697> (advisory)
- <https://github.com/akka/akka-http/pull/3924> (web)
- <https://akka.io/blog> (web)
- <https://github.com/akka/akka-http> (package)

## Sources

- CVE List: [CVE-2021-42697](https://www.cve.org/CVERecord?id=CVE-2021-42697), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3hw2-h67c-wq66](https://github.com/advisories/GHSA-3hw2-h67c-wq66), CC-BY-4.0, modified 2025-09-30
- NVD: [CVE-2021-42697](https://nvd.nist.gov/vuln/detail/CVE-2021-42697), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42697 · Whole record: https://cve.day/CVE-2021-42697.json · Rebuilt by cve.day 2026-11-25T22:58:05.318Z
