In breve
- CVE-2025-61731 è una vulnerabilità ALTO (CVSS 7.8) che riguarda toolchain, go (golang).
- Probabilità di sfruttamento nei prossimi 30 giorni (EPSS): 0.61%, superiore al 49.2% delle vulnerabilità.
- Correzione: aggiornare a 1.25.6, 1.24.12 o successiva.
| Package | Affected versions | Patched versions |
|---|
| toolchain Go | ≥ 1.25.0, < 1.25.6< 1.24.12
| 1.25.61.24.12
|
| go | ≥ 1.25.0, < 1.25.6< 1.24.12
| 1.25.61.24.12
|
Description
Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file with partial control of the file content.
The "#cgo pkg-config:" directive in a Go source file provides command-line arguments to provide to the Go pkg-config command. An attacker can provide a "--log-file" argument to this directive, causing pkg-config to write to an attacker-controlled location.
NVD description
Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file with partial control of the file content. The "#cgo pkg-config:" directive in a Go source file provides command-line arguments to provide to the Go pkg-config command. An attacker can provide a "--log-file" argument to this directive, causing pkg-config to write to an attacker-controlled location.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free