node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in nested DigestAlgorithm
CVE-2026-85393
Summary RSASSA-PKCS1-v15 signature verification (publicKey.verify() with the default scheme, also used by X.509 certificate and PKCS#7 verification) ignored extra elements inside the nested DigestAlgorithm SEQUENCE of the DigestInfo. For RSA keys with a low public exponent (e=3) this allows signatures to be forged for an arbitrary message without the private key. This is an incomplete fix of CVE-2026-33894. Fixed in node-forge 1.4.1. Details In lib/rsa.js, key.verify() with the default RSASSA-PKCS1-V15 scheme removes the padding, parses the recovered DigestInfo with asn1.fromDer() and checks it with asn1.validate() against digestInfoValidator. The fix for CVE-2026-33894 (GHSA-ppp5-5v6c-4jwp) added a check on the element count of the outer DigestInfo SEQUENCE only. asn1.validate() ignores extra children of the nested DigestAlgorithm SEQUENCE, so elements placed after the OID and NULL parameters were neither validated nor counted. They give an attacker a block of freely chosen bytes inside an accepted DigestInfo, enough to construct a signature that verifies for an arbitrary message without the private key when the public exponent is small (Bleichenbacher-style forgery). RFC 8017…
Proof-of-concept code is published
Public PoC
- Public PoCgooglesky/CVE-2026-85393
Signals come from Exploit-DB, Metasploit, Nuclei and published proof-of-concept repositories. Their absence means nothing was found, not that nothing exists.
Assessment
- CVSS
- 7.5 (v3.1)
- Severity
- High
- EPSS
- 0.00268% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Public PoC
- Published
- 1 December 2026
- Last updated
- 1 December 2026
- Affected
- digitalbazaar · forge · node-forge
- Weakness
- CWE-347
- Assigner
- VulnCheck
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
At the source
References
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-2g46-22mc-6gwp
- https://nvd.nist.gov/vuln/detail/CVE-2026-85393
- https://github.com/digitalbazaar/forge/issues/1149
- https://github.com/digitalbazaar/forge/pull/1152
- https://github.com/digitalbazaar/forge/pull/1163
- https://github.com/digitalbazaar/forge/commit/2bce9d477a2ff436e86ff9694ae999f1552aa2bb
- https://github.com/digitalbazaar/forge/blob/v1.4.0/lib/asn1.js
- https://github.com/digitalbazaar/forge/blob/v1.4.0/lib/rsa.js
- https://www.vulncheck.com/advisories/node-forge-through-1.4.0-rsa-pkcs-1-1.5-signature-forgery-via-nested-digestalgorithm-padding
- https://github.com/advisories/GHSA-2g46-22mc-6gwp
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-85393