ghsa-r4hf-r8gj-jgw2
Vulnerability from github
Published
2025-06-10 14:14
Modified
2025-06-10 15:35
Severity ?
VLAI Severity ?
Summary
Coverage REST API Server Side Request Forgery
Details
Summary
The Coverage rest api /workspaces/{workspaceName}/coveragestores/{storeName}/{method}.{format}
allow to upload file with a specified url (with {method} equals 'url') with no restrict.
Details
The 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.
For example, should add the code below to check fileURL:
java
URLCheckers.confirm(fileURL)
The vulnerable code was RESTUtils.java
Impact
This vulnerability presents the opportunity for Server Side Request Forgery.
References
- https://osgeo-org.atlassian.net/browse/GEOS-11468
- https://osgeo-org.atlassian.net/browse/GEOS-11717
{ "affected": [ { "package": { "ecosystem": "Maven", "name": "org.geoserver:gs-rest" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.26.0" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Maven", "name": "org.geoserver.web:gs-web-app" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.26.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-40625" ], "database_specific": { "cwe_ids": [ "CWE-918" ], "github_reviewed": true, "github_reviewed_at": "2025-06-10T14:14:59Z", "nvd_published_at": "2025-06-10T15:15:23Z", "severity": "MODERATE" }, "details": "### Summary\n\nThe Coverage rest api `/workspaces/{workspaceName}/coveragestores/{storeName}/{method}.{format}` allow to upload file with a specified url (with {method} equals \u0027url\u0027) 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 \u0027url\u0027). 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", "id": "GHSA-r4hf-r8gj-jgw2", "modified": "2025-06-10T15:35:32Z", "published": "2025-06-10T14:14:59Z", "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" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:L", "type": "CVSS_V3" } ], "summary": "Coverage REST API Server Side Request Forgery" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…