GO-2026-5031

Source
https://pkg.go.dev/vuln/GO-2026-5031
Import Source
https://vuln.go.dev/ID/GO-2026-5031.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-5031
Aliases
  • CVE-2026-42500
Downstream
CGA (98)
MINI (29)
Related
Published
2026-05-29T18:17:10Z
Modified
2026-06-16T06:14:21Z
Summary
Panic when reading out of bound palette index in golang.org/x/image/bmp
Details

Decoding a paletted BMP file with an out-of-range palette index results in a panic when accessing pixels in the invalid image.

Database specific
{
    "review_status":  "REVIEWED",
    "url":  "https://pkg.go.dev/vuln/GO-2026-5031"
}
References

Affected packages

Go / golang.org/x/image

Package

Name
golang.org/x/image
View open source insights on deps.dev
Purl
pkg:golang/golang.org/x/image

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.41.0

Ecosystem specific

{
    "imports":  [
        {
            "path":  "golang.org/x/image/bmp",
            "symbols":  [
                "Decode",
                "decodePaletted"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5031.json"