HIGH 7.5
CVE-2021-42697
Uncontrolled Recursion in Akka HTTP
Description
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.
Affected Maven artifacts (7)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.typesafe.akka » aakka-http-core_2.13.0-M3 | >= 10.1.0 | - |
| com.typesafe.akka » akka-http-core_2.11 | >= 10.1.0, < 10.1.15 | 10.1.15 |
| com.typesafe.akka » akka-http-core_2.12 | >= 10.1.0, < 10.1.15>= 10.2.0-M1, < 10.2.7 | 10.1.15, 10.2.7 |
| com.typesafe.akka » akka-http-core_2.13 | >= 10.1.0, < 10.1.15>= 10.2.0-M1, < 10.2.7 | 10.1.15, 10.2.7 |
| com.typesafe.akka » akka-http-core_2.13.0-M5 | >= 10.1.0 | - |
| com.typesafe.akka » akka-http-core_2.13.0-RC2 | >= 10.1.0 | - |
| com.typesafe.akka » akka-http-core_2.13.0-RC3 | >= 10.1.0 | - |
Blast radius
1affected artifacts
60affected versions
2,403dependent artifacts (est.)
101,018dependent versions
75% of the dependent artifacts (1,817) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,557 |
| 2 hops | 54,857 |
| 3 hops | 24,830 |
| 4 hops | 9,796 |
| 5 hops | 4,837 |
| 6 hops | 3,141 |
Most used dependents
- com.typesafe.play » play-test1,902 usages
- org.scalatestplus.play » scalatestplus-play1,286 usages
- com.typesafe.play » play-akka-http-server1,152 usages
- com.typesafe.akka » akka-http942 usages
- com.typesafe.akka » akka-http-testkit478 usages
- uk.gov.hmrc » play-health408 usages
- com.github.pureconfig » pureconfig307 usages
- uk.gov.hmrc » govuk-template301 usages
- uk.gov.hmrc » auth-client252 usages
- com.typesafe.akka » akka-http-spray-json243 usages
- com.typesafe.play » play-specs2218 usages
- uk.gov.hmrc » play-language185 usages
- uk.gov.hmrc » bootstrap-test-play-27146 usages
- uk.gov.hmrc » play-frontend-govuk139 usages
- uk.gov.hmrc » play-frontend-hmrc136 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-42697 | nvd.nist.gov |
| Package | akka/akka-http | github.com |
| Web | akka/akka-http pull request #3924 | github.com |
| Web | blog | akka.io |
| Web | blog/news/2021/11/02/akka-http-10.2.7-released | akka.io |
| Web | blog/news/2021/11/22/akka-http-10.1.15-released | akka.io |
| Web | docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html | doc.akka.io |
| Web | files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html | packetstormsecurity.com |
