{"id":"GHSA-pm3m-32r3-7mfh","aliases":["GO-2024-2529"],"status":"published","title":"Etcd embed auto compaction retention negative value causing a compaction loop or a crash","description":"### Impact\nData Validation\n\n### Detail\nThe parseCompactionRetention function in embed/etcd.go allows the retention variable value to be negative and causes the node to execute the history compaction in a loop, taking more CPU than usual and spamming logs.\n\n### References\nFind out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md#product-security-committee-psc)","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2024-02-03T00:03:07Z","modified":"2026-09-10T03:50:06Z","fixes":[{"ecosystem":"Go","package":"go.etcd.io/etcd/v3","fixed_in":["3.4.10","3.3.23"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"go.etcd.io/etcd/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0-rc.0"},{"last_affected":"3.4.9"},{"fixed":"3.4.10"}]}]},{"source":"ghsa","ecosystem":"Go","package":"go.etcd.io/etcd/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.23"}]}]},{"source":"osv","ecosystem":"Go","package":"go.etcd.io/etcd/v3","ranges":[{"type":"SEMVER","events":[{"introduced":"3.4.0-rc.0"},{"fixed":"3.4.10"}]}]},{"source":"osv","ecosystem":"Go","package":"go.etcd.io/etcd/v3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.3.23"}]}]},{"source":"osv","ecosystem":"Go","package":"go.etcd.io/etcd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"Go","package":"go.etcd.io/etcd/v3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"references":[{"url":"https://github.com/etcd-io/etcd/security/advisories/GHSA-pm3m-32r3-7mfh","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-pm3m-32r3-7mfh"},{"url":"https://github.com/etcd-io/etcd","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-pm3m-32r3-7mfh","title":"Etcd embed auto compaction retention negative value causing a compaction loop or a crash","description":"### Impact\nData Validation\n\n### Detail\nThe parseCompactionRetention function in embed/etcd.go allows the retention variable value to be negative and causes the node to execute the history compaction in a loop, taking more CPU than usual and spamming logs.\n\n### References\nFind out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md#product-security-committee-psc)","status":"published","published":"2024-02-03T00:03:07Z","modified":"2024-07-08T20:02:40Z","updated_at":"2026-11-02T14:37:56.530214Z"}],"osv":[{"id":"GHSA-pm3m-32r3-7mfh","title":"Etcd embed auto compaction retention negative value causing a compaction loop or a crash","description":"### Impact\nData Validation\n\n### Detail\nThe parseCompactionRetention function in embed/etcd.go allows the retention variable value to be negative and causes the node to execute the history compaction in a loop, taking more CPU than usual and spamming logs.\n\n### References\nFind out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md#product-security-committee-psc)","status":"published","published":"2024-02-03T00:03:07Z","modified":"2026-09-10T03:50:06.341542957Z","updated_at":"2026-11-02T15:46:53.244788Z"},{"id":"GO-2024-2529","title":"Etcd embed auto compaction retention negative value causing a compaction loop or a crash in go.etcd.io/etcd","description":"Etcd embed auto compaction retention negative value causing a compaction loop or a crash in go.etcd.io/etcd","status":"published","published":"2024-06-28T15:28:53Z","modified":"2026-02-04T04:00:13.353392Z","updated_at":"2026-11-02T15:47:01.185262Z"}]}}
