CVE-2025-47906: Unexpected paths returned from LookPath in os/exec

Published Aug 6, 2025
·
Updated

If the PATH environment variable contains paths which are executables (rather than just directories), passing certain strings to LookPath ("", ".", and ".."), can result in the binaries listed in the PATH being unexpectedly returned.

Affected Software

4 affected components
Google Go<1.24.6, <1.23.12
Golang Go<1.23.12
Golang Go>=1.24.0<1.24.6
IBM Concert Software<=1.0.0-2.2.0

Remediation

Event History

Sep 18, 2025
CVE Published
via MITRE·06:41 PM
Data Sourced
via MITRE·06:41 PM
DescriptionWeakness
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityAffected Software
Mar 23, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-47906?

CVE-2025-47906 is classified as a medium severity vulnerability.

2

How do I fix CVE-2025-47906?

To mitigate CVE-2025-47906, ensure that the PATH environment variable contains only directory paths and exclude executable files.

3

Which versions of Google Go are affected by CVE-2025-47906?

CVE-2025-47906 affects Google Go versions up to 1.24.6 and 1.23.12.

4

What are the potential impacts of CVE-2025-47906?

If exploited, CVE-2025-47906 can lead to unexpected behavior when certain strings are passed to LookPath.

5

Is there a patch available for CVE-2025-47906?

Yes, upgrading to a version of Google Go beyond 1.24.6 or 1.23.12 will resolve the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203