WaratekVRT Sign in

CVE-2021-42697

Severity7.5 High CVSS 3.1 2 scores
Fixed in10.1.15, 10.2.7
WeaknessOut-of-bounds write (CWE-787)
Published2 Nov 2021
Updated17 Jun 2026

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.

CWE-674

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 2 indexed Published artifacts you can open, in Exploit-DB, GitHub PoC; first seen 2022-04-24.
  • EPSS 36% chance in 30 days A model's forecast, not a report of exploitation. Higher than 98% of all scored CVEs.

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Proof of concept exploit for CVE-2021-42697: 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. 1 2022-04-24
Exploit-DB Akka HTTP 10.1.14 - Denial of Service 2022-05-11

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: com.typesafe.akka:akka-http-core_2.13.0-RC3, com.typesafe.akka:akka-http-core_2.13.0-RC2, com.typesafe.akka:akka-http-core_2.13.0-M5, com.typesafe.akka:aakka-http-core_2.13.0-M3, com.typesafe.akka:akka-http-core_2.13, com.typesafe.akka:akka-http-core_2.12, com.typesafe.akka:akka-http-core_2.11), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

CVSS

7.5 HIGH v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 Primary published
CVSS 2.0 5.0 none AV:N/AC:L/Au:N/C:N/I:N/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.typesafe.akka:akka-http-core_2.13.0-RC3 10.1.0 none unbounded
com.typesafe.akka:akka-http-core_2.13.0-RC2 10.1.0 none unbounded
com.typesafe.akka:akka-http-core_2.13.0-M5 10.1.0 none unbounded
com.typesafe.akka:aakka-http-core_2.13.0-M3 10.1.0 none unbounded
com.typesafe.akka:akka-http-core_2.13 10.1.0 10.1.15 unbounded
com.typesafe.akka:akka-http-core_2.13 10.2.0-M1 10.2.7 unbounded
com.typesafe.akka:akka-http-core_2.12 10.1.0 10.1.15 unbounded
com.typesafe.akka:akka-http-core_2.12 10.2.0-M1 10.2.7 unbounded
com.typesafe.akka:akka-http-core_2.11 10.1.0 10.1.15 unbounded

Products and versions

8 products, 11 version entries
SourceVendorProductSchemeAffected versions
nvd akka http server generic ≥ 10.1.0 and < 10.1.15 · ≥ 10.2.0 and < 10.2.7
osv com.typesafe.akka aakka-http-core_2.13.0-M3 generic ≥ 10.1.0
osv com.typesafe.akka akka-http-core_2.11 generic ≥ 10.1.0 and < 10.1.15
osv com.typesafe.akka akka-http-core_2.12 generic ≥ 10.1.0 and < 10.1.15 · ≥ 10.2.0 and < 10.2.7
osv com.typesafe.akka akka-http-core_2.13 generic ≥ 10.1.0 and < 10.1.15 · ≥ 10.2.0 and < 10.2.7
osv com.typesafe.akka akka-http-core_2.13.0-M5 generic ≥ 10.1.0
osv com.typesafe.akka akka-http-core_2.13.0-RC2 generic ≥ 10.1.0
osv com.typesafe.akka akka-http-core_2.13.0-RC3 generic ≥ 10.1.0

References

URLTags
https://github.com/akka/akka-http/pull/3924 WEB
https://akka.io/blog WEB
https://akka.io/blog/news/2021/11/02/akka-http-10.2.7-released WEB
https://akka.io/blog/news/2021/11/22/akka-http-10.1.15-released WEB
https://doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html WEB
https://github.com/akka/akka-http PACKAGE
http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html WEB
https://akka.io/blog/ Vendor Advisory

Timeline

Published2021-11-02By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.