CVE-2020-27196
Out-of-bounds Write in Play Framework
Description
An issue was discovered in PlayJava in Play Framework 2.6.0 through 2.8.2. The body parsing of HTTP requests eagerly parses a payload given a Content-Type header. A deep JSON structure sent to a valid POST endpoint (that may or may not expect JSON payloads) causes a StackOverflowError and Denial of Service.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.typesafe.play » play | >= 2.6.0, < 2.7.6>= 2.8.0, < 2.8.3 | 2.7.6, 2.8.3 |
| com.typesafe.play » play-java | >= 2.6.0, < 2.7.6>= 2.8.0, < 2.8.3 | 2.7.6, 2.8.3 |
Blast radius
65% of the dependent artifacts (971) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,501 |
| 2 hops | 21,892 |
| 3 hops | 2,751 |
| 4 hops | 677 |
| 5 hops | 135 |
Most used dependents
- com.typesafe.play » play-test1,902 usages
- com.typesafe.play » play-server1,436 usages
- com.typesafe.play » play-logback1,380 usages
- org.scalatestplus.play » scalatestplus-play1,286 usages
- com.typesafe.play » play-akka-http-server1,152 usages
- com.typesafe.play » filters-helpers1,129 usages
- com.typesafe.play » play-ws755 usages
- com.typesafe.play » play-ahc-ws693 usages
- com.typesafe.play » play-netty-server627 usages
- uk.gov.hmrc » hmrctest605 usages
- uk.gov.hmrc » play-health408 usages
- uk.gov.hmrc » play-ui366 usages
- uk.gov.hmrc » govuk-template301 usages
- uk.gov.hmrc » simple-reactivemongo294 usages
- uk.gov.hmrc » bootstrap-play-26289 usages
Computed from the dependency graph of build 20261125.2201 (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-2020-27196 | nvd.nist.gov |
| Web | playframework/playframework pull request #10321 | github.com |
| Web | security/vulnerability/CVE-2020-27196-DosViaJsonStackOverflow | playframework.com |
