Description
node-forge through 1.4.0 fails to validate element count in nested DigestAlgorithm sequences during RSA PKCS#1 v1.5 signature verification. Attackers can embed garbage bytes inside the DigestAlgorithm sequence to forge valid signatures for arbitrary messages using low-exponent RSA keys. This is an incomplete fix for CVE-2026-33894.
Published: 2026-09-03
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The issue resides in the ASN.1 parsing logic used by node‑forge during RSA PKCS#1 v1.5 signature verification. The code ignores the expected element count inside nested DigestAlgorithm sequences, exposing the library to injection of malformed data. As a result, an attacker can embed garbage bytes that satisfy the parser’s expectations, allowing the construction of a forged signature that the library will accept. This flaw is classified as CWE-1284 and CWE-347, indicating improper element count validation and insufficient access control over the parsing process. A forged signature will appear authentic to any application that relies on this verification, compromising the integrity of signed data.

Affected Systems

All releases up to and including version 1.4.0 of the digitalbazaar forge JavaScript cryptography library are affected. Node.js applications that import forge via npm and perform RSA PKCS#1 v1.5 signature verification, especially those using low‑exponent RSA keys, will be vulnerable. The weakness is confined to the library and does not involve the underlying operating system or runtime.

Risk and Exploitability

The CVSS score of 8.7 classifies this vulnerability as high severity. EPSS data is not available and the issue is not listed in the CISA KEV catalog, indicating that no large‑scale exploits have been reported. Exploitation requires an attacker to supply a specially crafted signature that takes advantage of low‑exponent RSA keys; the attack can be performed remotely if the application accepts signatures from an external source. The impact is restricted to signature forgery, which can lead to unauthorized data processing or bypass of authentication checks, but does not provide direct code execution or denial of service. The likelihood of exploitation depends on the prevalence of low‑exponent keys in the target environment.

Generated by OpenCVE AI on September 4, 2026 at 03:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the forge library to v1.4.1 or later, where the element count check is fixed.
  • If a library upgrade cannot be performed immediately, replace forge with a maintained cryptography package that validates RSA PKCS#1 v1.5 signatures correctly.
  • Avoid low‑exponent RSA keys by enforcing a public exponent of 65537 or higher and a modulus length of at least 2048 bits.

Generated by OpenCVE AI on September 4, 2026 at 03:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1284
References
Metrics threat_severity

None

threat_severity

Important


Thu, 03 Sep 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 03 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
Description node-forge through 1.4.0 fails to validate element count in nested DigestAlgorithm sequences during RSA PKCS#1 v1.5 signature verification. Attackers can embed garbage bytes inside the DigestAlgorithm sequence to forge valid signatures for arbitrary messages using low-exponent RSA keys. This is an incomplete fix for CVE-2026-33894.
Title node-forge through 1.4.0 RSA PKCS#1 v1.5 Signature Forgery via Nested DigestAlgorithm Padding
First Time appeared Digitalbazaar
Digitalbazaar forge
Weaknesses CWE-347
CPEs cpe:2.3:a:digitalbazaar:forge:*:*:*:*:*:*:*:*
Vendors & Products Digitalbazaar
Digitalbazaar forge
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Digitalbazaar Forge
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-03T19:14:06.547Z

Reserved: 2026-09-03T18:10:52.622Z

Link: CVE-2026-85393

cve-icon Vulnrichment

Updated: 2026-09-03T19:14:03.413Z

cve-icon NVD

Status : Received

Published: 2026-09-03T19:17:31.103

Modified: 2026-09-03T20:17:28.747

Link: CVE-2026-85393

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-03T18:54:25Z

Links: CVE-2026-85393 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T03:15:04Z

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input

  • CWE-347

    Improper Verification of Cryptographic Signature