{"answers":{"affected":"4 open source packages ship an affected version, including com.typesafe.play:play_2.12 and com.typesafe.play:play_2.13. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-31018 in the wild and no public exploit code.","fix":"Upgrade com.typesafe.play:play_2.12 to 2.8.16 or later.","what":"CVE-2022-31018 is a high-severity denial of service vulnerability in playframework, published on 2 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-31018 and fix it if it is affected.\n\nWhat it is: CVE-2022-31018 is a high-severity denial of service vulnerability in playframework, published on 2 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-31018 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.typesafe.play:play_2.12 (Maven): affected from 2.8.3; fixed in 2.8.16\n- com.typesafe.play:play_2.12 (Maven): affected from 2.8.3; fixed in 2.8.16\n- com.typesafe.play:play_2.13 (Maven): affected from 2.8.3; fixed in 2.8.16\n- com.typesafe.play:play_2.13 (Maven): affected from 2.8.3; fixed in 2.8.16\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-31018/ (Markdown: https://insights.sbomify.com/CVE-2022-31018/index.md)","id":"CVE-2022-31018","markdown":"https://insights.sbomify.com/CVE-2022-31018/index.md","name":"CVE-2022-31018","record":{"aliases":["GHSA-v8x6-59g4-5g3w"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Play Framework","requires_auth":"none","summary":"Attackers can crash Play Framework applications by sending deeply nested JSON data, causing an OutOfMemoryError and process termination.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"play_framework","vendor":"lightbend"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Denial of service binding form from JSON in Play Framework","id":"CVE-2022-31018","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":4,"n_references":3,"next":{"headline":"DoS Vulnerability in URLEncodedFormDecoder in Vapor","id":"CVE-2022-31019"},"packages":[{"ecosystem":"Maven","fixed":["2.8.16"],"introduced":["2.8.3"],"last_affected":[],"package":"com.typesafe.play:play_2.12","purl":null,"source":"GHSA-v8x6-59g4-5g3w"},{"ecosystem":"Maven","fixed":["2.8.16"],"introduced":["2.8.3"],"last_affected":[],"package":"com.typesafe.play:play_2.12","purl":"pkg:maven/com.typesafe.play/play_2.12","source":"GHSA-v8x6-59g4-5g3w"},{"ecosystem":"Maven","fixed":["2.8.16"],"introduced":["2.8.3"],"last_affected":[],"package":"com.typesafe.play:play_2.13","purl":null,"source":"GHSA-v8x6-59g4-5g3w"},{"ecosystem":"Maven","fixed":["2.8.16"],"introduced":["2.8.3"],"last_affected":[],"package":"com.typesafe.play:play_2.13","purl":"pkg:maven/com.typesafe.play/play_2.13","source":"GHSA-v8x6-59g4-5g3w"}],"prev":{"headline":"Expression Always True vulnerability in Zulip Server","id":"CVE-2022-31017"},"products":["playframework"],"published":"2022-06-02","related":[{"cvss_score":9.8,"headline":"XML external entity in n/a","id":"CVE-2014-3630","kev_date_added":null,"published":"2017-12-29"},{"cvss_score":7.5,"headline":"Data Amplification in Play Framework","id":"CVE-2020-26882","kev_date_added":null,"published":"2020-11-06"},{"cvss_score":7.5,"headline":"Uncontrolled Recursion in Play Framework","id":"CVE-2020-26883","kev_date_added":null,"published":"2020-11-06"},{"cvss_score":7.5,"headline":"Out-of-bounds Write in Play Framework","id":"CVE-2020-27196","kev_date_added":null,"published":"2020-11-06"},{"cvss_score":7.5,"headline":"Play Framework Inadequate Encryption Strength vulnerability","id":"CVE-2019-17598","kev_date_added":null,"published":"2019-11-05"},{"cvss_score":7.5,"headline":"Play Framework's Assets controller vulnerable to directory traversal","id":"CVE-2018-13864","kev_date_added":null,"published":"2018-07-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["playframework"]},"summary":"Attackers can crash Play Framework applications by sending deeply nested JSON data, causing an OutOfMemoryError and process termination.","url":"https://insights.sbomify.com/CVE-2022-31018/"}