Moderate Security Vulnerability in GCC: Untrusted Code Execution via HTML Manipulation
Summary
RLSA-2025:1346: Moderate: gcc security update. Affects gcc versions < 0:11.5.0-5.el9_5. Fixed in 0:11.5.0-5.el9_5. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The GCC (GNU Compiler Collection) is a suite of compilers for various programming languages including C, C++, Java, Fortran, Objective C, and Ada 95. It is widely used in software development for compiling source code into executable programs. The recent security update addresses a vulnerability that allows untrusted code execution through the manipulation of HTML elements, specifically the <option> tag, which can lead to potential security risks in applications that utilize these compilers.
Vulnerability Detail
The vulnerability identified as CVE-2020-11023 allows for untrusted code execution via the <option> tag in HTML when passed to DOM manipulation methods. This can lead to malicious code being executed in the context of the user's browser, potentially compromising user data and application integrity. The issue arises from improper handling of user input in web applications that utilize the GCC for compiling code, making it critical for developers to address this vulnerability promptly.
How To Fix
Minimum fixed version
0:11.5.0-5.el9_5
This is the first release that contains the fix.
sudo dnf update gcc
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, developers can sanitize user inputs to prevent the execution of untrusted code. This can be done by validating and escaping any HTML content before it is processed by DOM manipulation methods. For example, using libraries like DOMPurify can help ensure that only safe HTML is rendered.
Conclusion
The GCC security update addresses a significant vulnerability that can lead to untrusted code execution through HTML manipulation. It is crucial for developers to update their GCC packages to the latest version and implement necessary security measures to protect their applications from potential exploits.
See every vulnerability recorded for gcc →
FAQ
The impact includes potential untrusted code execution, which can lead to data breaches and compromised application security.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software by analyzing your manifest file.
If an immediate update is not possible, implement input validation and sanitization to mitigate the risk of code execution.
Yes, versions prior to 0:11.5.0-5.el9_5 are affected by this vulnerability.
Detailed information can be found on the CVE page for CVE-2020-11023 and through security advisories from the Rocky Enterprise Software Foundation.
Related vulnerabilities
Recent vulnerabilities recorded for gcc.