Security Resilience

CVE-2023-4039

Gnu Gcc ≤ 2023-09-12

Public PoC
Published
13 September 2023
Modified
14 October 2026
Patch / advisory
CVSS Score v3.1 4.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS Score 0.010 65th percentile
Risk Priority 41 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-4039 is a medium-severity Protection Mechanism Failure (CWE-693) vulnerability in Gnu Gcc. Its CVSS base score is 4.8 (Medium).

Operationally, ranked in the top 35% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

**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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-1858Same vendor: Gnu
CVE-2025-47229Same vendor: Gnu
CVE-2023-36273Same vendor: Gnu
CVE-2024-30202Same vendor: Gnu
CVE-2023-39128Same vendor: Gnu
CVE-2026-0861Same vendor: Gnu
CVE-2026-41992Same vendor: Gnu
CVE-2023-25586Same vendor: Gnu
CVE-2026-5435Same vendor: Gnu
CVE-2025-0840Same vendor: Gnu

Affected Assets

gnu
gcc
≤ 2023-09-12

Mitigating Controls

Likely Mitigating Controls

Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-693

Implements a reliable, tamperproof protection mechanism whose completeness can be assured.

addresses: CWE-693

Procedures for training on protection mechanisms reduce the chance of protection mechanism failures being present or exploitable.

addresses: CWE-693

Documented procedures to implement assessment, authorization, and monitoring controls prevent these protection mechanisms from failing due to undefined processes.

addresses: CWE-693

Direct evaluation of whether controls produce desired security outcomes detects protection mechanism failures and enables remediation.

addresses: CWE-693

Requires assessment that protection mechanisms are correctly implemented and producing intended security outcomes.

addresses: CWE-693

The POA&M process ensures identified weaknesses in protection mechanisms are documented and scheduled for remediation, reducing the duration they remain exploitable.

addresses: CWE-693

Ongoing control assessments and analysis of monitoring data enable timely detection and response when protection mechanisms fail.

addresses: CWE-693

Impact analysis identifies changes that could weaken or disable existing protection mechanisms.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

A.8.20 implements network-layer protection mechanisms (firewalls, network segmentation, transit encryption, connection filtering, device hardening) that, when well implemented, block exploitation of attacks relying on missing or insufficient network protection; but CWE-693 is a Pillar weakness covering all protection mechanism failures across the product, and the vast majority—application-layer input validation, output encoding, authentication, authorization, memory protection, cryptographic storage—are outside A.8.20's scope.

blocks

A.8.21 mandates authentication, encryption, network connection controls and monitoring for network services, which blocks exploitation of the network-service-related slice of CWE-693; the remainder is bounded and nameable — protection mechanism failures in application logic, sandboxing, signing, virtualization, and other non-network-service domains are outside the clause's scope.

removes

A.8.24 mandates proper cryptographic protections and therefore removes existing CWE-693 instances where the failed or missing protection mechanism is cryptographic, but it does not remove the many non-cryptographic protection-mechanism failures covered by CWE-693, so it addresses only a minority of the class.

prevents

A.8.28's secure coding principles, threat modelling, coding standards, and prohibition of insecure design techniques address a meaningful slice of protection-mechanism failures (missing, insufficient, ignored), but CWE-693 is a Class-level weakness spanning architectural, implementation, and operational protection failures that the clause does not reach, and the practice is fallible.

prevents

A.8.30 carries its effect through the secure-design, coding and testing practices its contract requires of the supplier (8.25–8.29), so it prevents some protection-mechanism failures in outsourced code the way those practices do; CWE-693 is far broader than the format-string case (architecture, runtime, ignored-mechanism failures), so the remainder is large and not cleanly bounded.

removes

A.8.5 mandates authentication mechanisms (MFA, strong authentication, secure log-on procedures), so applied to a system that previously lacked them it removes the authentication-related instances of CWE-693; but CWE-693 is a pillar covering protection mechanism failures across encryption, access control, sandboxing, input validation and many other domains, of which authentication is only one slice, so the remainder is the broad majority of the class.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-693, a pillar-level weakness. Rules are authored against its narrower children: CWE-654, CWE-757.

References