Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.typesafe.akka/akka-http-core_2.13.0-RC2
  4. ›
  5. CVE-2021-42697

CVE-2021-42697: Uncontrolled Recursion in Akka HTTP

May 24, 2022 (updated September 30, 2025)

Akka HTTP 10.1.x 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.

References

  • akka.io/blog
  • akka.io/blog/news/2021/11/02/akka-http-10.2.7-released
  • akka.io/blog/news/2021/11/22/akka-http-10.1.15-released
  • doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html
  • github.com/advisories/GHSA-3hw2-h67c-wq66
  • github.com/akka/akka-http
  • github.com/akka/akka-http/pull/3924
  • nvd.nist.gov/vuln/detail/CVE-2021-42697

Code Behaviors & Features

Detect and mitigate CVE-2021-42697 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 10.1.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion
  • CWE-787: Out-of-bounds Write

Source file

maven/com.typesafe.akka/akka-http-core_2.13.0-RC2/CVE-2021-42697.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 08 Jan 2026 12:19:29 +0000.