{"id":"GHSA-r4hf-r8gj-jgw2","summary":"Coverage REST API Server Side Request Forgery","details":"### Summary\n\nThe Coverage rest api `/workspaces/{workspaceName}/coveragestores/{storeName}/{method}.{format}` allow to upload file with a specified url (with {method} equals 'url') with no restrict.\n\n### Details\n\nThe Coverage rest api `/workspaces/{workspaceName}/coveragestores/{storeName}/{method}.{format}` allow to upload file with a specified url (with {method} equals 'url'). But this url has not been check with [URL Checks feature](https://docs.geoserver.org/latest/en/user/security/urlchecks.html#url-checks).\n\nFor example, should add the code below to check fileURL:\n\n```java\nURLCheckers.confirm(fileURL)\n```\n\nThe vulnerable code was [RESTUtils.java](https://github.com/geoserver/geoserver/blob/main/src/rest/src/main/java/org/geoserver/rest/util/RESTUtils.java#L176)\n\n### Impact\n\nThis vulnerability presents the opportunity for Server Side Request Forgery.\n\n### References\n\n- https://osgeo-org.atlassian.net/browse/GEOS-11468\n- https://osgeo-org.atlassian.net/browse/GEOS-11717","aliases":["CVE-2024-40625"],"modified":"2025-06-10T15:35:32Z","published":"2025-06-10T14:14:59Z","database_specific":{"cwe_ids":["CWE-918"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-06-10T14:14:59Z","nvd_published_at":"2025-06-10T15:15:23Z"},"references":[{"type":"WEB","url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-r4hf-r8gj-jgw2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40625"},{"type":"PACKAGE","url":"https://github.com/geoserver/geoserver"},{"type":"WEB","url":"https://osgeo-org.atlassian.net/browse/GEOS-11468"},{"type":"WEB","url":"https://osgeo-org.atlassian.net/browse/GEOS-11717"}],"affected":[{"package":{"name":"org.geoserver:gs-rest","ecosystem":"Maven","purl":"pkg:maven/org.geoserver/gs-rest"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.26.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-r4hf-r8gj-jgw2/GHSA-r4hf-r8gj-jgw2.json"}},{"package":{"name":"org.geoserver.web:gs-web-app","ecosystem":"Maven","purl":"pkg:maven/org.geoserver.web/gs-web-app"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.26.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-r4hf-r8gj-jgw2/GHSA-r4hf-r8gj-jgw2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:L"}]}