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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.65% (percentile 77, 2026-11-26)
- **CWE:** CWE-400
- **Aliases:** GHSA-v8x6-59g4-5g3w
- **Published:** 2022-06-02T16:45:13.000Z
- **Modified:** 2026-06-17T04:44:36.950Z

## Who should check

- Projects that depend on Maven package com.typesafe.play:play\_2.13 (\>= 2.8.3, \< 2.8.16)
- Projects that depend on Maven package com.typesafe.play:play\_2.12 (\>= 2.8.3, \< 2.8.16)
- Anyone running playframework \>= 2.8.3, \< 2.8.16

## 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.

## Affected and fixed versions

- Maven `com.typesafe.play:play_2.13`: affected \>= 2.8.3, \< 2.8.16; fixed 2.8.16 (osv)
- Maven `com.typesafe.play:play_2.12`: affected \>= 2.8.3, \< 2.8.16; fixed 2.8.16 (osv)
- playframework: \>= 2.8.3, \< 2.8.16 (cvelist)

## Mitigation

- Upgrade com.typesafe.play:play\_2.13 to 2.8.16 or later.
- Upgrade com.typesafe.play:play\_2.12 to 2.8.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-31018. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-31018.md
Affected: com.typesafe.play:play_2.13 >= 2.8.3, < 2.8.16; com.typesafe.play:play_2.12 >= 2.8.3, < 2.8.16
Fixed in: 2.8.16

Steps:
1. Search this machine and project for com.typesafe.play:play_2.13 (Maven), com.typesafe.play:play_2.12 (Maven), playframework: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-31018 being exploited?

There is no confirmed exploitation: CVE-2022-31018 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-31018?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-31018?

com.typesafe.play:play\_2.13 \>= 2.8.3, \< 2.8.16; com.typesafe.play:play\_2.12 \>= 2.8.3, \< 2.8.16.

### Is there a fix for CVE-2022-31018?

Yes. Fixed in 2.8.16. Upgrade com.typesafe.play:play\_2.13 to 2.8.16 or later. Upgrade com.typesafe.play:play\_2.12 to 2.8.16 or later.

### How do I check if I'm affected by CVE-2022-31018?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/playframework/playframework/security/advisories/GHSA-v8x6-59g4-5g3w>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-31018>
- patch: <https://github.com/playframework/playframework/pull/11301>
- other: <https://github.com/playframework/playframework/releases/tag/2.8.16>
- other: <https://github.com/playframework/playframework>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-31018>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v8x6-59g4-5g3w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-31018> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-31018>
