Technical impact
Forge's asn1.oidToDer() does not range‑check the first two arcs of an Object Identifier (OID). An attacker can supply a carefully crafted, untrusted OID string that, when passed to oidToDer(), is truncated so the resulting DER encodes a different, trusted OID. If an application authorizes the original string and then relies on the DER representation, it may mistakenly trust an OID it considered safe, potentially allowing privilege escalation or acceptance of fraudulent certificates.
Affected Systems
The Forge library for Node.js (digitalbazaar:forge). All versions prior to 1.4.1 are affected; upgrading to v1.4.1 or later resolves the issue.
Risk and Exploitability
The CVSS score of 3.7 indicates moderate severity. The EPSS score of < 1% indicates a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog, so it may still be used in targeted attacks if an application accepts untrusted OID input. The primary attack vector is via application input that is treated as trusted after encoding.
Github GHSA