Vulnerabilities in pkg:maven/com.typesafe.play/play-java
PACKAGECVE-2020-27196 is a HIGH (CVSS 7.5) out-of-bounds write vulnerability (CWE-787: Out-of-bounds Write) affecting Play libraries in the Maven ecosystem. The issue involves out-of-bounds write in play framework. Remediation is available by upgrading affected packages to version 2.7.6, 2.8.3.
pkg:maven/com.typesafe.play/play-java
Vulnerability advisories affecting package pkg:maven/com.typesafe.play/play-java. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-h48w-c35p-6m8x | CVE-2020-27196 | HIGH | Out-of-bounds Write in Play Framework |
| GHSA-p8p6-rcp6-4mrm | CVE-2020-26883 | HIGH | Uncontrolled Recursion in Play Framework |
CVE-2020-27196 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2020-27196
To remediate this vulnerability, upgrade all affected Play dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play</artifactId>
<version>2.7.6</version>
</dependency>
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play</artifactId>
<version>2.8.3</version>
</dependency>
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play-java</artifactId>
<version>2.7.6</version>
</dependency>
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play-java</artifactId>
<version>2.8.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.typesafe.play
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-27196, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.typesafe.play
Analyze the terminal output to locate any version of Play in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.6), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.typesafe.play command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Play, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-27196 Affected Play Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.typesafe.play:play
|
Maven |
≥ 2.6.0
< 2.7.6
|
2.7.6
|
|
com.typesafe.play:play
|
Maven |
≥ 2.8.0
< 2.8.3
|
2.8.3
|
|
com.typesafe.play:play-java
|
Maven |
≥ 2.6.0
< 2.7.6
|
2.7.6
|
|
com.typesafe.play:play-java
|
Maven |
≥ 2.8.0
< 2.8.3
|
2.8.3
|
References
Frequently Asked Questions
What is CVE-2020-27196?
Which Play versions are affected?
What version fixes CVE-2020-27196?
Is play affected?
Is play-java affected?
What is the CVSS score of CVE-2020-27196?
What CWE is associated with CVE-2020-27196?
How can I check Maven dependencies for CVE-2020-27196?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h48w-c35p-6m8x",
"modified" : "2021-04-22T17:02:38Z",
"published" : "2022-02-10T20:23:25Z",
"aliases" : [ "CVE-2020-27196" ],
"summary" : "Out-of-bounds Write in Play Framework",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.typesafe.play:play"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.7.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.typesafe.play:play"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.typesafe.play:play-java"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.7.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.typesafe.play:play-java"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-27196"
}, {
"type" : "WEB",
"url" : "https://github.com/playframework/playframework/pull/10321"
}, {
"type" : "WEB",
"url" : "https://www.playframework.com/security/vulnerability/CVE-2020-27196-DosViaJsonStackOverflow"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-787" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-22T17:02:38Z",
"nvd_published_at" : "2020-11-06T14:15:00Z"
}
}