# CVE-2022-31018: Denial of service binding form from JSON in Play Framework

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.65%, higher than 77% of CVEs (2026-11-30)
- Published: 2022-06-02T16:45:13.000Z
- Modified: 2026-06-17T04:44:36.950Z
- Also known as: GHSA-v8x6-59g4-5g3w
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- playframework playframework: >= 2.8.3, < 2.8.16
- com.typesafe.play:play_2.13 (Maven): from 2.8.3 before 2.8.16
- com.typesafe.play:play_2.12 (Maven): from 2.8.3 before 2.8.16
- lightbend play_framework: from 2.8.3 up to 2.8.15

## Every score

- GitHub_M: 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`
- GitHub: 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: 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: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/playframework/playframework/security/advisories/GHSA-v8x6-59g4-5g3w> (mitigation, third-party-advisory, web)
- <https://github.com/playframework/playframework/pull/11301> (patch, third-party-advisory, web)
- <https://github.com/playframework/playframework/releases/tag/2.8.16> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31018> (advisory)
- <https://github.com/playframework/playframework> (package)

## Sources

- CVE List: [CVE-2022-31018](https://www.cve.org/CVERecord?id=CVE-2022-31018), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-v8x6-59g4-5g3w](https://github.com/advisories/GHSA-v8x6-59g4-5g3w), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31018](https://nvd.nist.gov/vuln/detail/CVE-2022-31018), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31018 · Whole record: https://cve.day/CVE-2022-31018.json · Rebuilt by cve.day 2026-11-25T22:58:12.095Z
