{"id":"CVE-2021-22047","aliases":["EUVD-2022-2343","GHSA-4926-qpxg-6r3w"],"status":"published","title":"Exposure of Resource to Wrong Sphere in Spring Data REST","description":"In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00771,"percentile":0.56084,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200","CWE-668"],"published":"2021-10-28T15:21:26Z","modified":"2026-10-24T10:30:25Z","fixes":[{"ecosystem":"Maven","package":"org.springframework.data:spring-data-rest-core","fixed_in":["3.4.14","3.5.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.data:spring-data-rest-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"last_affected":"3.4.13"},{"fixed":"3.4.14"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.data:spring-data-rest-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"last_affected":"3.5.5"},{"fixed":"3.5.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.data:spring-data-rest-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"fixed":"3.4.14"}]}],"versions":["3.4.0","3.4.1","3.4.10","3.4.11","3.4.12","3.4.13","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.4.7","3.4.8","3.4.9"]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.data:spring-data-rest-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"3.5.6"}]}],"versions":["3.5.0","3.5.1","3.5.2","3.5.3","3.5.4","3.5.5"]}],"products":[{"vendor":"vmware","product":"spring_data_rest"}],"references":[{"url":"https://tanzu.vmware.com/security/cve-2021-22047","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22047","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-4926-qpxg-6r3w"}],"sources":{"cve":[{"id":"CVE-2021-22047","description":"In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.","status":"published","published":"2021-10-28T15:21:26Z","modified":"2024-08-03T18:30:23.959Z","cwes":["CWE-200"],"updated_at":"2026-11-02T14:32:58.028461Z"}],"euvd":[{"id":"EUVD-2022-2343","description":"In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.","status":"published","published":"2021-10-28T15:21:26Z","modified":"2024-08-03T18:30:23Z","updated_at":"2026-11-03T03:25:03.638882Z"}],"ghsa":[{"id":"GHSA-4926-qpxg-6r3w","title":"Exposure of Resource to Wrong Sphere in Spring Data REST","description":"In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.","status":"published","published":"2022-05-24T19:19:03Z","modified":"2023-01-27T05:03:22Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-668"],"updated_at":"2026-11-02T14:36:20.144464Z"}],"nvd":[{"id":"CVE-2021-22047","description":"In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.","status":"published","published":"2021-10-28T16:15:07.623Z","modified":"2026-06-17T03:36:36.347Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-200","CWE-668"],"updated_at":"2026-11-02T14:07:00.549994Z"}],"osv":[{"id":"CVE-2021-22047","description":"In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.","status":"published","published":"2021-10-28T16:15:07.623Z","modified":"2026-10-24T10:30:25.012840039Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:18.367807Z"},{"id":"GHSA-4926-qpxg-6r3w","title":"Exposure of Resource to Wrong Sphere in Spring Data REST","description":"In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.","status":"published","published":"2022-05-24T19:19:03Z","modified":"2023-11-08T04:04:53.405141Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-668"],"updated_at":"2026-11-02T15:46:36.782754Z"}]}}
