The vulnerability is an integer overflow/wraparound (CWE-190) in node-forge's ASN.1 OID encoding. The root cause is in asn1.oidToDer() in lib/asn1.js, which computed the first subidentifier as 40 * arc1 + arc2 without range-checking the first two arcs and wrote it with putByte() (which truncates to the low 16 bits). This allowed out-of-range OID strings (e.g. 0.42.840.113549.1.1.1 or 4294977127.18.840.113549.1.1.1) to be encoded as the DER of a different, trusted OID (rsaEncryption 1.2.840.113549.1.1.1), bypassing OID-based authorization decisions made on the string. The fix (commit e56a3dde8e4e63bae566bb32546eeaf92f515e1e) added a range check inside asn1.oidToDer() and also fixed a related bug in asn1.derToOid() where the first subidentifier was always read as a single byte, causing valid OIDs with a first subidentifier above 127 (e.g. 2.999) to encode/decode incorrectly. Both functions are in lib/asn1.js and are the functions that would appear in a runtime profile when this vulnerability is triggered (oidToDer during encoding of untrusted OID strings, derToOid during the related decode path).