CVE-2022-24773
JSON

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 packageVersionsReported by
digitalbazaar forge< 1.3.0, before 1.3.0CVE List, NVD
node-forge (npm)before 1.3.0GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N

Classification

CWE-347

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:

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

Sources

SourceRecordLicence
CVE ListCVE-2022-24773 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-2r2c-g63r-vccr changed 2023-11-08CC-BY-4.0
NVDCVE-2022-24773 changed 2026-06-17Public domain