{"schemaVersion":3,"id":"CVE-2026-40977","aliases":["GHSA-5368-6h4h-gr29"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-04-27T23:36:06.654Z","modified":"2026-04-28T14:34:36.220Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:H","exploitability":1.3,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0015,"percentile":0.03809,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.03800000000000001,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00112},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0015,"percentile":0.03809}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00112,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0015,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0015,"percentile":0.03809}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"org.springframework.boot","product":"spring-boot-cassandra","name":"org.springframework.boot:spring-boot-cassandra","label":"spring-boot-cassandra","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.springframework.boot/spring-boot-cassandra","purlType":"maven","versions":[{"text":"≥ 4.0.0, < 4.0.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.5.0, < 3.5.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.4.0, ≤ 3.4.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, ≤ 3.3.18","noFixRecorded":false,"fixedIn":null},{"text":"≤ 2.7.32","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.0.6 | ≥ 3.5.0, < 3.5.14 | ≥ 3.4.0, ≤ 3.4.15 | ≥ 3.3.0, ≤ 3.3.18 | ≤ 2.7.32","eol":null,"hubHref":null},{"vendor":"spring","product":"spring boot","name":"Spring Boot","label":"spring boot","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.0.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.5.0, < 3.5.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.4.0, < 3.4.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, < 3.3.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.7.0, < 2.7.33","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.0.6 | ≥ 3.5.0, < 3.5.14 | ≥ 3.4.0, < 3.4.16 | ≥ 3.3.0, < 3.3.19 | ≥ 2.7.0, < 2.7.33","eol":null,"hubHref":"/vendor/spring/spring_boot"},{"vendor":"vmware","product":"spring_boot","name":"spring boot","label":"spring_boot","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.7.33","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, < 3.3.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.4.0, < 3.4.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.5.0, < 3.5.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.33 | ≥ 3.3.0, < 3.3.19 | ≥ 3.4.0, < 3.4.16 | ≥ 3.5.0, < 3.5.14 | ≥ 4.0.0, < 4.0.6","eol":null,"hubHref":"/vendor/vmware/spring_boot"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://spring.io/security/cve-2026-40977","label":"spring.io/security/cve-2026-40977","hostname":"spring.io","tags":["WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40977","label":"nvd.nist.gov/vuln/detail/CVE-2026-40977","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/spring-projects/spring-boot","label":"github.com/spring-projects/spring-boot","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-04-27T23:36:06.654Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-28T14:34:36.220Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:13:22.028Z","stale":false,"partial":false}}