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
Published
2026-05-29T18:17:10Z
Modified
2026-05-29T18:45:12.249920464Z
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
{
    "url": "https://pkg.go.dev/vuln/GO-2026-5031",
    "review_status": "REVIEWED"
}
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
0Unknown introduced version / All previous versions are affected
Fixed
0.41.0

Ecosystem specific

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

Database specific

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