CVE-2025-47906

Published Sep 18, 2025

Last updated a month ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-47906 refers to a security vulnerability found in Go versions 1.24.6 and 1.23.12. Specifically, it affects the `os/exec` package. The vulnerability arises because the `LookPath` function might return unexpected paths if the PATH environment variable includes paths that are executable files instead of directories. Passing certain strings to LookPath ("", ".", and "..") could lead to the unexpected return of binaries listed in the PATH. Additionally, a separate vulnerability, CVE-2025-47907, was identified in the `database/sql` package. This issue involves incorrect results being returned from `Rows.Scan`. Cancelling a query during a call to the Scan method of the returned Rows can lead to a race condition, potentially overwriting expected results with those from another query if queries are made in parallel. This can cause Scan to return unexpected results or an error and is believed to affect most database/sql drivers.

Description
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.
Source
security@golang.org
NVD status
Awaiting Analysis

Risk scores

CVSS 3.1

Type
Secondary
Base score
6.5
Impact score
2.5
Exploitability score
3.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Severity
MEDIUM

Social media

Hype score
Not currently trending