5.3medium
Improper Verification of Cryptographic Signature in `node-forge`
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.97% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2r2c-g63r-vccr
Description
Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code does not properly check `DigestInfo` for a proper ASN.1 structure. This can lead to successful verification with signatures that contain invalid structures but a valid digest. The issue has been addressed in `node-forge` version 1.3.0. There are currently no known workarounds.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| digitalbazaar forge | < 1.3.0, before 1.3.0 | CVE List, NVD |
| node-forge (npm) | before 1.3.0 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code does not properly check `DigestInfo` for a proper ASN.1 structure. This can lead to successful verification with signatures that contain invalid structures but a valid digest. The issue has been addressed in `node-forge` version 1.3.0. There are currently no known workarounds.
GitHub Advisory Database
Impact
RSA PKCS#1 v1.5 signature verification code is not properly checking DigestInfo for a proper ASN.1 structure. This can lead to successful verification with signatures that contain invalid structures but a valid digest.
Patches
The issue has been addressed in node-forge 1.3.0.
For more information
If you have any questions or comments about this advisory:
- Open an issue in forge
- Email us at example email address
NVD (es)
Forge (también llamado "node-forge") es una implementación nativa de Transport Layer Security en JavaScript. En versiones anteriores a 1.3.0, el código de verificación de firmas RSA PKCS#1 v1.5 no comprueba apropiadamente que "DigestInfo" tenga una estructura ASN.1 apropiada. Esto puede conllevar a una verificación con éxito con firmas que contienen estructuras no válidas pero un compendio válido. El problema ha sido abordado en "node-forge" versión 1.3.0. Actualmente no se presentan medidas de mitigación conocidas
References
| https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1 | patch, third-party-advisory, web | |
| https://github.com/digitalbazaar/forge/security/advisories/GHSA-2r2c-g63r-vccr | third-party-advisory, web | |
| https://github.com/digitalbazaar/forge/commit/bb822c02df0b61211836472e29b9790cc541cdb2 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-24773 | advisory | |
| https://github.com/digitalbazaar/forge | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-24773 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2r2c-g63r-vccr changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-24773 changed 2026-06-17 | Public domain |