Advisory
UBUNTU-CVE-2025-4674
Also known as: CVE-2025-4674
Summary
The record has no summary.
Details
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.
Severity
High Basis: CVSS v3 score 8.6, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Dates
- Published
- 2025-07-29 22:15 UTC
- Modified
- 2026-11-06 13:52 UTC
Affected packages and fixes
| Package | System | Fix |
|---|---|---|
| golang-1.18 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.20 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.18 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.20 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| golang-1.24 | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2025-4674
- https://www.cve.org/CVERecord?id=CVE-2025-4674
- https://groups.google.com/g/golang-announce/c/gTNJnDXmn34
- https://github.com/golang/go/commit/825eeee3f789a11231ce23a4836c74ec5e34bf2a
- https://github.com/golang/go/commit/e9d2c032b14c17083be0f8f0c822565199d2994f
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0