CVE-2024-21484: Jsrsasign Marvin Attack Of RSA And Vulnerability
HIGHCVE-2024-21484 is a HIGH (CVSS 7.5) marvin attack of rsa and vulnerability (CWE-203: Observable Discrepancy) affecting Jsrsasign libraries in the npm ecosystem. The issue involves marvin attack of rsa and rsaoaep decryption in jsrsasign. Remediation is available by upgrading affected packages to version 11.0.0.
CVE-2024-21484 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:L).
How to Fix CVE-2024-21484
To remediate this vulnerability, upgrade all affected Jsrsasign dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install jsrsasign@11.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jsrsasign
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-21484, inspect your project dependencies using npm:
npm ls jsrsasign
Analyze the terminal output to locate any version of Jsrsasign in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.0.0), your application is affected.
Note: The npm ls jsrsasign command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Jsrsasign, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-21484 Affected Jsrsasign Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jsrsasign
|
npm |
< 11.0.0
|
11.0.0
|
References
Frequently Asked Questions
What is CVE-2024-21484?
Which Jsrsasign versions are affected?
What version fixes CVE-2024-21484?
Is jsrsasign affected?
What is the CVSS score of CVE-2024-21484?
What CWE is associated with CVE-2024-21484?
How can I check npm dependencies for CVE-2024-21484?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rh63-9qcf-83gf",
"modified" : "2024-02-27T19:23:58Z",
"published" : "2024-01-19T15:06:07Z",
"aliases" : [ "CVE-2024-21484" ],
"summary" : "Marvin Attack of RSA and RSAOAEP decryption in jsrsasign",
"details" : "### Impact\nRSA PKCS#1.5 or RSAOAEP ciphertexts may be decrypted by this Marvin attack vulnerability.\n\n### Patches\nupdate to jsrsasign 11.0.0.\n\n### Workarounds\nFind and replace RSA and RSAOAEP decryption with other crypto library.\n\n### References\nhttps://people.redhat.com/~hkario/marvin/\nhttps://github.com/kjur/jsrsasign/issues/598\nhttps://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6070732\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21484",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jsrsasign"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "11.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kjur/jsrsasign/security/advisories/GHSA-rh63-9qcf-83gf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21484"
}, {
"type" : "WEB",
"url" : "https://github.com/kjur/jsrsasign/issues/598"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kjur/jsrsasign"
}, {
"type" : "WEB",
"url" : "https://github.com/kjur/jsrsasign/releases/tag/11.0.0"
}, {
"type" : "WEB",
"url" : "https://people.redhat.com/~hkario/marvin"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-6070734"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-6070733"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6070732"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-JSRSASIGN-6070731"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-203" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-19T15:06:07Z",
"nvd_published_at" : "2024-01-22T05:15:08Z"
}
}