{"answers":{"affected":"1 open source package ship an affected version, including artifactory. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-7931 in the wild and no public exploit code.","fix":"Upgrade artifactory to a fixed version for your release line: 5.11.8, 6.1.6, 6.3.9 or 6.7.8.","what":"CVE-2020-7931 is a high-severity code injection vulnerability in Jfrog Artifactory, published on 23 Jan 2020. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-7931 and fix it if it is affected.\n\nWhat it is: CVE-2020-7931 is a high-severity code injection vulnerability in Jfrog Artifactory, published on 23 Jan 2020. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-7931 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- artifactory (Bitnami): affected all versions; fixed in 5.11.8, 6.1.6, 6.3.9, 6.7.8, 6.8.17, 6.9.6, 6.10.9, 6.11.7, 6.12.3, 6.13.2, 6.14.2, 6.15.1\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-7931/ (Markdown: https://insights.sbomify.com/CVE-2020-7931/index.md)","id":"CVE-2020-7931","markdown":"https://insights.sbomify.com/CVE-2020-7931/index.md","name":"CVE-2020-7931","record":{"aliases":["BIT-artifactory-2020-7931","GHSA-vp29-6rcm-8jf5"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JFrog Artifactory","requires_auth":"low_privilege","summary":"Remote attackers can execute arbitrary code via insecure FreeMarker template processing in JFrog Artifactory, potentially modifying SSH keys.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"artifactory","vendor":"jfrog"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"In JFrog Artifactory 5.x and 6.x, insecure FreeMarker template processing leads to remote code execution, e.g., by modifying a .ssh/authorized_keys file. Patches are available for various versions between 5.11.8 and 6.16.0. The issue exists because use of the DefaultObjectWrapper class makes certain Java functions accessible to a template.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":"2020-03-11","github_poc":1,"max_poc_stars":50,"metasploit":0,"nuclei":0,"refs":[{"date":"2020-03-11T13:56:43Z","kind":"github_poc","ref":"https://github.com/gquere/CVE-2020-7931","stars":50,"title":"Hacking Artifactory with server side template injection"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Code injection in n/a","id":"CVE-2020-7931","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"jfrog:artifactory","products":["jfrog:artifactory"],"type":"code_injection","year":"2020"},"n_packages":1,"n_references":2,"next":{"headline":"OMERO-web Sensitive Data Exposure","id":"CVE-2020-7932"},"packages":[{"ecosystem":"Bitnami","fixed":["5.11.8","6.1.6","6.3.9","6.7.8","6.8.17","6.9.6","6.10.9","6.11.7","6.12.3","6.13.2","6.14.2","6.15.1"],"introduced":["0","6.0.0","6.2.0","6.4.0","6.8.0","6.9.0","6.10.0","6.11.0","6.12.0","6.13.0","6.14.0","6.15.0"],"last_affected":[],"package":"artifactory","purl":"pkg:bitnami/artifactory","source":"BIT-artifactory-2020-7931"}],"prev":{"headline":"Specially crafted regex query can cause DoS","id":"CVE-2020-7929"},"products":["n/a"],"published":"2020-01-23","related":[{"cvss_score":9.8,"headline":"JFrog Artifactory Improper Authentication","id":"CVE-2026-82329","kev_date_added":"2026-09-02","published":"2026-08-28"},{"cvss_score":8.1,"headline":"JFrog Artifactory Incorrect Authorization","id":"CVE-2026-42016","kev_date_added":"2026-09-11","published":"2026-07-27"},{"cvss_score":7.5,"headline":"JFrog Artifactory Improper Authentication","id":"CVE-2026-42018","kev_date_added":"2026-09-11","published":"2026-08-12"},{"cvss_score":5.3,"headline":"JFrog Artifactory Improper Limitation of a Pathname to a Restricted Directory","id":"CVE-2026-66384","kev_date_added":"2026-08-27","published":"2026-08-12"},{"cvss_score":9.8,"headline":"JFrog Artifactory does not enforce default admin password change","id":"CVE-2019-17444","kev_date_added":null,"published":"2020-10-12"},{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2018-19971","kev_date_added":null,"published":"2019-04-16"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2019-9733","kev_date_added":null,"published":"2019-04-11"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via insecure FreeMarker template processing in JFrog Artifactory, potentially modifying SSH keys.","url":"https://insights.sbomify.com/CVE-2020-7931/"}