{"id":"CVE-2024-29198","aliases":["EUVD-2024-26218","GHSA-5gw5-jccf-6hxw"],"status":"published","title":"GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.02321,"percentile":0.83605,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-918"],"published":"2025-06-10T14:13:25Z","modified":"2026-10-28T02:30:23Z","exploits":[{"source":"nuclei","id":"CVE-2024-29198","title":"GeoServer Demo Request Endpoint - Server Side Request Forgery","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-29198.yaml"}],"fixes":[{"ecosystem":"Maven","package":"org.geoserver:gs-wfs","fixed_in":["2.24.4","2.25.2"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.geoserver.web:gs-app","fixed_in":["2.24.4","2.25.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.24.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver.web:gs-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.24.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver.web:gs-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.24.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver.web:gs-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.24.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver.web:gs-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]}],"products":[{"vendor":"geoserver","product":"geoserver"},{"vendor":"osgeo","product":"geoserver"}],"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-5gw5-jccf-6hxw","tags":["x_refsource_CONFIRM","Mitigation","Third Party Advisory","advisory","web"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOS-11390","tags":["x_refsource_MISC","Issue Tracking","web"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOS-11794","tags":["x_refsource_MISC","Permissions Required","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40822","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29198","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-5gw5-jccf-6hxw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29198.json","tags":["advisory"]},{"url":"https://github.com/geoserver/geoserver","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-29198","title":"GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost","description":"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.","status":"published","published":"2025-06-10T14:27:39.485Z","modified":"2025-06-17T19:12:00.664Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:34:15.337999Z"}],"euvd":[{"id":"EUVD-2024-26218","description":"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.","status":"published","published":"2025-06-10T14:27:39Z","modified":"2025-06-17T19:12:00Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T20:32:22.334611Z"}],"ghsa":[{"id":"GHSA-5gw5-jccf-6hxw","title":"GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost","description":"### 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      \u003csecurity-constraint\u003e\n           \u003cweb-resource-collection\u003e\n               \u003cweb-resource-name\u003eBlockDemoRequests\u003c/web-resource-name\u003e\n               \u003curl-pattern\u003e/TestWfsPost/*\u003c/url-pattern\u003e\n           \u003c/web-resource-collection\u003e\n           \u003cauth-constraint\u003e\n               \u003crole-name\u003eBLOCKED\u003c/role-name\u003e\n           \u003c/auth-constraint\u003e\n       \u003c/security-constraint\u003e\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","status":"published","published":"2025-06-10T14:13:25Z","modified":"2025-06-10T15:35:19Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:38:46.901955Z"}],"nvd":[{"id":"CVE-2024-29198","description":"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.","status":"published","published":"2025-06-10T15:15:22.14Z","modified":"2026-06-17T07:22:36.703Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:10:47.073504Z"}],"osv":[{"id":"CVE-2024-29198","title":"GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost","description":"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.","status":"published","published":"2025-06-10T14:27:39.485Z","modified":"2026-10-28T02:30:23.911006148Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T15:44:40.06138Z"},{"id":"GHSA-5gw5-jccf-6hxw","title":"GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost","description":"### 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      \u003csecurity-constraint\u003e\n           \u003cweb-resource-collection\u003e\n               \u003cweb-resource-name\u003eBlockDemoRequests\u003c/web-resource-name\u003e\n               \u003curl-pattern\u003e/TestWfsPost/*\u003c/url-pattern\u003e\n           \u003c/web-resource-collection\u003e\n           \u003cauth-constraint\u003e\n               \u003crole-name\u003eBLOCKED\u003c/role-name\u003e\n           \u003c/auth-constraint\u003e\n       \u003c/security-constraint\u003e\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","status":"published","published":"2025-06-10T14:13:25Z","modified":"2025-06-10T15:35:17Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T15:46:38.553953Z"}]}}
