CVE-2025-47906
Wolfi vulnerability analysis and mitigation

Overview

CVE-2025-47906 is a security vulnerability in Go programming language's os/exec package that affects multiple versions including Go 1.24 before 1.24.6 and Go 1.23 before 1.23.12. The vulnerability was discovered by Olivier Mengué and publicly disclosed on August 6, 2025. The issue affects the LookPath function in the os/exec package, which can return unexpected paths when the PATH environment variable contains executable files rather than just directories (Golang Announce).

Technical details

The vulnerability occurs when the PATH environment variable contains paths that are executables rather than directories. When passing certain strings to LookPath function (specifically empty string "", ".", and ".."), the function may unexpectedly return the binaries listed in the PATH instead of raising an error. This behavior is particularly concerning on Windows systems, where the incorrect resolution can be triggered when a malicious executable file exists in the parent directory of a PATH element (GitHub Issue).

Impact

The vulnerability could allow attackers to hide the launch of external commands from code reviewers or static analysis tools. While the general risk is considered low since exploitation requires control of both PATH and the argument to exec.LookPath (or on Windows, a writable directory parent to a PATH element), it breaks the expectation that exec.LookPath sanitizes user input before calling exec.Command. A command name that would normally be rejected by Cmd.Start (like an empty string) may still lead to execution (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in Go versions 1.24.6 and 1.23.12. Users are advised to upgrade to these versions or later to address the security issue. The fix was released on August 6, 2025, as part of the security updates (Golang Announce).

Additional resources


SourceThis report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-47906MEDIUM6.5
  • WolfiWolfi
  • azuredisk-csi-fips-1.28
NoYesSep 18, 2025
CVE-2025-59476MEDIUM5.3
  • JavaJava
  • cpe:2.3:a:jenkins:jenkins
NoYesSep 17, 2025
CVE-2025-59474MEDIUM5.3
  • JavaJava
  • cpe:2.3:a:jenkins:jenkins
NoYesSep 17, 2025
CVE-2025-59475MEDIUM4.3
  • JavaJava
  • org.jenkins-ci.main:jenkins-core
NoYesSep 17, 2025
CVE-2025-58767LOW1.2
  • RubyRuby
  • ruby:3.3::ruby-default-gems
NoYesSep 17, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management