CVE-2025-61732: CWE-94: Improper Control of Generation of Code ('Code Injection') in Go toolchain cmd/cgo
CVE-2025-61732 is a high-severity vulnerability in the Go toolchain's cmd/cgo component, where a parsing discrepancy between Go and C/C++ comments allows code injection into the resulting cgo binary. This vulnerability affects Red Hat OpenShift Container Platform 4.19 and related products. Red Hat has issued security advisories and updates, including OpenShift Container Platform 4.19.27, to address this issue. Users are advised to upgrade to the fixed versions as per Red Hat's guidance.
AI Analysis
Technical Summary
CVE-2025-61732 is a code injection vulnerability (CWE-94) in the Go toolchain's cmd/cgo component caused by inconsistent parsing of comments between Go and C/C++. This discrepancy enables malicious code to be smuggled into the compiled cgo binary, potentially leading to complete compromise of confidentiality, integrity, and availability. The vulnerability has a CVSS 3.1 base score of 8.6 (high severity) with local attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and high impact on confidentiality, integrity, and availability. Red Hat OpenShift Container Platform 4.19 and related container images are affected. Red Hat has released OpenShift Container Platform 4.19.27 with security updates to fix this vulnerability. The vendor advisory RHSA-2026:5878 provides detailed upgrade instructions and image digests for affected architectures.
Potential Impact
Successful exploitation of this vulnerability allows an attacker to inject arbitrary code into the cgo binary, resulting in full compromise of confidentiality, integrity, and availability of the affected system. The vulnerability requires local access with user interaction but no privileges, and it affects the Red Hat OpenShift Container Platform 4.19 and associated container images. The impact is rated high with a CVSS score of 8.6.
Mitigation Recommendations
Red Hat has released security updates in OpenShift Container Platform 4.19.27 to address CVE-2025-61732. Users should upgrade to this version or later as soon as it is available in their release channel. Detailed upgrade instructions are provided by Red Hat at https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html-single/updating_clusters/index#updating-cluster-cli. No alternative mitigations are indicated in the vendor advisory; applying the official update is the recommended remediation.
CVE-2025-61732: CWE-94: Improper Control of Generation of Code ('Code Injection') in Go toolchain cmd/cgo
Description
CVE-2025-61732 is a high-severity vulnerability in the Go toolchain's cmd/cgo component, where a parsing discrepancy between Go and C/C++ comments allows code injection into the resulting cgo binary. This vulnerability affects Red Hat OpenShift Container Platform 4.19 and related products. Red Hat has issued security advisories and updates, including OpenShift Container Platform 4.19.27, to address this issue. Users are advised to upgrade to the fixed versions as per Red Hat's guidance.
CVSS v3.1
Score 8.6high
Affected software
pkg:rpm/redhat/openshift-container-platformRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-61732 is a code injection vulnerability (CWE-94) in the Go toolchain's cmd/cgo component caused by inconsistent parsing of comments between Go and C/C++. This discrepancy enables malicious code to be smuggled into the compiled cgo binary, potentially leading to complete compromise of confidentiality, integrity, and availability. The vulnerability has a CVSS 3.1 base score of 8.6 (high severity) with local attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and high impact on confidentiality, integrity, and availability. Red Hat OpenShift Container Platform 4.19 and related container images are affected. Red Hat has released OpenShift Container Platform 4.19.27 with security updates to fix this vulnerability. The vendor advisory RHSA-2026:5878 provides detailed upgrade instructions and image digests for affected architectures.
Potential Impact
Successful exploitation of this vulnerability allows an attacker to inject arbitrary code into the cgo binary, resulting in full compromise of confidentiality, integrity, and availability of the affected system. The vulnerability requires local access with user interaction but no privileges, and it affects the Red Hat OpenShift Container Platform 4.19 and associated container images. The impact is rated high with a CVSS score of 8.6.
Mitigation Recommendations
Red Hat has released security updates in OpenShift Container Platform 4.19.27 to address CVE-2025-61732. Users should upgrade to this version or later as soon as it is available in their release channel. Detailed upgrade instructions are provided by Red Hat at https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html-single/updating_clusters/index#updating-cluster-cli. No alternative mitigations are indicated in the vendor advisory; applying the official update is the recommended remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:5878
- Cve Count
- 1
- Additional Cves
- []
- Cvss Version
- null
Threat ID: 6a55ff9c68715ace432f67b4
Added to database: 07/14/2026, 09:21:32 UTC
Last enriched: 07/30/2026, 22:26:50 UTC
Last updated: 07/31/2026, 19:22:56 UTC
Views: 34
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.