OESA-2024-1306

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2024-1306
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2024-1306.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2024-1306
Upstream
Published
2024-03-22T11:07:15Z
Modified
2025-08-12T05:22:48.740497Z
Summary
golang security update
Details

The Go Programming Language.

Security Fix(es):

When following an HTTP redirect to a domain which is not a subdomain match or exact match of the initial domain, an http.Client does not forward sensitive headers such as "Authorization" or "Cookie". For example, a redirect from foo.com to www.foo.com will forward the Authorization header, but a redirect to bar.com will not. A maliciously crafted HTTP redirect could cause sensitive headers to be unexpectedly forwarded.(CVE-2023-45289)

When parsing a multipart form (either explicitly with Request.ParseMultipartForm or implicitly with Request.FormValue, Request.PostFormValue, or Request.FormFile), limits on the total size of the parsed form were not applied to the memory consumed while reading a single form line. This permits a maliciously crafted input containing very long lines to cause allocation of arbitrarily large amounts of memory, potentially leading to memory exhaustion. With fix, the ParseMultipartForm function now correctly limits the maximum size of form lines.(CVE-2023-45290)

Verifying a certificate chain which contains a certificate with an unknown public key algorithm will cause Certificate.Verify to panic. This affects all crypto/tls clients, and servers that set Config.ClientAuth to VerifyClientCertIfGiven or RequireAndVerifyClientCert. The default behavior is for TLS servers to not verify client certificates.(CVE-2024-24783)

If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.(CVE-2024-24785)

Database specific
{
    "severity": "High"
}
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-39.oe1

Ecosystem specific

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

openEuler:20.03-LTS-SP4 / golang

Package

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

Affected ranges

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

Ecosystem specific

{
    "src": [
        "golang-1.15.7-39.oe2003sp4.src.rpm"
    ],
    "x86_64": [
        "golang-1.15.7-39.oe2003sp4.x86_64.rpm"
    ],
    "aarch64": [
        "golang-1.15.7-39.oe2003sp4.aarch64.rpm"
    ],
    "noarch": [
        "golang-help-1.15.7-39.oe2003sp4.noarch.rpm",
        "golang-devel-1.15.7-39.oe2003sp4.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-28.oe2203sp3

Ecosystem specific

{
    "src": [
        "golang-1.17.3-28.oe2203.src.rpm",
        "golang-1.17.3-28.oe2203sp1.src.rpm",
        "golang-1.17.3-28.oe2203sp2.src.rpm",
        "golang-1.17.3-28.oe2203sp3.src.rpm"
    ],
    "x86_64": [
        "golang-1.17.3-28.oe2203.x86_64.rpm",
        "golang-1.17.3-28.oe2203sp1.x86_64.rpm",
        "golang-1.17.3-28.oe2203sp2.x86_64.rpm",
        "golang-1.17.3-28.oe2203sp3.x86_64.rpm"
    ],
    "aarch64": [
        "golang-1.17.3-28.oe2203.aarch64.rpm",
        "golang-1.17.3-28.oe2203sp1.aarch64.rpm",
        "golang-1.17.3-28.oe2203sp2.aarch64.rpm",
        "golang-1.17.3-28.oe2203sp3.aarch64.rpm"
    ],
    "noarch": [
        "golang-devel-1.17.3-28.oe2203.noarch.rpm",
        "golang-help-1.17.3-28.oe2203.noarch.rpm",
        "golang-devel-1.17.3-28.oe2203sp1.noarch.rpm",
        "golang-help-1.17.3-28.oe2203sp1.noarch.rpm",
        "golang-devel-1.17.3-28.oe2203sp2.noarch.rpm",
        "golang-help-1.17.3-28.oe2203sp2.noarch.rpm",
        "golang-devel-1.17.3-28.oe2203sp3.noarch.rpm",
        "golang-help-1.17.3-28.oe2203sp3.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-28.oe2203sp1

Ecosystem specific

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

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-28.oe2203sp2

Ecosystem specific

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

openEuler:22.03-LTS-SP3 / golang

Package

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

Affected ranges

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

Ecosystem specific

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