FlawAtlas
Search the atlas
UBUNTU-CVE-2023-39323 High

UBUNTU-CVE-2023-39323

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.

Exploit probability Not scored
Published October 5, 2023
Required by Not available
Last source change February 4, 2026

02 / AFFECTED SOFTWARE

Affected packages

Ubuntu:20.04:LTS golang-1.18

2 explicit affected versions

Ubuntu:20.04:LTS golang-1.20

1 explicit affected versions

Ubuntu:20.04:LTS golang-1.21

1 explicit affected versions

Ubuntu:22.04:LTS golang-1.17

5 explicit affected versions

Ubuntu:22.04:LTS golang-1.18

7 explicit affected versions

Ubuntu:22.04:LTS golang-1.20

1 explicit affected versions

Ubuntu:22.04:LTS golang-1.21

1 explicit affected versions

Ubuntu:Pro:16.04:LTS golang-1.18

1 explicit affected versions

Ubuntu:Pro:18.04:LTS golang-1.18

2 explicit affected versions

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities UBUNTU-CVE-2023-39323

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.

View original source

05 / REFERENCES

Further evidence