CVE-2023-4039
A public proof of concept exists; no exploitation attested.
- Published2023-09-13
- Fixed in2023-09-12
- WeaknessCWE-693
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
**DISPUTED**A failure in the -fstack-protector feature in GCC-based toolchains that target AArch64 allows an attacker to exploit an existing buffer overflow in dynamically-sized local variables in your application without this being detected. This stack-protector failure only applies to C99-style dynamically-sized local variables or those created using alloca(). The stack-protector operates as intended for statically-sized local variables. The default behavior when the stack-protector detects an overflow is to terminate your application, resulting in controlled loss of availability. An attacker who can exploit a buffer overflow without triggering the stack-protector might be able to change program flow control to cause an uncontrolled loss of availability or to 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.
Timeline
dates in UTC- 2023-09-1309:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2023.x | < 2023-09-12 | 2023-09-12 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA2 products
As Arm, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Arm Ltd Arm GNU Toolchainother versions: affectedAffected
- = All versions where option -fstack-protector is usedno fix stated
- GNU GCCother versions: not affectedAffected
- = All versions of GCC that target AArch64 when option -fstack-protector is usedno fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-06-13
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- cross-nvptx-gcc13SUSE:Linux Enterprise Module for Development Tools 15 SP5all versions · fixed in 13.2.1+git7813-150000.1.3.2
- cross-nvptx-gcc13SUSE:Linux Enterprise Module for Development Tools 15 SP4all versions · fixed in 13.2.1+git7813-150000.1.3.2
- cross-nvptx-gcc13openSUSE:Leap 15.5all versions · fixed in 13.2.1+git7813-150000.1.3.2
- cross-nvptx-gcc13openSUSE:Leap 15.4all versions · fixed in 13.2.1+git7813-150000.1.3.2
- gccWolfiall versions · fixed in 13.2.0-r3and 12 other packages
- gccopenEuler:24.03-LTSall versions · fixed in 12.3.1-38.oe2403
- gccopenEuler:22.03-LTS-SP2all versions · fixed in 10.3.1-38.oe2203sp2
- gccopenEuler:22.03-LTS-SP1all versions · fixed in 10.3.1-25.oe2203sp1
143 more package ranges on OSV.dev
Vendor advisories
gcc: -fstack-protector fails to guard dynamic stack allocations on ARM64
gcc.src as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · compat-gcc-34-c++ as a component of Red Hat Enterprise Linux 6 · compat-gcc-34-g77 as a component of Red Hat Enterprise Linux 6 · +85 more
Siemens Third-Party Components in SINEC OS
RUGGEDCOM RST2428P (6GK6242-6PA00) · SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family · SCALANCE XCM-/XRM-/XCH-/XRH-300 family
SSA-355557: Multiple Vulnerabilities in Third-Party Components in SINEC OS before V3.2
RUGGEDCOM RST2428P (6GK6242-6PA00) · SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family · SCALANCE XCM-/XRM-/XCH-/XRH-300 family
Siemens SIMATIC S7-1500
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more
SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more
Fix
- Update Gnu gcc to 2023-09-12
- Vendor fix Siemens ProductCERT SSA-355557 · 2 productsUpdate to V3.2 or later version
- Vendor fix Siemens ProductCERT SSA-355557 · 1 productSee Section Additional Information.
- Vendor fix CISA ICSA-25-226-07 · 2 productsUpdate to V3.2 or later version
- Vendor fix CISA ICSA-25-226-07 · 1 productSee Section Additional Information.
- Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
- Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
Advisories and patches
- developer.arm.comPatch
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-06-03
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- AZL-28769same flawAzure Linux · MIT
- AZL-34695same flawAzure Linux · MIT
- CGA-3qhv-mc6x-6wf6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-42r5-f92r-4qj5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6p8q-6g77-cqc7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7742-r4v9-gw6qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-95r4-hvvh-x6qrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-96pr-qw99-v8h6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9fp5-8r38-hf7jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c3r8-h852-9cm2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f5x5-jjxj-m2frsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fjg2-f3rr-432xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gv97-vgrg-2fg2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-h8h9-7qjr-gm38same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hg9x-wx5h-8pphsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hgqg-c6f8-v5c8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hh6c-mh9r-5pqqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hq2f-q5pc-wr4csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hv87-cf7g-hch7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hw72-7gm8-pj37same flawChainguard · CC-BY-NC-ND-4.0
- CGA-jqf5-2g6v-m8jvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p32q-4chq-x28fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-pgvx-qjwq-25qjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-phjv-w5jh-w7fcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-pq39-7ccj-wv5psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-pw86-fhjj-p62xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qp75-5rvw-vmvmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qrrw-xcjf-9w79same flawChainguard · CC-BY-NC-ND-4.0
- CGA-rph3-3pmg-449xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-x9mf-4fxg-6g35same flawChainguard · CC-BY-NC-ND-4.0
- CGA-xfqf-q2hm-g3r5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-xmcg-5j8g-m3q7same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2023-53931same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- OESA-2023-1735advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1042advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:13233-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:13234-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:13235-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- SUSE-SU-2023:3640-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3661-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3662-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3686-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:4162-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:4458-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:4480-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:0045-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-7700-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Published
- 2023-09-13
- Last Modified
- 2026-10-14
- NVD status
- Modified
Frequently asked questions
What is CVE-2023-4039?
Is CVE-2023-4039 actively exploited?
What is the CVSS score for CVE-2023-4039?
Running gcc? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0