Exploit database

Vulnerability

CVE-2023-39320

Arbitrary code execution via go.mod toolchain directive in cmd/go

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

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

Description

The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as well as modules downloaded directly using VCS software.

CVE Program

Exploit source choices

1 source
ayrustogaru/cve-2023-39320
GH-82e8c9d03657d78833d074c4a9ddab8eGitHubUnofficial GitHub sourcePreferred

ayrustogaru/cve-2023-39320 source repository

2024-02-247 files · 1 stars