UBUNTU-CVE-2023-39323

Source
https://ubuntu.com/security/CVE-2023-39323
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39323.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2023-39323
Related
Published
2023-10-05T21:15:00Z
Modified
2024-11-20T12:27:06Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / golang-1.18

Package

Name
golang-1.18
Purl
pkg:deb/ubuntu/golang-1.18?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.1-1ubuntu1~16.04.6+esm1

Affected versions

1.*

1.18.1-1ubuntu1~16.04.6

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.1-1ubuntu1~16.04.6+esm1",
            "binary_name": "golang-1.18"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~16.04.6+esm1",
            "binary_name": "golang-1.18-doc"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~16.04.6+esm1",
            "binary_name": "golang-1.18-go"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~16.04.6+esm1",
            "binary_name": "golang-1.18-go-dbgsym"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~16.04.6+esm1",
            "binary_name": "golang-1.18-src"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / golang-1.18

Package

Name
golang-1.18
Purl
pkg:deb/ubuntu/golang-1.18?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.1-1ubuntu1~18.04.4+esm1

Affected versions

1.*

1.18.1-1ubuntu1~18.04.3
1.18.1-1ubuntu1~18.04.4

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.18"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.18-doc"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.18-go"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.18-src"
        }
    ]
}

Ubuntu:20.04:LTS / golang-1.18

Package

Name
golang-1.18
Purl
pkg:deb/ubuntu/golang-1.18?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.1-1ubuntu1~20.04.3

Affected versions

1.*

1.18.1-1ubuntu1~20.04.1
1.18.1-1ubuntu1~20.04.2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.3",
            "binary_name": "golang-1.18"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.3",
            "binary_name": "golang-1.18-doc"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.3",
            "binary_name": "golang-1.18-go"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.3",
            "binary_name": "golang-1.18-go-dbgsym"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.3",
            "binary_name": "golang-1.18-src"
        }
    ]
}

Ubuntu:20.04:LTS / golang-1.20

Package

Name
golang-1.20
Purl
pkg:deb/ubuntu/golang-1.20?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.20.3-1ubuntu0.1~20.04.1

Affected versions

1.*

1.20.3-1ubuntu0.1~20.04

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04.1",
            "binary_name": "golang-1.20"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04.1",
            "binary_name": "golang-1.20-doc"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04.1",
            "binary_name": "golang-1.20-go"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04.1",
            "binary_name": "golang-1.20-go-dbgsym"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04.1",
            "binary_name": "golang-1.20-src"
        }
    ]
}

Ubuntu:20.04:LTS / golang-1.21

Package

Name
golang-1.21
Purl
pkg:deb/ubuntu/golang-1.21?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.21.1-1~ubuntu20.04.2

Affected versions

1.*

1.21.1-1~ubuntu20.04.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.21.1-1~ubuntu20.04.2",
            "binary_name": "golang-1.21"
        },
        {
            "binary_version": "1.21.1-1~ubuntu20.04.2",
            "binary_name": "golang-1.21-doc"
        },
        {
            "binary_version": "1.21.1-1~ubuntu20.04.2",
            "binary_name": "golang-1.21-go"
        },
        {
            "binary_version": "1.21.1-1~ubuntu20.04.2",
            "binary_name": "golang-1.21-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.17

Package

Name
golang-1.17
Purl
pkg:deb/ubuntu/golang-1.17?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.17.13-3ubuntu1.3

Affected versions

1.*

1.17-1ubuntu2
1.17.3-1ubuntu1
1.17.3-1ubuntu2
1.17.13-3ubuntu1
1.17.13-3ubuntu1.2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.17.13-3ubuntu1.3",
            "binary_name": "golang-1.17"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.3",
            "binary_name": "golang-1.17-doc"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.3",
            "binary_name": "golang-1.17-go"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.3",
            "binary_name": "golang-1.17-go-dbgsym"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.3",
            "binary_name": "golang-1.17-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.18

Package

Name
golang-1.18
Purl
pkg:deb/ubuntu/golang-1.18?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.1-1ubuntu1.2

Affected versions

1.*

1.18~beta1-0ubuntu1
1.18~beta2-1ubuntu1
1.18~beta2-1ubuntu2
1.18~rc1-1ubuntu1
1.18-1ubuntu1
1.18.1-1ubuntu1
1.18.1-1ubuntu1.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.1-1ubuntu1.2",
            "binary_name": "golang-1.18"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.2",
            "binary_name": "golang-1.18-doc"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.2",
            "binary_name": "golang-1.18-go"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.2",
            "binary_name": "golang-1.18-go-dbgsym"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.2",
            "binary_name": "golang-1.18-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.20

Package

Name
golang-1.20
Purl
pkg:deb/ubuntu/golang-1.20?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.20.3-1ubuntu0.1~22.04.1

Affected versions

1.*

1.20.3-1ubuntu0.1~22.04

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04.1",
            "binary_name": "golang-1.20"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04.1",
            "binary_name": "golang-1.20-doc"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04.1",
            "binary_name": "golang-1.20-go"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04.1",
            "binary_name": "golang-1.20-go-dbgsym"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04.1",
            "binary_name": "golang-1.20-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.21

Package

Name
golang-1.21
Purl
pkg:deb/ubuntu/golang-1.21?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.21.1-1~ubuntu22.04.2

Affected versions

1.*

1.21.1-1~ubuntu22.04.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.21.1-1~ubuntu22.04.2",
            "binary_name": "golang-1.21"
        },
        {
            "binary_version": "1.21.1-1~ubuntu22.04.2",
            "binary_name": "golang-1.21-doc"
        },
        {
            "binary_version": "1.21.1-1~ubuntu22.04.2",
            "binary_name": "golang-1.21-go"
        },
        {
            "binary_version": "1.21.1-1~ubuntu22.04.2",
            "binary_name": "golang-1.21-src"
        }
    ]
}

Ubuntu:24.04:LTS / golang-1.21

Package

Name
golang-1.21
Purl
pkg:deb/ubuntu/golang-1.21?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.21.5-1

Affected versions

1.*

1.21.1-1
1.21.3-1
1.21.4-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.21.5-1",
            "binary_name": "golang-1.21"
        },
        {
            "binary_version": "1.21.5-1",
            "binary_name": "golang-1.21-doc"
        },
        {
            "binary_version": "1.21.5-1",
            "binary_name": "golang-1.21-go"
        },
        {
            "binary_version": "1.21.5-1",
            "binary_name": "golang-1.21-src"
        }
    ]
}