Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. images
  4. ›
  5. CVE-2024-21523

CVE-2024-21523: images vulnerable to Denial of Service

July 10, 2024

All versions of the package images are vulnerable to Denial of Service (DoS) due to providing unexpected input types to several different functions. This makes it possible to reach an assert macro, leading to a process crash.

Note: By providing some specific integer values (like 0) to the size function, it is possible to obtain a Segmentation fault error, leading to the process crash.

References

  • gist.github.com/dellalibera/8b4ea6b4db84cba212e6e6e39a6933d1
  • github.com/advisories/GHSA-vjpv-x8p9-7p85
  • github.com/zhangyuanwei/node-images
  • github.com/zhangyuanwei/node-images/blob/691d49f4e620b4eec9f1c47b1735841d9d8b55f6/src/Image.cc
  • nvd.nist.gov/vuln/detail/CVE-2024-21523
  • security.snyk.io/vuln/SNYK-JS-IMAGES-6421826

Code Behaviors & Features

Detect and mitigate CVE-2024-21523 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 up to 3.2.4

Solution

Unfortunately, there is no solution available yet.

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-400: Uncontrolled Resource Consumption

Source file

npm/images/CVE-2024-21523.yml

Spotted a mistake? Edit the file on GitLab.

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

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