{"id":"CVE-2022-31018","published":"2022-06-02T16:45:13Z","modified":"2025-04-23T18:20:02Z","title":"Denial of service binding form from JSON in Play Framework","vendor":"playframework","product":"playframework","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01722,"percentile":0.78062,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/playframework/playframework/security/advisories/GHSA-v8x6-59g4-5g3w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/playframework/playframework/pull/11301","tags":["x_refsource_MISC"]},{"url":"https://github.com/playframework/playframework/releases/tag/2.8.16","tags":["x_refsource_MISC"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":15.61},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"playframework","affectedVersions":[{"vendor":"playframework","product":"playframework","versions":[">= 2.8.3, < 2.8.16"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:54:36.120650Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.typesafe.play:play_2.13","vulnerableRanges":[">=2.8.3, <2.8.16"],"patched":["2.8.16"],"from":["GHSA-v8x6-59g4-5g3w"],"provenance":"source"},{"ecosystem":"Maven","package":"com.typesafe.play:play_2.12","vulnerableRanges":[">=2.8.3, <2.8.16"],"patched":["2.8.16"],"from":["GHSA-v8x6-59g4-5g3w"],"provenance":"source"}],"summary":{"text":"A denial of service flaw in the forms library of Play Framework (playframework) affects its Scala and Java APIs, specifically when binding JSON request bodies through Form#bindFromRequest or Form#bind, including with Play's default body parser. An unauthenticated remote attacker who sends a request with a deeply nested JSON object or array can exhaust the heap and trigger an OutOfMemoryError, which, when running on the default dispatcher with akka.jvm-exit-on-fatal-error enabled (the default), can crash the application process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:27Z"},"euvd":{"id":"EUVD-2022-6163","exploited":false,"provenance":"source"}}