Technical impact
Forge, also known as node-forge, is a JavaScript implementation of Transport Layer Security that processes PEM formatted data using regular expressions. The vulnerability exists in versions prior to 1.4.1 because the pem.decode() function fails to properly handle the END line and performs a polynomial‑time regular expression search on malformed input. An unauthenticated attacker can supply a long, malformed PEM message that forces the parser to perform excessive CPU work, ultimately exhausting system resources and causing the application to become unavailable. This flaw is a classic denial‑of‑service weakness rather than an information disclosure or code execution issue.
Affected Systems
Any system that incorporates digitalbazaar’s forge library and parses PEM data—including web applications, certificates services, and authentication modules—running a forge version earlier than 1.4.1 is susceptible. The impact is limited to the host running the library; the flaw cannot be leveraged to gain further privileges or exfiltrate data.
Risk and Exploitability
The CVSS score of 7.5 indicates moderate‑to‑high danger, while the EPSS score is currently unavailable, and the flaw is not listed in the CISA KEV catalog. Although the vulnerability is remotely exploitable via any sanitization‑unverified PEM input, its exploitation requires the ability to supply such input to the application. The lack of a known exploit but the potential for significant service disruption makes it prudent to treat the risk as moderate to high and address it promptly.
Github GHSA