---
title: "CVE-2023-39323"
canonical_url: "https://pkgseek.com/security/CVE-2023-39323"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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.

CVE-2023-39323 is rated HIGH (8.1), with 5 indexed affected package builds across 1 distributions.

- **Severity / Score**: HIGH (8.1)
- **Affected builds**: 5
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | jammy | golang-1.17-doc | 1.17.3-1ubuntu2 | — |
| Ubuntu | jammy | golang-1.18 | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-doc | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-go | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-src | 1.18.1-1ubuntu1 | — |
