VDB

CVE-2022-30580

CVE-2022-30580 PUBLISHED CVSS 7.8 HIGH

Empty Cmd.Path can trigger unintended binary in os/exec on Windows

Reported by go · Published August 9, 2022

os/exec is fixed in 1.18.3 and 1.17.11 (Go Modules)

Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either "..com" or "..exe" by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
stdlibGo Modules1.18.3, 1.17.11
os/execGo Modules1.18.3, 1.17.11
golang-raceAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2
golang-binAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2
golang-testsAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2
golangAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2
golangBitnami1.18.3, 1.17.11
golang-miscAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2
golang-docsAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2
golang-sharedAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2
goAlpine1.18.4-r0
golang-srcAmazon Linux1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.2

2 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
Go standard libraryos/exec0, 1.18.0-0
amazon:2golang-race0
amazon:2023golang-bin0
amazon:2023golang-race0
amazon:2golang-tests0
amazon:2023golang0
amazon:2golang-misc0
amazon:2023golang-tests0
amazon:2golang-bin0
amazon:2023golang-docs0
amazon:2golang-shared0
amazon:2golang0
alpinego0
amazon:2023golang-shared0
Go standard libraryos/exec0, 1.18.0-0
amazon:2023golang-misc0
amazon:2golang-docs0
amazon:2golang-src0
amazon:2023golang-src0

Timeline

  • Jun 7, 2022 CVE Published
  • Aug 10, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 21, 2026 Security Advisory (3 in total, the first dated here)
  • Jun 25, 2026 Coalition ESS Score
  • Jul 2, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-30580
vulnetix vdb fixes CVE-2022-30580

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-30580/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›