OESA-2023-1499

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2023-1499
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2023-1499.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2023-1499
Upstream
Published
2023-08-12T11:05:40Z
Modified
2025-08-12T05:19:38.530497Z
Summary
golang security update
Details

The Go Programming Language.

Security Fix(es):

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)

The HTTP/1 client does not fully validate the contents of the Host header. A maliciously crafted Host header can inject additional headers or entire requests. With fix, the HTTP/1 client now refuses to send requests containing an invalid Request.Host or Request.URL.Host value.(CVE-2023-29406)

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

Affected packages

openEuler:22.03-LTS-SP2 / golang

Package

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

Affected ranges

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

Ecosystem specific

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