{"id":"GHSA-5368-6h4h-gr29","summary":"Spring Boot's PID file write follows symlinks at predictable default path","details":"When an application is configured to use `ApplicationPidFileWriter`, a local attacker with write access to the PID file's location can corrupt one file on the host each time the application is started.\n\nAffected: Spring Boot 4.0.0–4.0.5 (fix 4.0.6), 3.5.0–3.5.13 (fix 3.5.14), 3.4.0–3.4.15 (fix 3.4.16), 3.3.0–3.3.18 (fix 3.3.19), 2.7.0–2.7.32 (fix 2.7.33); PID file / symlink behavior (`ApplicationPidFileWriter`). Versions that are no longer supported are also affected per vendor advisory.","aliases":["CVE-2026-40977"],"modified":"2026-05-06T19:26:31.377420Z","published":"2026-04-28T00:31:41Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-05-06T19:05:35Z","nvd_published_at":"2026-04-28T00:16:24Z","cwe_ids":["CWE-59"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40977"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-boot"},{"type":"WEB","url":"https://spring.io/security/cve-2026-40977"}],"affected":[{"package":{"name":"org.springframework.boot:spring-boot-cassandra","ecosystem":"Maven","purl":"pkg:maven/org.springframework.boot/spring-boot-cassandra"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.6"}]}],"versions":["4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-5368-6h4h-gr29/GHSA-5368-6h4h-gr29.json"}},{"package":{"name":"org.springframework.boot:spring-boot-cassandra","ecosystem":"Maven","purl":"pkg:maven/org.springframework.boot/spring-boot-cassandra"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"3.5.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-5368-6h4h-gr29/GHSA-5368-6h4h-gr29.json"}},{"package":{"name":"org.springframework.boot:spring-boot-cassandra","ecosystem":"Maven","purl":"pkg:maven/org.springframework.boot/spring-boot-cassandra"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"last_affected":"3.4.15"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-5368-6h4h-gr29/GHSA-5368-6h4h-gr29.json"}},{"package":{"name":"org.springframework.boot:spring-boot-cassandra","ecosystem":"Maven","purl":"pkg:maven/org.springframework.boot/spring-boot-cassandra"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.0"},{"last_affected":"3.3.18"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-5368-6h4h-gr29/GHSA-5368-6h4h-gr29.json"}},{"package":{"name":"org.springframework.boot:spring-boot-cassandra","ecosystem":"Maven","purl":"pkg:maven/org.springframework.boot/spring-boot-cassandra"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.7.32"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-5368-6h4h-gr29/GHSA-5368-6h4h-gr29.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:H"}]}