{"answers":{"affected":"3 open source packages ship an affected version, including org.apache.solr:solr-parent and solr. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-27905 exists.","fix":"Upgrade org.apache.solr:solr-parent to 8.8.2 or later.","what":"CVE-2021-27905 is a critical server-side request forgery vulnerability in Apache Solr, published on 13 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-27905 and fix it if it is affected.\n\nWhat it is: CVE-2021-27905 is a critical server-side request forgery vulnerability in Apache Solr, published on 13 Apr 2021. 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-2021-27905 exists.\n\nAffected packages and fixed versions:\n- org.apache.solr:solr-parent (Maven): affected all versions; fixed in 8.8.2\n- org.apache.solr:solr-parent (Maven): affected all versions; fixed in 8.8.2\n- solr (Bitnami): affected all versions; fixed in 8.8.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-2021-27905/ (Markdown: https://insights.sbomify.com/CVE-2021-27905/index.md)","id":"CVE-2021-27905","markdown":"https://insights.sbomify.com/CVE-2021-27905/index.md","name":"CVE-2021-27905","record":{"aliases":["BIT-solr-2021-27905","DEBIAN-CVE-2021-27905","GHSA-5phw-3jrp-3vj8","UBUNTU-CVE-2021-27905"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Solr search platform","requires_auth":"none","summary":"Attackers can exploit the ReplicationHandler to perform Server-Side Request Forgery, accessing internal resources or bypassing network restrictions.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"solr","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","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-918","name":"Server-Side Request Forgery"}],"description":"The ReplicationHandler (normally registered at \"/replication\" under a Solr core) in Apache Solr has a \"masterUrl\" (also \"leaderUrl\" alias) parameter that is used to designate another ReplicationHandler on another Solr core to replicate index data into the local core. To prevent a SSRF vulnerability, Solr ought to check these parameters against a similar configuration it uses for the \"shards\" parameter. Prior to this bug getting fixed, it did not. This problem affects essentially all Solr versions prior to it getting fixed in 8.8.2.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-04-21","github_poc":5,"max_poc_stars":70,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-04-21T09:27:21Z","kind":"github_poc","ref":"https://github.com/Henry4E36/Solr-SSRF","stars":70,"title":"Apache Solr SSRF(CVE-2021-27905)"},{"date":"2021-08-10T07:49:47Z","kind":"github_poc","ref":"https://github.com/murataydemir/CVE-2021-27905","stars":6,"title":"[CVE-2021-27905] Apache Solr ReplicationHandler Server Side Request Forgery (SSRF)"},{"date":"2022-11-03T00:41:16Z","kind":"github_poc","ref":"https://github.com/pdelteil/CVE-2021-27905.POC","stars":3,"title":"POC for LFI related to CVE-2021-27905"},{"date":"2025-10-18T14:19:58Z","kind":"github_poc","ref":"https://github.com/RIZZZIOM/CVE-2021-27905","stars":2,"title":"Apache Solr \u003c 8.8.2 Server Side Request Forgery"},{"date":"2021-04-25T11:50:19Z","kind":"github_poc","ref":"https://github.com/W2Ning/Solr-SSRF","stars":0,"title":"CVE-2021-27905"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-27905.yaml","stars":null,"title":"Apache Solr \u003c=8.8.1 - Server-Side Request Forgery"}],"tier":"weaponised"},"has_fix":true,"headline":"SSRF vulnerability with the Replication handler","id":"CVE-2021-27905","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"ssrf","year":"2021"},"n_packages":3,"n_references":12,"next":{"headline":"A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file","id":"CVE-2021-27906"},"packages":[{"ecosystem":"Bitnami","fixed":["8.8.2"],"introduced":["0"],"last_affected":[],"package":"solr","purl":"pkg:bitnami/solr","source":"BIT-solr-2021-27905"},{"ecosystem":"Maven","fixed":["8.8.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.solr:solr-parent","purl":null,"source":"GHSA-5phw-3jrp-3vj8"},{"ecosystem":"Maven","fixed":["8.8.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.solr:solr-parent","purl":"pkg:maven/org.apache.solr/solr-parent","source":"GHSA-5phw-3jrp-3vj8"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2021-27904"},"products":["Apache Solr"],"published":"2021-04-13","related":[{"cvss_score":7.5,"headline":"Apache Solr VelocityResponseWriter Plug-In Remote Code Execution","id":"CVE-2019-17558","kev_date_added":"2021-11-03","published":"2019-12-30"},{"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":"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":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Apache Software Foundation"]},"summary":"Attackers can exploit the ReplicationHandler to perform Server-Side Request Forgery, accessing internal resources or bypassing network restrictions.","url":"https://insights.sbomify.com/CVE-2021-27905/"}