Uncontrolled recursion in node-forge - CVE-2025-66031

 

Uncontrolled recursion in node-forge - CVE-2025-66031

Published: December 4, 2025 / Updated: December 10, 2025


Vulnerability identifier: #VU119132
CSH Severity: Medium
CVSS v4.0: 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/E:U/U:Green
CVE-ID: CVE-2025-66031
CWE-ID: CWE-674
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Synex Technologies
Affected software:
node-forge

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to uncontrolled recursion within the asn1.fromDer() function in forge/lib/asn1.js. A remote non-authenticated attacker can pass specially crafted deep ASN.1 structures to trigger unbounded recursive parsing and perform a denial of service attack.


How to mitigate CVE-2025-66031

Install updates from vendor's website.

Sources