Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/image
  4. ›
  5. CVE-2024-24792

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

June 26, 2024

Parsing a corrupt or malicious image with invalid color indices can cause a panic.

References

  • cs.opensource.google/go/x/image
  • github.com/advisories/GHSA-9phm-fm57-rhg8
  • go.dev/cl/588115
  • go.dev/issue/67624
  • nvd.nist.gov/vuln/detail/CVE-2024-24792
  • pkg.go.dev/vuln/GO-2024-2937

Code Behaviors & Features

Detect and mitigate CVE-2024-24792 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.18.0

Fixed versions

  • 0.18.0

Solution

Upgrade to version 0.18.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception

Source file

go/golang.org/x/image/CVE-2024-24792.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.