Moderate Security Vulnerability in GCC Packages: Untrusted Code Execution
Summary
ALSA-2025:1301: Moderate: gcc security update. Affects cpp versions < 8.5.0-23.el8_10.alma.1. Fixed in 8.5.0-23.el8_10.alma.1. 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) packages are essential tools that provide compilers for various programming languages, including C, C++, Java, Fortran, Objective C, and Ada 95. These packages are widely used in software development for compiling source code into executable programs. The recent vulnerability identified affects the handling of HTML content within the jQuery library, which is often utilized in web applications that may leverage GCC for building their backend or frontend components.
Vulnerability Detail
The vulnerability arises from untrusted code execution via the <option> tag in HTML passed to DOM manipulation methods in jQuery (CVE-2020-11023). This flaw can potentially allow an attacker to execute arbitrary code in the context of the user's browser, leading to unauthorized actions, data theft, or other malicious activities. The issue is particularly critical for applications that dynamically generate HTML content based on user input or external data sources.
How To Fix
Minimum fixed version
8.5.0-23.el8_10.alma.1
This is the first release that contains the fix.
sudo dnf update cpp
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, developers should sanitize any HTML content that is passed to DOM manipulation methods to prevent untrusted code execution. This can be achieved by using libraries that escape or validate HTML input before processing it.
Conclusion
In summary, the moderate security vulnerability in GCC packages poses a significant risk due to untrusted code execution via jQuery. It is crucial for developers to update their packages to the latest patched versions and implement proper sanitization of HTML inputs to protect their applications from potential attacks.
See every vulnerability recorded for cpp →
FAQ
The vulnerability can lead to untrusted code execution, allowing attackers to execute arbitrary code in the user's browser.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any installation.
If immediate updates are not possible, ensure to sanitize HTML inputs and avoid using untrusted content in your applications.
Yes, versions prior to 8.5.0-23.el8_10.alma.1 are vulnerable to this issue.
Vulert monitors and alerts for open-source vulnerabilities in software using just a manifest file like package-lock.json, providing real-time insights into potential threats.
Related vulnerabilities
Recent vulnerabilities recorded for cpp.