CVE-2024-24792
High · 7.5CVSS
7.5
EPSS
0.7%
Published
Jun 27, 2024
CISA due date
—
Cloudanix analysis
A flaw in how certain software reads image files lets an attacker send a specially made picture that makes the program crash, briefly stopping whatever service was using that program.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Parsing a corrupt or malicious image containing invalid color indices triggers an unhandled panic that crashes the affected process.
Why it matters to the business
Image-processing services or applications become unavailable until restarted, causing operational downtime and potential loss of service for users who rely on image handling.
How an attack unfolds
An attacker crafts an image file with deliberately invalid color index values and supplies it to any network-accessible service that parses images; the vulnerable parser encounters the invalid data and panics, terminating the process.
How to fix it
Update the image-parsing library or application to a version that properly validates color indices before processing; apply all vendor-supplied patches and rebuild dependent services.
How to confirm the fix worked
Test the updated parser against a corpus of known-malformed images that previously caused panics and confirm that processing now returns controlled errors instead of crashing; monitor process stability under load with the same test cases.
Typical attack path
- Identify a target service that accepts and parses user-supplied images
- Generate or modify an image file to contain invalid color indices
- Transmit the malicious image to the target via upload, API call, or other input channel
- Observe service crash or restart triggered by the panic
How to detect it
Search application and system logs for sudden process terminations or panic messages that occur immediately after image-upload or image-processing events; correlate these events with incoming image files from untrusted sources.
What your security team should do
- Prioritize patching image-parsing components in any internet-facing service that handles user images
- Implement input-size and format restrictions as a temporary control while patches are applied
- Add runtime monitoring for unexpected process terminations in image-handling workloads
- Review and update dependency inventories to ensure future updates can be applied quickly
The record
Parsing a corrupt or malicious image with invalid color indices can cause a panic.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | golang.org/x/image | 0 | 0.18.0 |
| Chainguard | chainctl | 0 | 0.2.59-r0 |
| Chainguard | docker-credential-cgr | 0 | 0.2.59-r0 |
| Chainguard | gotenberg | 0 | 8.7.0-r1 |
| Chainguard | hugo | 0 | 0.128.0-r1 |
| Chainguard | hugo-extended | 0 | 0.129.0-r0 |
| Chainguard | mattermost-9 | 0 | 9.9.0-r1 |
| Chainguard | mattermost-9-compat | 0 | 9.9.0-r1 |
| Chainguard | ollama | 0 | 0.4.0-r1 |
| Chainguard | ollama-cpu | 0 | 0.4.0-r1 |
| Debian:11 | golang-golang-x-image | 0 | No fix |
| Debian:12 | golang-golang-x-image | 0 | No fix |
| Debian:13 | golang-golang-x-image | 0 | 0.18.0-1 |
| SUSE:Package Hub 15 SP5 | keybase-client | 0 | 6.2.8-bp156.2.6.1 |
| SUSE:Package Hub 15 SP6 | keybase-client | 0 | 6.2.8-bp156.2.6.1 |
| Ubuntu:18.04:LTS | golang-golang-x-image | 0 | No fix |
| Ubuntu:20.04:LTS | golang-golang-x-image | 0 | No fix |
| Ubuntu:22.04:LTS | golang-golang-x-image | 0 | No fix |
| Ubuntu:24.04:LTS | golang-golang-x-image | 0 | No fix |
| Ubuntu:24.10 | golang-golang-x-image | 0 | No fix |
| Ubuntu:25.04 | golang-golang-x-image | 0 | No fix |
| Ubuntu:25.10 | golang-golang-x-image | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | golang-golang-x-image | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | golang-golang-x-image | 0 | No fix |
| Wolfi | hugo | 0 | 0.128.0-r1 |
| Wolfi | hugo-extended | 0 | 0.129.0-r0 |
| Wolfi | mattermost-9 | 0 | 9.9.0-r1 |
| Wolfi | mattermost-9-compat | 0 | 9.9.0-r1 |
| Wolfi | ollama | 0 | 0.4.0-r1 |
| Wolfi | ollama-cpu | 0 | 0.4.0-r1 |
| openSUSE:Leap 15.5 | keybase-client | 0 | 6.2.8-bp156.2.6.1 |
| openSUSE:Leap 15.6 | keybase-client | 0 | 6.2.8-bp156.2.6.1 |
| openSUSE:Tumbleweed | gomuks | 0 | 0.3.0-3.1 |
| openSUSE:Tumbleweed | keybase-client | 0 | 6.3.1-2.1 |
Related vulnerabilities
- CVE-2026-34986 Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of… Also affects chainctl
- CVE-2026-33481 Syft is a a CLI tool and Go library for generating a Software Bill of Materials (SBOM)… Also affects chainctl
- CVE-2026-33809 A maliciously crafted TIFF file can cause image decoding to attempt to allocate up 4GiB… Also affects chainctl
- CVE-2026-27141 Due to missing nil check, sending 0x0a-0x0f HTTP/2 frames will cause a running server to… Also affects chainctl
- CVE-2026-1229 The CombinedMult function in the CIRCL ecc/p384 package (secp384r1 curve) produces an… Also affects chainctl
- CVE-2026-25934 go-git is a highly extensible git implementation library written in pure Go. Also affects chainctl
- CVE-2026-25121 apko allows users to build and publish OCI container images built from apk packages. Also affects chainctl
- CVE-2026-25122 apko allows users to build and publish OCI container images built from apk packages. Also affects chainctl