CVE-2022-31018 json
Denial of service binding form from JSON in Play Framework
published 2022-06-02 4 y ago modified 2026-06-17 4 mo ago also GHSA-v8x6-59g4-5g3w , EUVD-2022-6163
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
Play Framework is a web framework for Java and Scala. A denial of service vulnerability has been discovered in verions 2.8.3 through 2.8.15 of Play's forms library, in both the Scala and Java APIs. This can occur when using either the `Form#bindFromRequest` method on a JSON request body or the `Form#bind` method directly on a JSON value. If the JSON data being bound to the form contains a deeply-nested JSON object or array, the form binding implementation may consume all available heap space and cause an `OutOfMemoryError`. If executing on the default dispatcher and `akka.jvm-exit-on-fatal-error` is enabled—as it is by default—then this can crash the application process. `Form.bindFromRequest` is vulnerable when using any body parser that produces a type of `AnyContent` or `JsValue` in Scala, or one that can produce a `JsonNode` in Java. This includes Play's default body parser. This vulnerability been patched in version 2.8.16. There is now a global limit on the depth of a JSON object that can be parsed, which can be configured by the user if necessary. As a workaround, applications that do not need to parse a request body of type `application/json` can switch from the default body parser to another body parser that supports only the specific type of body they expect.
Patch / fix
- maven com.typesafe.play:play_2.13 2.8.16
- maven com.typesafe.play:play_2.12 2.8.16
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.72% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.typesafe.play:play_2.13 | >=2.8.3, <2.8.16 |
2.8.16 |
| maven | com.typesafe.play:play_2.12 | >=2.8.3, <2.8.16 |
2.8.16 |
Affected products
- playframework playframework
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/playframework/playframework/pull/11301
web, patch, third-party-advisory
-
github.com
/playframework/playframework/security/advisories/GHSA-v8x6-59g4-5g3w
web, mitigation, third-party-advisory
-
github.com
/playframework/playframework/releases/tag/2.8.16
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31018
advisory
-
github.com
/playframework/playframework
package
Sources
- CVE List CVE-2022-31018
- GitHub Advisory GHSA-v8x6-59g4-5g3w
- NVD CVE-2022-31018
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.