{"id":"CVE-2023-4039","published":"2023-09-13T08:05:10Z","modified":"2026-10-14T21:23:13Z","title":"GCC's-fstack-protector fails to guard dynamically-sized local variables on AArch64","vendor":"Arm","product":"Arm GNU Toolchain","tier":"tail","description":{"text":"**DISPUTED**A failure in the -fstack-protector feature in GCC-based toolchains \nthat target AArch64 allows an attacker to exploit an existing buffer \noverflow in dynamically-sized local variables in your application \nwithout this being detected. This stack-protector failure only applies \nto C99-style dynamically-sized local variables or those created using \nalloca(). The stack-protector operates as intended for statically-sized \nlocal variables.\n\nThe default behavior when the stack-protector \ndetects an overflow is to terminate your application, resulting in \ncontrolled loss of availability. An attacker who can exploit a buffer \noverflow without triggering the stack-protector might be able to change \nprogram flow control to cause an uncontrolled loss of availability or to\n go further and affect confidentiality or integrity. NOTE: The GCC project argues that this is a missed hardening bug and not a vulnerability by itself.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01036,"percentile":0.64702,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64","tags":[]},{"url":"https://github.com/metaredteam/external-disclosures/security/advisories/GHSA-x7ch-h5rf-w2mf","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":12.94},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"arm","affectedVersions":[{"vendor":"Arm Ltd","product":"Arm GNU Toolchain","versions":["All versions where option -fstack-protector is used"]},{"vendor":"GNU","product":"GCC","versions":["All versions of GCC that target AArch64 when option -fstack-protector is used"]}],"solutions":{"items":["Recompile vulnerable code using an updated toolchain."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-100","name":"Overflow Buffers"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-03T16:04:55.934999Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-53931","exploited":false,"provenance":"source"}}