PatchSiren cyber security CVE debrief
CVE-2026-42500 golang.org/x/image CVE debrief
## Summary A vulnerability in Go's image processing library causes a panic when decoding malformed paletted BMP files with out-of-range palette indices. This denial-of-service condition affects applications that process untrusted BMP images. ## Technical Details The vulnerability exists in Go's BMP decoder when handling paletted (8-bit) BMP files. A malformed file containing palette indices that exceed the defined palette size triggers a panic during pixel access operations. This occurs because the decoder fails to validate palette index bounds before array access, resulting in an index out-of-range runtime panic. The issue is classified as MEDIUM severity (CVSS 5.3) with a network attack vector, low attack complexity, and no required privileges or user interaction. The impact is limited to availability (denial of service) with no confidentiality or integrity effects. ## Affected Products Based on source references, this vulnerability affects the Go programming language's standard library image processing packages. The Go security team has assigned this the internal identifier GO-2026-5031. ## Timeline - **2026-05-29**: CVE published and vulnerability disclosed by Go security team ## Recommended Actions 1. **Upgrade Go**: Update to the patched version of Go as indicated in the security announcement 2. **Validate Input**: Implement input validation for BMP files before processing, rejecting files with suspicious palette configurations 3. **Monitor Dependencies**: Audit applications using Go's image packages for BMP processing capabilities 4. **Apply Defense in Depth**: Use process isolation and resource limits for image processing operations handling untrusted input ## References - CVE Record: CVE-2026-42500 - NVD Entry: CVE-2026-42500 - Go Security Announcement: golang-announce group posting - Go Issue Tracker: Issue 79576 - Go Code Review: CL 781500 - Go Vulnerability Database: GO-2026-5031
- Vendor
- golang.org/x/image
- Product
- golang.org/x/image/bmp
- CVSS
- MEDIUM 5.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-29
- Original CVE updated
- 2026-05-29
- Advisory published
- 2026-05-29
- Advisory updated
- 2026-05-29
Who should care
Organizations running Go-based applications that process BMP images from untrusted sources, including web services, content management systems, and image processing pipelines.
Technical summary
The Go programming language's BMP image decoder contains a vulnerability where malformed paletted BMP files with out-of-range palette indices trigger a runtime panic. This occurs during pixel access when the decoder attempts to use an invalid palette index without proper bounds checking. The vulnerability results in denial of service for applications processing untrusted BMP images.
Defensive priority
medium
Recommended defensive actions
- Upgrade Go to the patched version as indicated in the security announcement
- Implement input validation for BMP files before processing, rejecting files with suspicious palette configurations
- Audit applications using Go's image packages for BMP processing capabilities
- Use process isolation and resource limits for image processing operations handling untrusted input
Evidence notes
Vulnerability description and CVSS data sourced from NVD. Technical details derived from Go security team references including issue tracker, code review, and vulnerability database entries. Vendor identification based on reference domain analysis of golang.org sources.
Official resources
2026-05-29