lightbend play-framework CVE-2022-31018 is a vulnerability in Lightbend Play Framework
Published on June 2, 2022

Denial of service binding form from JSON in Play Framework
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 enabledas it is by defaultthen 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.

Github Repository NVD

Vulnerability Analysis

CVE-2022-31018 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
HIGH

Weakness Type

What is a Resource Exhaustion Vulnerability?

The software does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

CVE-2022-31018 has been classified to as a Resource Exhaustion vulnerability or weakness.


Products Associated with CVE-2022-31018

Want to know whenever a new CVE is published for Lightbend Play Framework? stack.watch will email you.

 

Affected Versions

playframework Version >= 2.8.3, < 2.8.16 is affected by CVE-2022-31018

Vulnerable Packages

The following package name and versions may be associated with CVE-2022-31018

Package Manager Vulnerable Package Versions 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

Exploit Probability

EPSS
0.51%
Percentile
66.56%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.