# CVE-2024-24792: GO-2024-2937 - Panic when parsing invalid palette-color images in golang.org/x/image

Source: https://junglewise.ai/threats/cve-2024-24792-panic-when-parsing-invalid-palette-color-images-in-golang-org-x  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-06-25  
License: CC BY 4.0 with a link back

CVE-2024-24792 · Severity: low · CVSS 3.1 · Published 2024-06-25

Panic when parsing invalid palette-color images in golang.org/x/image

Technologies: [golang.org/x/image (Go)](https://junglewise.ai/threats/technologies/golang-org-x-image). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2024-24792 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-24792 being exploited in the wild.

**How severe is CVE-2024-24792?** Low severity, with a CVSS score of 3.1, published 25 June 2024.

**Which products and versions are affected?** golang.org/x/image (Go) SEMVER:introduced=0,fixed=0.18.0.

**Is there a fix for CVE-2024-24792?** Yes. golang.org/x/image (Go): upgrade to 0.18.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-24792?** Check whether you run golang.org/x/image (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- golang.org/x/image (Go): upgrade to 0.18.0 or later

  ```sh
  go get golang.org/x/image@v0.18.0
  ```


## Affected products

- golang.org/x/image (Go) SEMVER:introduced=0,fixed=0.18.0

## Identifiers

- CVE-2024-24792
- GHSA-9phm-fm57-rhg8
- GO-2024-2937

## Related threats

- [GO-2026-6222 - Excessive memory allocation during VP8L decoding in golang.org/x/image](https://junglewise.ai/threats/cve-2026-46603-go-2026-6222-excessive-memory-allocation-during-vp8l-decoding-in)
- [Go x/image/tiff denial of service via out-of-bounds strip offset](https://junglewise.ai/threats/cve-2026-46604-go-x-image-tiff-denial-of-service-via-out-of-bounds-strip-offset)
- [Go x/image/tiff unbounded memory consumption in TIFF decoder](https://junglewise.ai/threats/cve-2026-46602-go-x-image-tiff-unbounded-memory-consumption-in-tiff-decoder)
- [Go x/image/webp denial of service via mismatched VP8 dimensions](https://junglewise.ai/threats/cve-2026-46601-go-x-image-webp-denial-of-service-via-mismatched-vp8-dimensions)
- [Go x/image/tiff resource exhaustion in PackBits decompression](https://junglewise.ai/threats/cve-2026-46599-go-x-image-tiff-resource-exhaustion-in-packbits-decompression)
