{"id":"CVE-2024-40625","aliases":["GHSA-r4hf-r8gj-jgw2"],"url":"https://o3.security/vulnerability/CVE-2024-40625","summary":"GeoServer Coverage REST API Allows 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","published":"2025-06-10T14:49:05.368Z","modified":"2026-10-28T02:31:12.938736490Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.geoserver:gs-rest","fixedVersion":"2.26.0"},{"ecosystem":"Maven","name":"org.geoserver.web:gs-web-app","fixedVersion":"2.26.0"}],"fix":null,"references":[{"type":"WEB","url":"https://osgeo-org.atlassian.net/browse/GEOS-11468"},{"type":"WEB","url":"https://osgeo-org.atlassian.net/browse/GEOS-11717"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40625.json"},{"type":"ADVISORY","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:12.938736490Z"}}