{"answers":{"affected":"4 open source packages ship an affected version, including org.geoserver:gs-main. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-40822 exists.","fix":"No fix has been published for CVE-2021-40822 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-40822 is a high-severity server-side request forgery vulnerability in n/a, published on 1 May 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-2021-40822 and fix it if it is affected.\n\nWhat it is: CVE-2021-40822 is a high-severity server-side request forgery vulnerability in n/a, published on 1 May 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-2021-40822 exists.\n\nAffected packages and fixed versions:\n- org.geoserver:gs-main (Maven): affected all versions up to 2.18.5; no fix listed\n- org.geoserver:gs-main (Maven): affected all versions up to 2.18.5; no fix listed\n- org.geoserver:gs-main (Maven): affected from 2.19.0 up to 2.19.2; no fix listed\n- org.geoserver:gs-main (Maven): affected from 2.19.0 up to 2.19.2; no fix listed\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-40822/ (Markdown: https://insights.sbomify.com/CVE-2021-40822/index.md)","id":"CVE-2021-40822","markdown":"https://insights.sbomify.com/CVE-2021-40822/index.md","name":"CVE-2021-40822","record":{"aliases":["GHSA-rr33-j5p5-ppf8"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"GeoServer","requires_auth":"none","summary":"Attackers can exploit a proxy host setting in GeoServer to perform Server-Side Request Forgery, potentially accessing internal resources.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"geoserver","vendor":"osgeo"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"GeoServer through 2.18.5 and 2.19.x through 2.19.2 allows SSRF via the option for setting a proxy host.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2022-05-17","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":1,"refs":[{"date":"2022-05-17T13:58:11Z","kind":"github_poc","ref":"https://github.com/phor3nsic/CVE-2021-40822","stars":2,"title":"PoC and Dockerized vulnerable lab for CVE-2021-40822 (SSRF in GeoServer)"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-40822.yaml","stars":null,"title":"Geoserver - Server-Side Request Forgery"}],"tier":"weaponised"},"has_fix":false,"headline":"GeoServer allows SSRF via the option for setting a proxy host","id":"CVE-2021-40822","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"ssrf","year":"2021"},"n_packages":4,"n_references":4,"next":{"headline":"matrix-js-sdk can be tricked into disclosing E2EE room keys to a participating homeserver","id":"CVE-2021-40823"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.18.5"],"package":"org.geoserver:gs-main","purl":null,"source":"GHSA-rr33-j5p5-ppf8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.18.5"],"package":"org.geoserver:gs-main","purl":"pkg:maven/org.geoserver/gs-main","source":"GHSA-rr33-j5p5-ppf8"},{"ecosystem":"Maven","fixed":[],"introduced":["2.19.0"],"last_affected":["2.19.2"],"package":"org.geoserver:gs-main","purl":null,"source":"GHSA-rr33-j5p5-ppf8"},{"ecosystem":"Maven","fixed":[],"introduced":["2.19.0"],"last_affected":["2.19.2"],"package":"org.geoserver:gs-main","purl":"pkg:maven/org.geoserver/gs-main","source":"GHSA-rr33-j5p5-ppf8"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2021-40818"},"products":["n/a"],"published":"2022-05-01","related":[{"cvss_score":9.8,"headline":"Unfiltered SQL Injection Vulnerabilities in Geoserver","id":"CVE-2023-25157","kev_date_added":null,"published":"2023-02-21"},{"cvss_score":9.3,"headline":"GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)","id":"CVE-2024-34711","kev_date_added":null,"published":"2025-06-10"},{"cvss_score":8.6,"headline":"Unsecured WMS dynamic styling sld=\u003curl\u003e parameter affords blind unauthenticated SSRF in GeoServer","id":"CVE-2023-41339","kev_date_added":null,"published":"2023-10-24"},{"cvss_score":8.6,"headline":"WPS Server Side Request Forgery in GeoServer","id":"CVE-2023-43795","kev_date_added":null,"published":"2023-10-24"},{"cvss_score":7.5,"headline":"GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost","id":"CVE-2024-29198","kev_date_added":null,"published":"2025-06-10"},{"cvss_score":7.5,"headline":"GeoServer has an Infinite Loop Vulnerability in Jiffle process","id":"CVE-2025-30145","kev_date_added":null,"published":"2025-06-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":"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-04","vendors":["n/a"]},"summary":"Attackers can exploit a proxy host setting in GeoServer to perform Server-Side Request Forgery, potentially accessing internal resources.","url":"https://insights.sbomify.com/CVE-2021-40822/"}