CVE-2024-21484: Jsrsasign Marvin Attack Of RSA And Vulnerability

HIGH
Advisory Identifier: GHSA-rh63-9qcf-83gf
CVSS 7.5
CWE-203
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-21484
GHSA Identifier GHSA-rh63-9qcf-83gf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-203: Observable Discrepancy
Affected Product Jsrsasign
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability Low (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.

jsrsasign fixed: 11.0.0
npm install jsrsasign@11.0.0
Verify Direct and Transitive Dependencies

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

### Impact RSA PKCS#1.5 or RSAOAEP ciphertexts may be decrypted by this Marvin attack vulnerability. ### Patches update to jsrsasign 11.0.0. ### Workarounds Find and replace RSA and RSAOAEP decryption with other crypto library. ### References https://people.redhat.com/~hkario/marvin/ https://github.com/kjur/jsrsasign/issues/598 https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6070732 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21484

CVE-2024-21484 Affected Jsrsasign Versions

1 component(s)
Fixed Versions:
11.0.0
Product / Package Ecosystem Affected Versions Fixed Version
jsrsasign
npm
< 11.0.0
11.0.0

References

Frequently Asked Questions

What is CVE-2024-21484?
CVE-2024-21484 is a security vulnerability in Jsrsasign involving Marvin Attack of RSA and RSAOAEP decryption in jsrsasign under CWE-203: Observable Discrepancy.
Which Jsrsasign versions are affected?
Affected versions include releases prior to 11.0.0 across affected packages: jsrsasign.
What version fixes CVE-2024-21484?
Upgrading to 11.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jsrsasign affected?
Yes, jsrsasign is affected in releases prior to 11.0.0. Upgrade your dependency to 11.0.0 or later.
What is the CVSS score of CVE-2024-21484?
CVE-2024-21484 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:L.
What CWE is associated with CVE-2024-21484?
CVE-2024-21484 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check npm dependencies for CVE-2024-21484?
Run the dependency tree command: 'npm ls jsrsasign'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}