cve.bz

CVE-2018-12886 gnu gcc

8.1 highExploit referenceEPSS 2.7%

High (8.1) in gnu gcc. EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU Compiler Collection (GCC) 4.1 through 8 (under certain circumstances) generate instruction sequences when targeting ARM targets that spill the address of the stack protector guard, which allows an attacker to bypass the protection of -fstack-protector, -fstack-protector-all, -fstack-protector-strong, and -fstack-protector-explicit against stack overflow by controlling what the stack canary is compared against.

Severity

CVSS 3.0

8.1 high
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.7% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-209 Generation of Error Message Containing Sensitive Information
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-12886 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-12886?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-12886?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-2018-12886 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.

Badge for a README or a site

CVE-2018-12886

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-12886](https://cve.bz/cve/badge/CVE-2018-12886.svg)](https://cve.bz/cve/CVE-2018-12886)

HTML:

<a href="https://cve.bz/cve/CVE-2018-12886"><img src="https://cve.bz/cve/badge/CVE-2018-12886.svg" alt="CVE-2018-12886"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:gccfrom 4.1 through 8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu14.04:LTSgcc-4.8no fix listedUBUNTU-CVE-2018-12886
Ubuntu16.04:LTSgcc-4.8, gcc-4.9, gcc-snapshot and 1 moreno fix listedUBUNTU-CVE-2018-12886
Ubuntu18.04:LTSgcc-6, gcc-7, gcc-8 and 3 moreno fix listedUBUNTU-CVE-2018-12886
Ubuntu20.04:LTSgcc-7, gcc-8, gcc-arm-none-eabino fix listedUBUNTU-CVE-2018-12886
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moregcc-snapshot, gcc-arm-none-eabino fix listedUBUNTU-CVE-2018-12886

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 4gccNot affected
Red Hat Enterprise Linux 4gcc4Not affected
Red Hat Enterprise Linux 5gccNot affected
Red Hat Enterprise Linux 5gcc44Not affected
Red Hat Enterprise Linux 6gccNot affected
Red Hat Enterprise Linux 7gccNot affected
Red Hat Enterprise Linux 8gccNot affected

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-2018-12886.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC 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 morenone listed
ICSA-23-080-07Siemens SCALANCE Third-Party2023-03-14MultipleSCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM766-1 (EU) (6GK5766-1GE00-7DA0), SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0) and 6 morenone 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.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-54 Query System for Information Likelihood: High · Severity: Low
  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low
  • CAPEC-463 Padding Oracle Crypto Attack Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON