cve/2023/CVE-2023-39320.md

19 lines
939 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2023-39320](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39320)
![](https://img.shields.io/static/v1?label=Product&message=cmd%2Fgo&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=1.21.0-0%3C%201.21.1%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-94%3A%20Improper%20Control%20of%20Generation%20of%20Code%20('Code%20Injection')&color=brighgreen)
### 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/ayrustogaru/cve-2023-39320
- https://github.com/nomi-sec/PoC-in-GitHub