
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-8736 is a buffer overflow vulnerability in GNU cflow up to version 1.8, affecting the yylex function in the c.c source file within the Lexer component. The flaw allows a local attacker with low privileges to trigger improper memory operations by manipulating input processed by the lexer. It was published on August 8, 2025, with the exploit disclosed publicly. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 1.9 (Low), though it is classified as critical by the reporting source VulDB (Red Hat Advisory, VulDB).
The root cause is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-120 (Buffer Copy without Checking Size of Input — Classic Buffer Overflow). The vulnerable yylex function in c.c fails to properly validate the size of input before copying it into a buffer during lexical analysis of C source files. Exploitation requires local access and low-privilege credentials; an attacker would supply a specially crafted C source file to cflow, causing the lexer to overflow a buffer during tokenization. A proof-of-concept exploit has been publicly disclosed (VulDB, GNU Bug Report).
Successful exploitation results in limited but tangible impacts across confidentiality, integrity, and availability — each rated LOW in the CVSS v3.1 scoring. An attacker could potentially read sensitive memory contents, corrupt data, or cause the cflow process to crash. Because cflow is a static analysis tool typically used in development environments rather than production servers, the blast radius is generally constrained to the local system and user context, with minimal risk of lateral movement or broad data exposure (Red Hat Advisory, VulDB).
A proof-of-concept exploit has been publicly disclosed and is referenced in the VulDB entry and a linked Google Drive file. The EPSS score is approximately 0.013% (0.000130), indicating a very low probability of widespread exploitation in the near term. There is no evidence of in-the-wild exploitation, no known threat actor attribution, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The CVSS v4.0 exploit maturity is rated PROOF_OF_CONCEPT (VulDB, ENISA EUVD).
yylex function during lexical analysis — for example, by including an abnormally long token or identifier that exceeds the expected buffer size in c.c.cflow <malicious_file.c> as a local user with at least low-privilege access to the system.yylex function processes the crafted input without proper bounds checking, causing a buffer overflow that may result in memory corruption, a crash (denial of service), or potentially controlled memory writes depending on the system's memory layout and protections.cflow process, particularly when processing externally supplied C source files./var/log/syslog or journalctl) showing cflow process termination with signal 11 (SIGSEGV) or signal 6 (SIGABRT)..c files submitted to cflow in build pipelines or analysis directories.core or core.<pid>) generated in the working directory of the cflow invocation, indicating abnormal process termination.No official patch from GNU has been confirmed as of the disclosure date; users should monitor the GNU cflow mailing list for updates. As a workaround, restrict execution of cflow to trusted input files only and avoid processing untrusted or externally supplied C source files. Applying OS-level mitigations such as enabling stack canaries, ASLR, and non-executable stack (NX bit) can reduce exploitability. Organizations using cflow in CI/CD pipelines should sandbox its execution environment (Red Hat Advisory, VulDB).
Red Hat has published a CVE advisory page tracking the vulnerability, indicating awareness among major Linux distributors. The vulnerability was noted by automated threat intelligence aggregators including CIRCL Vulnerability Lookup and INCIBE-CERT, but no significant researcher commentary or media coverage has been identified beyond routine CVE tracking (Red Hat Advisory, ENISA EUVD).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."