OESA-2023-1386

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2023-1386
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2023-1386.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2023-1386
Upstream
Published
2023-07-01T11:05:28Z
Modified
2025-09-03T06:19:07.162506Z
Summary
golang security update
Details

The Go Programming Language.

Security Fix(es):

The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains directories with newline characters in their names. Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using GOPATH-mode, i.e. GO111MODULE=off, may be affected).(CVE-2023-29402)

The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. The arguments for a number of flags which are non-optional are incorrectly considered optional, allowing disallowed flags to be smuggled through the LDFLAGS sanitization. This affects usage of both the gc and gccgo compilers.(CVE-2023-29404)

The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.(CVE-2023-29405)

Database specific
{
    "severity": "Critical"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / golang

Package

Name
golang
Purl
pkg:rpm/openEuler/golang&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.15.7-28.oe1

Ecosystem specific

{
    "aarch64": [
        "golang-1.15.7-28.oe1.aarch64.rpm"
    ],
    "src": [
        "golang-1.15.7-28.oe1.src.rpm"
    ],
    "x86_64": [
        "golang-1.15.7-28.oe1.x86_64.rpm"
    ],
    "noarch": [
        "golang-help-1.15.7-28.oe1.noarch.rpm",
        "golang-devel-1.15.7-28.oe1.noarch.rpm"
    ]
}

openEuler:20.03-LTS-SP3 / golang

Package

Name
golang
Purl
pkg:rpm/openEuler/golang&distro=openEuler-20.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.15.7-28.oe1

Ecosystem specific

{
    "aarch64": [
        "golang-1.15.7-28.oe1.aarch64.rpm"
    ],
    "src": [
        "golang-1.15.7-28.oe1.src.rpm"
    ],
    "x86_64": [
        "golang-1.15.7-28.oe1.x86_64.rpm"
    ],
    "noarch": [
        "golang-devel-1.15.7-28.oe1.noarch.rpm",
        "golang-help-1.15.7-28.oe1.noarch.rpm"
    ]
}

openEuler:22.03-LTS / golang

Package

Name
golang
Purl
pkg:rpm/openEuler/golang&distro=openEuler-22.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.17.3-19.oe2203sp1

Ecosystem specific

{
    "aarch64": [
        "golang-1.17.3-19.oe2203.aarch64.rpm",
        "golang-1.17.3-19.oe2203sp1.aarch64.rpm"
    ],
    "src": [
        "golang-1.17.3-19.oe2203.src.rpm",
        "golang-1.17.3-19.oe2203sp1.src.rpm"
    ],
    "x86_64": [
        "golang-1.17.3-19.oe2203.x86_64.rpm",
        "golang-1.17.3-19.oe2203sp1.x86_64.rpm"
    ],
    "noarch": [
        "golang-devel-1.17.3-19.oe2203.noarch.rpm",
        "golang-help-1.17.3-19.oe2203.noarch.rpm",
        "golang-devel-1.17.3-19.oe2203sp1.noarch.rpm",
        "golang-help-1.17.3-19.oe2203sp1.noarch.rpm"
    ]
}

openEuler:22.03-LTS-SP1 / golang

Package

Name
golang
Purl
pkg:rpm/openEuler/golang&distro=openEuler-22.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.17.3-19.oe2203sp1

Ecosystem specific

{
    "aarch64": [
        "golang-1.17.3-19.oe2203sp1.aarch64.rpm"
    ],
    "src": [
        "golang-1.17.3-19.oe2203sp1.src.rpm"
    ],
    "x86_64": [
        "golang-1.17.3-19.oe2203sp1.x86_64.rpm"
    ],
    "noarch": [
        "golang-devel-1.17.3-19.oe2203sp1.noarch.rpm",
        "golang-help-1.17.3-19.oe2203sp1.noarch.rpm"
    ]
}