Categories
CVE-2023-39323

Arbitrary code execution during build via line directives in cmd/go

Summary

Arbitrary code execution during build via line directives in cmd/go

Original description

The description as published by the source.

Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build". The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex.

Source: OSV.dev (Open Source Vulnerabilities) NVD OSV

Affected packages

Bitnami golang
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.20.9"},{"introduced":"1.21.0"},{"fixed":"1.21.2"}]}]

Fix status by distribution

Fixed packages published by each distribution for this CVE

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details