{"answers":{"affected":"8 open source packages ship an affected version, including org.apache.solr:solr-core. It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2019-17558 in the wild since at least 3 Nov 2021.","fix":"Upgrade org.apache.solr:solr-core to 8.4.0 or later. US federal agencies must fix it by 3 May 2022.","what":"CVE-2019-17558 is a high-severity code injection vulnerability in Oracle Primavera Unifier, published on 30 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-17558 and fix it if it is affected.\n\nWhat it is: CVE-2019-17558 is a high-severity code injection vulnerability in Oracle Primavera Unifier, published on 30 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2019-17558 in the wild since at least 3 Nov 2021.\n\nAffected packages and fixed versions:\n- org.apache.solr:solr-core (Maven): affected from 5.0.0; fixed in 8.4.0\n- org.apache.solr:solr-core (Maven): affected from 5.0.0; fixed in 8.4.0\n- org.apache.solr:solr-core (Maven): affected from 6.0.0; fixed in 8.4.0\n- org.apache.solr:solr-core (Maven): affected from 6.0.0; fixed in 8.4.0\n- org.apache.solr:solr-core (Maven): affected from 7.0.0; fixed in 8.4.0\n- org.apache.solr:solr-core (Maven): affected from 7.0.0; fixed in 8.4.0\n- org.apache.solr:solr-core (Maven): affected from 8.0.0; fixed in 8.4.0\n- org.apache.solr:solr-core (Maven): affected from 8.0.0; fixed in 8.4.0\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-2019-17558/ (Markdown: https://insights.sbomify.com/CVE-2019-17558/index.md)","id":"CVE-2019-17558","markdown":"https://insights.sbomify.com/CVE-2019-17558/index.md","name":"CVE-2019-17558","record":{"aliases":["DEBIAN-CVE-2019-17558","GHSA-ww97-9w65-2crx"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Solr search engine","requires_auth":"low_privilege","summary":"Attackers with configuration access can execute arbitrary code via Velocity templates in Apache Solr, requiring specific response writer settings to be enabled.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"solr","vendor":"apache"},{"product":"primavera_unifier","vendor":"oracle"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Apache Solr 5.0.0 to Apache Solr 8.3.1 are vulnerable to a Remote Code Execution through the VelocityResponseWriter. A Velocity template can be provided through Velocity templates in a configset `velocity/` directory or as a parameter. A user defined configset could contain renderable, potentially malicious, templates. Parameter provided templates are disabled by default, but can be enabled by setting `params.resource.loader.enabled` by defining a response writer with that setting set to `true`. Defining a response writer requires configuration API access. Solr 8.4 removed the params resource loader entirely, and only enables the configset-provided template rendering when the configset is `trusted` (has been uploaded by an authenticated user).","ecosystems":["Maven"],"exploits":{"exploitdb":2,"first_seen":"2019-10-29","github_poc":6,"max_poc_stars":4295,"metasploit":1,"nuclei":1,"refs":[{"date":"2020-04-01T09:33:35Z","kind":"github_poc","ref":"https://github.com/zhzyker/exphub","stars":4295,"title":"Exphub[漏洞利用脚本库] 包括Webloigc、Struts2、Tomcat、Nexus、Solr、Jboss、Drupal的漏洞利用脚本，最新添加CVE-2020-14882、CVE-2020-11444、CVE-2020-10204、CVE-2020-10199、CVE-2020-1938、CVE-2020-2551、CVE-2020-2555、CVE-2020-2883、CVE-2019-17558、CVE-2019-6340"},{"date":"2020-08-04T06:13:33Z","kind":"github_poc","ref":"https://github.com/Ma1Dong/Solr_CVE-2019-17558","stars":2,"title":"Solr_CVE-2019-17558"},{"date":"2020-03-27T14:48:22Z","kind":"github_poc","ref":"https://github.com/thelostworldFree/CVE-2019-17558_Solr_Vul_Tool","stars":1,"title":"CVE-2019-17558 Solr模板注入漏洞图形化一键检测工具。CVE-2019-17558 Solr Velocity Template Vul POC Tool."},{"date":"2026-02-16T22:39:05Z","kind":"github_poc","ref":"https://github.com/rogerzeferino/cve-2019-17558-apache-solr-rce","stars":1,"title":null},{"date":"2019-10-29","kind":"metasploit","ref":"exploit/multi/http/solr_velocity_rce","stars":null,"title":"Apache Solr Remote Code Execution via Velocity Template"},{"date":"2019-11-01","kind":"exploitdb","ref":"47572","stars":null,"title":"Apache Solr 8.2.0 - Remote Code Execution"},{"date":"2020-04-16","kind":"exploitdb","ref":"48338","stars":null,"title":"Apache Solr - Remote Code Execution via Velocity Template (Metasploit)"},{"date":"2020-12-15T04:38:06Z","kind":"github_poc","ref":"https://github.com/xkyrage/Exploit_CVE-2019-17558-RCE","stars":0,"title":"Apache Solr 1.4 Injection to get a shell"}],"tier":"exploited"},"has_fix":true,"headline":"Apache Solr VelocityResponseWriter Plug-In Remote Code Execution","id":"CVE-2019-17558","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Unknown","product":"Solr","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Apache","vulnerabilityName":"Apache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:primavera_unifier","products":["oracle:primavera_unifier"],"type":"code_injection","year":"2019"},"n_packages":8,"n_references":29,"next":{"headline":"Other in Apache Traffic Server","id":"CVE-2019-17559"},"packages":[{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-ww97-9w65-2crx"},{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-ww97-9w65-2crx"},{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-ww97-9w65-2crx"},{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-ww97-9w65-2crx"},{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["7.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-ww97-9w65-2crx"},{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["7.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-ww97-9w65-2crx"},{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["8.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-ww97-9w65-2crx"},{"ecosystem":"Maven","fixed":["8.4.0"],"introduced":["8.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-ww97-9w65-2crx"}],"prev":{"headline":"Cross-site scripting in Apache Syncome EndUser","id":"CVE-2019-17557"},"products":["Apache Solr"],"published":"2019-12-30","related":[{"cvss_score":7.2,"headline":"Apache Solr DataImportHandler Code Injection","id":"CVE-2019-0193","kev_date_added":"2021-12-10","published":"2019-08-01"},{"cvss_score":9.8,"headline":"Apache Solr: Authentication bypass possible using a fake URL Path ending","id":"CVE-2024-45216","kev_date_added":null,"published":"2024-10-16"},{"cvss_score":9.8,"headline":"Apache Solr information disclosure vulnerability through DataImportHandler","id":"CVE-2021-44548","kev_date_added":null,"published":"2021-12-23"},{"cvss_score":9.8,"headline":"SSRF vulnerability with the Replication handler","id":"CVE-2021-27905","kev_date_added":null,"published":"2021-04-13"},{"cvss_score":9.8,"headline":"Incorrect Authorization in Apache Solr","id":"CVE-2020-13957","kev_date_added":null,"published":"2020-10-13"},{"cvss_score":9.8,"headline":"Unrestricted upload of file with dangerous type in Apache Solr","id":"CVE-2019-12409","kev_date_added":null,"published":"2019-11-18"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Attackers with configuration access can execute arbitrary code via Velocity templates in Apache Solr, requiring specific response writer settings to be enabled.","url":"https://insights.sbomify.com/CVE-2019-17558/"}