{"answers":{"affected":"2 open source packages ship an affected version, including org.scala-lang:scala-library. It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36944 exists.","fix":"Upgrade org.scala-lang:scala-library to 2.13.9 or later.","what":"CVE-2022-36944 is a critical unsafe deserialization vulnerability in Fedoraproject Fedora, published on 23 Sep 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-36944 and fix it if it is affected.\n\nWhat it is: CVE-2022-36944 is a critical unsafe deserialization vulnerability in Fedoraproject Fedora, published on 23 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36944 exists.\n\nAffected packages and fixed versions:\n- org.scala-lang:scala-library (Maven): affected from 2.13.0; fixed in 2.13.9\n- org.scala-lang:scala-library (Maven): affected from 2.13.0; fixed in 2.13.9\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-36944/ (Markdown: https://insights.sbomify.com/CVE-2022-36944/index.md)","id":"CVE-2022-36944","markdown":"https://insights.sbomify.com/CVE-2022-36944/index.md","name":"CVE-2022-36944","record":{"aliases":["GHSA-8qv5-68g4-248j","ROOT-APP-MAVEN-CVE-2022-36944"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Scala standard library","requires_auth":"none","summary":"Attackers can exploit a deserialization gadget chain in the Scala library to execute arbitrary code or modify data when used in vulnerable applications.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"scala","vendor":"scala-lang"},{"product":"scala-collection-compat","vendor":"scala-lang"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"Scala 2.13.x before 2.13.9 has a Java deserialization chain in its JAR file. On its own, it cannot be exploited. There is only a risk in conjunction with Java object deserialization within an application. In such situations, it allows attackers to erase contents of arbitrary files, make network connections, or possibly run arbitrary code (specifically, Function0 functions) via a gadget chain.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-05-16","github_poc":1,"max_poc_stars":11,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-05-16T15:38:49Z","kind":"github_poc","ref":"https://github.com/yarocher/lazylist-cve-poc","stars":11,"title":"POC for the CVE-2022-36944 vulnerability exploit"}],"tier":"weaponised"},"has_fix":true,"headline":"Scala subject to file deletion, code execution due to Java deserialization chain with LazyList object deserialization","id":"CVE-2022-36944","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"deserialization","year":"2022"},"n_packages":2,"n_references":6,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2022-36945"},"packages":[{"ecosystem":"Maven","fixed":["2.13.9"],"introduced":["2.13.0"],"last_affected":[],"package":"org.scala-lang:scala-library","purl":null,"source":"GHSA-8qv5-68g4-248j"},{"ecosystem":"Maven","fixed":["2.13.9"],"introduced":["2.13.0"],"last_affected":[],"package":"org.scala-lang:scala-library","purl":"pkg:maven/org.scala-lang/scala-library","source":"GHSA-8qv5-68g4-248j"}],"prev":{"headline":"Path traversal in SSZipArchive","id":"CVE-2022-36943"},"products":["n/a"],"published":"2022-09-23","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-05-27","vendors":["n/a"]},"summary":"Attackers can exploit a deserialization gadget chain in the Scala library to execute arbitrary code or modify data when used in vulnerable applications.","url":"https://insights.sbomify.com/CVE-2022-36944/"}