CVE-2023-39323

Public on 2023-10-05
Modified on 2024-04-04
Description
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.
Severity
Important severity
Important
CVSS v3 Base Score
7.5
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Ecs Extra ecs-service-connect-agent 2023-10-31 ALAS2ECS-2023-016 Fixed
Amazon Linux 2023 ecs-service-connect-agent 2023-10-30 ALAS2023-2023-420 Fixed
Amazon Linux 1 golang 2023-10-16 ALAS-2023-1871 Fixed
Amazon Linux 2 - Core golang 2023-10-16 ALAS2-2023-2313 Fixed
Amazon Linux 2023 golang 2023-10-16 ALAS2023-2023-394 Fixed

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD CVSSv3 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H