SB2022082510 - Multiple vulnerabilities in node-forge
Published: August 25, 2022 Updated: November 6, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 vulnerabilities.
1) Improper Verification of Cryptographic Signature (CVE-ID: CVE-2022-24772)
CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature
CVSSv4: 8.7 [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]
The vulnerability allows a remote attacker to perform MitM attack.
The vulnerability exists due to incorrect RSA PKCS#1 v1.5 signature verification caused by a missing check or tailing garbage bytes after decoding a `DigestInfo` ASN.1 structure. A remote attacker can forge a signature and perform a man-in-the-middle (MitM) attack.
2) Improper Verification of Cryptographic Signature (CVE-ID: CVE-2022-24771)
CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature
CVSSv4: 8.7 [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]
The vulnerability allows a remote attacker to bypass security restrictions.
The vulnerability exists due to a improper signature verification when checking the digestAlgorithm structure. A remote unauthenticated attacker can use a specially-crafted structure to steal padding bytes and use unchecked portion of the PKCS#1 encoded message to exploit this vulnerability and forge a signature when a low public exponent is being used.
3) Improper Verification of Cryptographic Signature (CVE-ID: CVE-2022-24773)
CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature
CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to signature verification code does not properly check `DigestInfo` for a proper ASN.1 structure. A remote unauthenticated attacker can get a successful verification with signatures that contain invalid structures but a valid digest
Remediation
Install update from vendor's website.
References
- https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1
- https://github.com/digitalbazaar/forge/commit/bb822c02df0b61211836472e29b9790cc541cdb2
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-x4jg-mjrx-434g
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-2r2c-g63r-vccr