CVEMETERBack to radar
OFFICIAL RECORD · C/C++

CVE-2023-4039

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 4.8 · medium

GCC's-fstack-protector fails to guard dynamically-sized local variables on AArch64

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

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 1.036% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 4.8 · published by [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:41:03.363Z

CVSS 3.1 · 4.8 · published by Arm
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:56:58.269Z

CVSS 3.1 · 4.8 · published by [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:41:03.363Z

CVSS 3.1 · 4.8 · published by Ubuntu Security
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:50:12.893Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T15:55:09.885ZCISA KEV
cvssverified2026-11-19T12:41:03.363ZNVD
epssverified2026-11-19T16:04:36.838ZFIRST EPSS
patchesverified2026-11-19T12:50:12.893ZUbuntu Security
affectedverified2026-11-19T12:56:58.269ZCVE Program
lifecycleverified2026-11-19T12:56:58.269ZCVE Program

Affected versions and configuration

Arm Ltd Arm GNU Toolchain; default status: affected: All versions where option -fstack-protector is used [affected; scheme: unspecified] GNU GCC; default status: unaffected: All versions of GCC that target AArch64 when option -fstack-protector is used [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "Arm Ltd",
      "product": "Arm GNU Toolchain",
      "versions": [
        {
          "status": "affected",
          "version": "All versions where option -fstack-protector is used"
        }
      ],
      "defaultStatus": "affected"
    },
    {
      "vendor": "GNU",
      "product": "GCC",
      "versions": [
        {
          "status": "affected",
          "version": "All versions of GCC that target AArch64 when option -fstack-protector is used"
        }
      ],
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/metaredteam/external-disclosures/security/advisories/GHSA-x7ch-h5rf-w2mf",
          "tags": [
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-02T07:17:11.837Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2023-4039",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-06-03T16:04:55.934999Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-06-23T17:19:09.321Z"
      }
    },
    {
      "affected": [
        {
          "vendor": "Siemens",
          "product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
          "versions": [
            {
              "status": "affected",
              "version": "V3.1.0",
              "lessThan": "V3.1.5",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        },
        {
          "vendor": "Siemens",
          "product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
          "versions": [
            {
              "status": "affected",
              "version": "V3.1.0",
              "lessThan": "V3.1.5",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        },
        {
          "vendor": "Siemens",
          "product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
          "versions": [
            {
              "status": "affected",
              "version": "V3.1.0",
              "lessThan": "V3.1.5",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        },
        {
          "vendor": "Siemens",
          "product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
          "versions": [
            {
              "status": "affected",
              "version": "V3.1.0",
              "lessThan": "V3.1.5",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        },
        {
          "vendor": "Siemens",
          "product": "SIPLUS S7-1500 CPU 1518-4 PN/DP MFP",
          "versions": [
            {
              "status": "affected",
              "version": "V3.1.0",
              "lessThan": "V3.1.5",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        },
        {
          "vendor": "Siemens",
          "product": "RUGGEDCOM RST2428P",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThan": "V3.2",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        },
        {
          "vendor": "Siemens",
          "product": "SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThan": "V3.2",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        },
        {
          "vendor": "Siemens",
          "product": "SCALANCE XCM-/XRM-/XCH-/XRH-300 family",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThan": "V3.2",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unknown"
        }
      ],
      "x_adpType": "supplier",
      "references": [
        {
          "url": "https://cert-portal.siemens.com/productcert/html/ssa-398330.html"
        },
        {
          "url": "https://cert-portal.siemens.com/productcert/html/ssa-355557.html"
        }
      ],
      "providerMetadata": {
        "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
        "shortName": "siemens-SADP",
        "dateUpdated": "2026-10-14T21:23:13.065Z"
      }
    }
  ]
}
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "gcc-13",
    "debian": "https://tracker.debian.org/pkg/gcc-13",
    "source": "https://ubuntu.com/security/cve?package=gcc-13",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=gcc-13",
    "statuses": [
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4ubuntu1",
        "release_codename": "stonking"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "trusty"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "xenial"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "bionic"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life, was needs-triage",
        "release_codename": "lunar"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4ubuntu1",
        "release_codename": "mantic"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4ubuntu1",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4ubuntu1",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4ubuntu1",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4ubuntu1",
        "release_codename": "resolute"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "13.2.0-4ubuntu1",
        "release_codename": "questing"
      }
    ]
  }
]
Archived source JSON
NVD · nvd-cpe · full conditions
[
  {
    "nodes": [
      {
        "negate": false,
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:gnu:gcc:*:*:*:*:*:*:arm64:*",
            "vulnerable": true,
            "matchCriteriaId": "C8373A25-594D-4F3F-981B-0D02056992FC",
            "versionEndExcluding": "2023-09-12"
          }
        ],
        "operator": "OR"
      }
    ]
  }
]
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
distribution-packageUbuntu / stonkinggcc-13security13.2.0-4ubuntu1Official record
upstream-releaseupstream / upstreamgcc-13Not a distribution channel13.2.0-4Official record
distribution-packageUbuntu / manticgcc-13security13.2.0-4ubuntu1Official record
distribution-packageUbuntu / noblegcc-13security13.2.0-4ubuntu1Official record
distribution-packageUbuntu / oraculargcc-13security13.2.0-4ubuntu1Official record
distribution-packageUbuntu / pluckygcc-13security13.2.0-4ubuntu1Official record
distribution-packageUbuntu / resolutegcc-13security13.2.0-4ubuntu1Official record
distribution-packageUbuntu / questinggcc-13security13.2.0-4ubuntu1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history