CVSS 3.1
4.8 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NMedium (4.8) in gnu gcc. Disputed: the vendor or another party disputes that this is a vulnerability. EPSS 1.0% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NExplain CVE-2023-4039 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4039?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4039?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-4039 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| gnu:gcc | before 2023-09-12 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | gcc-11 | no fix listed | DEBIAN-CVE-2023-4039 |
| Debian | 12 | gcc-12 | 12.2.0-14+deb12u1 | DEBIAN-CVE-2023-4039 |
| Debian | 13, 14 | gcc-12 | 12.3.0-9 | DEBIAN-CVE-2023-4039 |
| Debian | 13, 14 | gcc-13 | 13.2.0-4 | DEBIAN-CVE-2023-4039 |
| Ubuntu | 14.04:LTS | gcc-4.7, gcc-4.8, gccgo-4.9 and 1 more | no fix listed | UBUNTU-CVE-2023-4039 |
| Ubuntu | 16.04:LTS | gcc-4.7, gcc-4.8, gcc-4.9 and 19 more | no fix listed | UBUNTU-CVE-2023-4039 |
| Ubuntu | 18.04:LTS | gcc-5, gcc-6, gcc-7 and 12 more | no fix listed | UBUNTU-CVE-2023-4039 |
| Ubuntu | 20.04:LTS | gcc-7, gcc-8, gcc-opt and 6 more | no fix listed | UBUNTU-CVE-2023-4039 |
| Ubuntu | 22.04:LTS | gcc-10 | 10.5.0-1ubuntu1~22.04.2 | UBUNTU-CVE-2023-4039 USN-7700-1 |
| Ubuntu | 22.04:LTS | gcc-11 | 11.4.0-1ubuntu1~22.04.2 | UBUNTU-CVE-2023-4039 USN-7700-1 |
| Ubuntu | 22.04:LTS | gcc-12 | 12.3.0-1ubuntu1~22.04.2 | UBUNTU-CVE-2023-4039 USN-7700-1 |
| Ubuntu | 22.04:LTS | gcc-9, gcc-opt, gcc-9-cross and 8 more | no fix listed | UBUNTU-CVE-2023-4039 |
| Ubuntu | 24.04:LTS | gcc-10 | 10.5.0-4ubuntu2 | UBUNTU-CVE-2023-4039 |
| Ubuntu | 24.04:LTS | gcc-10-cross | 23ubuntu2 | UBUNTU-CVE-2023-4039 |
| Ubuntu | 24.04:LTS | gcc-11 | 11.4.0-4ubuntu1 | UBUNTU-CVE-2023-4039 |
| Ubuntu | 24.04:LTS | gcc-11-cross | 21ubuntu2 | UBUNTU-CVE-2023-4039 |
| 8 more for Ubuntu in the JSON and on Ubuntu's page. | ||||
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 8 more | gcc12, cross-nvptx-gcc12 | 12.3.0+git1204-150000.1.16.1 | SUSE-SU-2023:3661-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 more | gcc13, cross-nvptx-gcc13 | 13.2.1+git7813-150000.1.6.1 | SUSE-SU-2023:4458-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Module for Development Tools 15 SP4 | gcc12, cross-nvptx-gcc12, gcc12-testresults | 12.3.0+git1204-150000.1.16.1 | SUSE-SU-2023:3661-1 |
| SUSE | Linux Enterprise Installer Updates 15 SP1, Linux Enterprise Installer Updates 15 SP2, Linux Enterprise Installer Updates 15 SP3 and 8 more | gcc13 | 13.2.1+git7813-150000.1.6.1 | SUSE-SU-2023:4458-1 |
| SUSE | Linux Enterprise Installer Updates 15 SP1, Linux Enterprise Installer Updates 15 SP2, Linux Enterprise Installer Updates 15 SP3 and 12 more | gcc12 | 12.3.0+git1204-150000.1.16.1 | SUSE-SU-2023:3661-1 |
| SUSE | Linux Enterprise Installer Updates 15 SP2, Linux Enterprise Installer Updates 15 SP3, Linux Enterprise Installer Updates 15 SP4 and 14 more | gcc13 | 13.2.1+git7813-150000.1.3.3 | SUSE-SU-2023:4162-1 |
| SUSE | Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 | gcc13 | 13.2.1+git7813-150000.1.6.1 | SUSE-SU-2024:0045-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP4 | gcc7 | 7.5.0+r278197-150000.4.35.1 | SUSE-SU-2023:3686-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5 | cross-nvptx-gcc13 | 13.2.1+git7813-150000.1.3.2 | SUSE-SU-2023:4162-1 |
| SUSE | Linux Enterprise Module for Toolchain 12 | gcc12, cross-nvptx-gcc12 | 12.3.0+git1204-1.13.1 | SUSE-SU-2023:3640-1 |
| SUSE | Linux Enterprise Module for Toolchain 12 | gcc13, cross-nvptx-gcc13 | 13.2.1+git7813-1.10.1 | SUSE-SU-2023:4480-1 |
| SUSE | Linux Enterprise Module for Toolchain 12 | gcc7, cross-nvptx-gcc7 | 7.5.0+r278197-13.1 | SUSE-SU-2023:3662-1 |
| 4 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.4 | gcc12, cross-nvptx-gcc12, gcc12-testresults | 12.3.0+git1204-150000.1.16.1 | SUSE-SU-2023:3661-1 |
| openSUSE | Leap 15.4, Leap 15.5 | cross-nvptx-gcc13 | 13.2.1+git7813-150000.1.3.2 | SUSE-SU-2023:4162-1 |
| openSUSE | Leap 15.4, Leap 15.5 | gcc13, cross-nvptx-gcc13 | 13.2.1+git7813-150000.1.6.1 | SUSE-SU-2023:4458-1 |
| openSUSE | Leap 15.4, Leap 15.5, Leap Micro 5.3 and 1 more | gcc13 | 13.2.1+git7813-150000.1.3.3 | SUSE-SU-2023:4162-1 |
| openSUSE | Leap Micro 5.3, Leap Micro 5.4 | gcc12 | 12.3.0+git1204-150000.1.16.1 | SUSE-SU-2023:3661-1 |
| openSUSE | Leap Micro 5.3, Leap Micro 5.4 | gcc13 | 13.2.1+git7813-150000.1.6.1 | SUSE-SU-2023:4458-1 |
| openSUSE | Tumbleweed | gcc12 | 12.3.0+git1204-2.1 | openSUSE-SU-2024:13233-1 |
| openSUSE | Tumbleweed | gcc13 | 13.2.1+git7813-1.1 | openSUSE-SU-2024:13234-1 |
| openSUSE | Tumbleweed | gcc7 | 7.5.0+r278197-15.1 | openSUSE-SU-2024:13235-1 |
| Alpine | v3.19, v3.20, v3.21 and 3 more | gcc | 13.2.1_git20231014-r0 | ALPINE-CVE-2023-4039 |
| Azure Linux | 2 | gcc | 11.2.0-6 | AZL-28769 |
| Azure Linux | 3 | gcc | 13.2.0-7 | AZL-34695 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.
According to the GCC security policy, both upstream and Red Hat Product Security do not consider this to be a vulnerability. Please refer to the following URLs for more information:
* https://gcc.gnu.org/git/?p=gcc.git;a=blob_plain;f=SECURITY.txt
* https://gcc.gnu.org/pipermail/gcc-patches/2023-October/634066.html
* https://inbox.sourceware.org/gcc-patches/46cfa37b-56eb-344d-0745-e0d35393392d@gotplt.org/
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Cryostat 2 | gcc | Not affected | |
| Migration Toolkit for Containers | gcc | Not affected | |
| Red Hat 3scale API Management Platform 2 | gcc | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | gcc | Fix deferred | |
| Red Hat Enterprise Linux 6 | compat-gcc-295 | Out of support scope | |
| Red Hat Enterprise Linux 6 | compat-gcc-296 | Out of support scope | |
| Red Hat Enterprise Linux 6 | compat-gcc-32 | Out of support scope | |
| Red Hat Enterprise Linux 6 | compat-gcc-34 | Out of support scope | |
| Red Hat Enterprise Linux 6 | gcc | Out of support scope | |
| Red Hat Enterprise Linux 7 | compat-gcc-32 | Out of support scope | |
| Red Hat Enterprise Linux 7 | compat-gcc-34 | Out of support scope | |
| Red Hat Enterprise Linux 7 | compat-gcc-44 | Out of support scope | |
| Red Hat Enterprise Linux 7 | gcc | Out of support scope | |
| Red Hat Enterprise Linux 8 | gcc | Not affected | |
| Red Hat Enterprise Linux 8 | gcc-toolset-11-gcc | Not affected | |
| Red Hat Enterprise Linux 8 | gcc-toolset-12-gcc | Not affected | |
| Red Hat Enterprise Linux 8 | gcc-toolset-13-gcc | Not affected | |
| Red Hat Enterprise Linux 9 | gcc | Not affected | |
| Red Hat Enterprise Linux 9 | gcc-toolset-12-gcc | Not affected | |
| Red Hat Enterprise Linux 9 | gcc-toolset-13-gcc | Not affected | |
| 6 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-4039.
| Advisory | Title | Published | Sectors | Affected | Fixed |
|---|---|---|---|---|---|
| ICSA-25-226-07 | Siemens Third-Party Components in SINEC OS | 2025-08-12 | Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and Facilities | RUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family, SCALANCE XCM-/XRM-/XCH-/XRH-300 family | none listed |
| ICSA-23-348-10 | Siemens SIMATIC S7-1500 | 2023-12-12 | Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and Facilities | 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) and 2 more | none listed |
From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-693 (17).