{"id":"CVE-2024-29198","aliases":["CVE-2024-29198","GHSA-5gw5-jccf-6hxw"],"related":[],"kind":"vulnerability","state":"published","title":"GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost","summary":"GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. It possible to achieve Service Side Request Forgery (SSRF) via the Demo request endpoint if Proxy Base URL has not been set. Upgrading to GeoServer 2.24.4, or 2.25.2, removes the TestWfsPost servlet resolving this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. It possible to achieve Service Side Request Forgery (SSRF) via the Demo request endpoint if Proxy Base URL has not been set. Upgrading to GeoServer 2.24.4, or 2.25.2, removes the TestWfsPost servlet resolving this issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nIt possible to achieve Service Side Request Forgery (SSRF) via the Demo request endpoint if Proxy Base URL has not been set.\n\n### Details\n\nA unauthenticated user can supply a request that will be issued by the server. This can be used to enumerate internal networks and also in the case of cloud instances can be used to obtain sensitive data.\n\n### Mitigation\n\n1. When using GeoServer with a proxy, manage the proxy base value as a system administrator, use the application property ``PROXY_BASE_URL`` to provide a non-empty value that cannot be overridden by the user interface or incoming request.\n\n2. When using GeoServer directly without a proxy, block all access to TestWfsPost by editing the web.xml file. Adding this block right before the end:\n\n   ```xml\n      <security-constraint>\n           <web-resource-collection>\n               <web-resource-name>BlockDemoRequests</web-resource-name>\n               <url-pattern>/TestWfsPost/*</url-pattern>\n           </web-resource-collection>\n           <auth-constraint>\n               <role-name>BLOCKED</role-name>\n           </auth-constraint>\n       </security-constraint>\n   ```\n\n### Resolution\n\nUpgrading to GeoServer 2.24.4, or 2.25.2, removes the ``TestWfsPost`` servlet resolving this issue.\n\nThe demo request page functionality is now implemented directly in the browser.\n\n### Reference\n\n- https://osgeo-org.atlassian.net/browse/GEOS-11794\n- https://osgeo-org.atlassian.net/browse/GEOS-11390\n- https://nvd.nist.gov/vuln/detail/CVE-2021-40822","format":"markdown","source":"ghsa"},{"lang":"es","text":"GeoServer es un servidor de software de código abierto escrito en Java que permite a los usuarios compartir y editar datos geoespaciales. Es posible realizar Service Side Request Forgery (SSRF) a través del endpoint de la solicitud de demostración si no se ha configurado la URL base del proxy. La actualización a GeoServer 2.24.4 o 2.25.2 elimina el servlet TestWfsPost, lo que soluciona este problema.","source":"nvd"}],"published":"2025-06-10T14:13:25.000Z","modified":"2026-06-17T07:22:36.703Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.24.4","status":"affected"},{"version":">= 2.25.0, < 2.25.2","status":"affected"}],"vendor":"geoserver","product":"geoserver","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.24.4"}],"ecosystem":"Maven","package":"org.geoserver:gs-wfs","purl":"pkg:maven/org.geoserver/gs-wfs","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.24.4"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-app","purl":"pkg:maven/org.geoserver.web/gs-app","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.25.0","status":"affected","fixed":"2.25.2"}],"ecosystem":"Maven","package":"org.geoserver:gs-wfs","purl":"pkg:maven/org.geoserver/gs-wfs","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.25.0","status":"affected","fixed":"2.25.2"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-app","purl":"pkg:maven/org.geoserver.web/gs-app","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.24.4"},{"status":"affected","introduced":"2.25.0","fixed":"2.25.2"}],"vendor":"osgeo","product":"geoserver","cpe":"cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-5gw5-jccf-6hxw","tags":["mitigation","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOS-11390","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOS-11794","tags":["permissions-required","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40822","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29198","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/geoserver/geoserver","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-10T14:34:24.822Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-29198","url":"https://www.cve.org/CVERecord?id=CVE-2024-29198","licence":"CVE Terms of Use","modified":"2025-06-17T19:12:00.664Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5gw5-jccf-6hxw","url":"https://github.com/advisories/GHSA-5gw5-jccf-6hxw","licence":"CC-BY-4.0","modified":"2025-06-10T15:35:17.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-29198","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29198","licence":"Public domain","modified":"2026-06-17T07:22:36.703Z"}],"updatedAt":"2026-11-25T22:58:52.741Z","epss":{"score":0.02321,"percentile":0.83934,"date":"2026-12-01T12:00:22.000Z"}}