cve.bz

CVE-2025-71330 image-size image-size: Infinite Loop

8.7 highExploit referenceEPSS 0.4%Fix available

High (8.7) in image-size image-size. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in image-size 2.0.3.

On this page
image-size through 2.0.2 contains a denial of service vulnerability that allows remote attackers to permanently block the Node.js event loop by supplying a specially crafted ICNS image buffer. Attackers can craft an ICNS buffer containing valid magic bytes and a zero-valued entry length field to trigger an infinite loop in the ICNS parser, as the offset is never incremented when the entry length field is 0, causing the while loop condition to remain true indefinitely.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 38th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-06-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-71330 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-71330?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-71330?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-71330 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
image-sizefrom 1.1.0 through 1.2.1
image-sizefrom 2.0.0 through 2.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w3rx-r6r6-pgprnpmimage-size>=0.6.3 <2.0.32.0.3

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in the image-size npm package. A crafted ICNS image buffer with a zero-valued entry length field can trigger an infinite loop in the ICNS parser, permanently blocking the Node.js event loop and causing a denial of service.

Red Hat's mitigation

Upgrade to a version of image-size that validates ICNS entry length fields. As a workaround, validate image inputs before passing them to image-size, rejecting ICNS files with zero-length entries.

ProductPackageStateAdvisory
Red Hat OpenShift AI 3.4rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1787121387Fixed 2026-08-27RHSA-2026:60520
Gatekeeper 3gatekeeper/gatekeeper-rhel9Fix deferred
Red Hat Build of Podman Desktoprh-podman-desktop.gitFix deferred
Red Hat Discovery 2discovery/discovery-ui-rhel9Fix deferred
Red Hat Enterprise Linux 8grafanaFix deferred
Red Hat Enterprise Linux 8grafana-pcpFix deferred
Red Hat Fuse 7image-sizeFix deferred
Red Hat JBoss Enterprise Application Platform 7image-sizeFix deferred
Red Hat JBoss Enterprise Application Platform 8image-sizeFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packimage-sizeFix deferred
Red Hat OpenShift Dev Spacesdevspaces/code-rhel9Fix deferred
Red Hat Satellite 6satellite/iop-vulnerability-frontend-rhel9Fix deferred
Red Hat Trusted Artifact Signerrhtas/rekor-search-ui-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-71330.

References

Check your stackJSON