BreachSpiderVerified, not vibes

CVE-2025-4674 in Golang Go

High 8.6

The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present in repositories. This can happen when a repository was fetched via one VCS (e.g. Git), but contains metadata for another VCS (e.g. Mercurial). Modules which ar...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.6
EPSS0.3%
EPSS percentile18th
FixUnknown

Requires local access, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Golang Go < 1.23.11 ≥ 1.24.0, < 1.24.5

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present in repositories. This can happen when a repository was fetched via one VCS (e.g. Git), but contains metadata for another VCS (e.g. Mercurial). Modules which are retrieved using the go command line, i.e. via "go get", are not affected.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-4674
BreachSpider IDBS-2025-GLOBAL-264437-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Published2025-07-29
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-73: CWE-73

Related attack patterns (CAPEC)

CAPEC-13 Subverting Environment Variable Values via CWE-73

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-73

CAPEC-72 URL Encoding via CWE-73

CAPEC-76 Manipulating Web Input to File System Calls via CWE-73

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-73

Show all 8

CAPEC-79 Using Slashes in Alternate Encoding via CWE-73

CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic via CWE-73

CAPEC-267 Leverage Alternate Encoding via CWE-73

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2025-4674 affects the go command when operating in untrusted VCS repositories, potentially executing unexpected commands due to mixed VCS metadata.

The vulnerability arises when a repository fetched via one VCS (e.g., Git) contains metadata for another VCS (e.g., Mercurial). This can lead to the execution of unintended commands if the go command processes this metadata.

Questions

What is CVE-2025-4674?

CVE-2025-4674 affects the go command when operating in untrusted VCS repositories, potentially executing unexpected commands due to mixed VCS metadata.

What is the CVSS score for CVE-2025-4674?

CVE-2025-4674 has CVSS 8.6 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. EPSS: 0.3%.

Is CVE-2025-4674 actively exploited?

No confirmed active exploitation of CVE-2025-4674 as of 2026-09-25.

How do I remediate CVE-2025-4674?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2025-4674?

CVE-2025-4674 affects Golang Go.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Golang","product":"Go","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.