{"answers":{"affected":"4 open source packages ship an affected version, including io.dropwizard:dropwizard-validation. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-5245 exists.","fix":"Upgrade io.dropwizard:dropwizard-validation to a fixed version for your release line: 1.3.19 or 2.0.2.","what":"CVE-2020-5245 is a high-severity code injection vulnerability in dropwizard-validation, published on 24 Feb 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5245 and fix it if it is affected.\n\nWhat it is: CVE-2020-5245 is a high-severity code injection vulnerability in dropwizard-validation, published on 24 Feb 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-5245 exists.\n\nAffected packages and fixed versions:\n- io.dropwizard:dropwizard-validation (Maven): affected from 1.3.0-rc1; fixed in 1.3.19\n- io.dropwizard:dropwizard-validation (Maven): affected from 1.3.0-rc1; fixed in 1.3.19\n- io.dropwizard:dropwizard-validation (Maven): affected from 2.0.0; fixed in 2.0.2\n- io.dropwizard:dropwizard-validation (Maven): affected from 2.0.0; fixed in 2.0.2\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-2020-5245/ (Markdown: https://insights.sbomify.com/CVE-2020-5245/index.md)","id":"CVE-2020-5245","markdown":"https://insights.sbomify.com/CVE-2020-5245/index.md","name":"CVE-2020-5245","record":{"aliases":["GHSA-3mcp-9wr4-cjqf"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Java validation library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code via Java Expression Language injection in the self-validating feature of Dropwizard-Validation.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dropwizard_validation","vendor":"dropwizard"},{"product":"blockchain_platform","vendor":"oracle"}],"cvss":{"score":7.9,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Dropwizard-Validation before 1.3.19, and 2.0.2 may allow arbitrary code execution on the host system, with the privileges of the Dropwizard service account, by injecting arbitrary Java Expression Language expressions when using the self-validating feature.\n\nThe issue has been fixed in dropwizard-validation 1.3.19 and 2.0.2.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-02-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-02-17T09:55:45Z","kind":"github_poc","ref":"https://github.com/LycsHub/CVE-2020-5245","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Remote Code Execution (RCE) vulnerability in dropwizard-validation","id":"CVE-2020-5245","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2020"},"n_packages":4,"n_references":8,"next":{"headline":"LDAP injection vulnerability in Traccar GPS Tracking System","id":"CVE-2020-5246"},"packages":[{"ecosystem":"Maven","fixed":["1.3.19"],"introduced":["1.3.0-rc1"],"last_affected":[],"package":"io.dropwizard:dropwizard-validation","purl":null,"source":"GHSA-3mcp-9wr4-cjqf"},{"ecosystem":"Maven","fixed":["1.3.19"],"introduced":["1.3.0-rc1"],"last_affected":[],"package":"io.dropwizard:dropwizard-validation","purl":"pkg:maven/io.dropwizard/dropwizard-validation","source":"GHSA-3mcp-9wr4-cjqf"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"io.dropwizard:dropwizard-validation","purl":null,"source":"GHSA-3mcp-9wr4-cjqf"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"io.dropwizard:dropwizard-validation","purl":"pkg:maven/io.dropwizard/dropwizard-validation","source":"GHSA-3mcp-9wr4-cjqf"}],"prev":{"headline":"Private data exposure via REST API in BuddyPress","id":"CVE-2020-5244"},"products":["dropwizard-validation"],"published":"2020-02-24","related":[{"cvss_score":8,"headline":"Remote Code Execution (RCE) vulnerability in dropwizard-validation","id":"CVE-2020-11002","kev_date_added":null,"published":"2020-04-10"}],"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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-04","vendors":["dropwizard"]},"summary":"Attackers can execute arbitrary code via Java Expression Language injection in the self-validating feature of Dropwizard-Validation.","url":"https://insights.sbomify.com/CVE-2020-5245/"}