GHSA-g753-jx37-7xwh: Jsrsasign ECDSA Signature Vulnerability Of Minerva Vulnerability
MODERATEGHSA-g753-jx37-7xwh is a MODERATE (CVSS 5.9) ecdsa signature vulnerability of minerva vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Jsrsasign libraries in the npm ecosystem. The issue involves ecdsa signature vulnerability of minerva timing attack in jsrsasign. Remediation is available by upgrading affected packages to version 8.0.13.
GHSA-g753-jx37-7xwh at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N).
How to Fix GHSA-g753-jx37-7xwh
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@8.0.13
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 GHSA-g753-jx37-7xwh, 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 8.0.13), 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. 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
GHSA-g753-jx37-7xwh Affected Jsrsasign Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jsrsasign
|
npm |
≥ 4.0.0
< 8.0.13
|
8.0.13
|
References
Frequently Asked Questions
What is GHSA-g753-jx37-7xwh?
Which Jsrsasign versions are affected?
What version fixes GHSA-g753-jx37-7xwh?
Is jsrsasign affected?
What is the CVSS score of GHSA-g753-jx37-7xwh?
What CWE is associated with GHSA-g753-jx37-7xwh?
How can I check npm dependencies for GHSA-g753-jx37-7xwh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g753-jx37-7xwh",
"modified" : "2021-09-22T18:43:42Z",
"published" : "2020-06-30T16:05:08Z",
"aliases" : [ ],
"summary" : "ECDSA signature vulnerability of Minerva timing attack in jsrsasign",
"details" : "### Impact\nECDSA side-channel attack named [Minerava](https://minerva.crocs.fi.muni.cz/) have been found and it was found that it affects to jsrsasign.\n\nExecution time of thousands signature generation have been observed then EC private key which is scalar value may be recovered since point and scalar multiplication time depends on bits of scalar. In jsrsasign 8.0.13 or later, execution time of EC point and scalar multiplication is almost constant and fixed for the issue.\n\n- Minerva is one of timing attack or side channel attack for EC.\n- If you don't use ECDSA class, you are not affected the vulnerability.\n- The vulnerability is that attacker may guess private key by checking processing time of EC key generation or ECDSA signing.\n- The cause issue is that point multiplication processing time in ECDSA signing is depends on private key value.\n- After 8.0.13, processing time of point multiplication in ECDSA signing have become constant for key value in theory.\n\n### Patches\nUsers using ECDSA signature generation should upgrade to 8.0.13 or later.\n\n### Workarounds\nThere is no workarounds in jsrsasign. Update jsrsasign or use other ECDSA library.\n\n### ACKNOWLEDGEMENT\nThanks to Jan Jancar @J08nY, Petr Svenda and Vladimir Sedlacek of Masaryk University in Czech Republic to find and report this vulnerability.\n\n### References\nhttps://minerva.crocs.fi.muni.cz/\nhttps://www.npmjs.com/advisories/1505\nhttps://github.com/kjur/jsrsasign/issues/411",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jsrsasign"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "8.0.13"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kjur/jsrsasign/security/advisories/GHSA-g753-jx37-7xwh"
}, {
"type" : "WEB",
"url" : "https://github.com/kjur/jsrsasign/issues/411"
}, {
"type" : "WEB",
"url" : "https://github.com/kjur/jsrsasign/commit/9dcb89c57408a3d4b5b66aa9138426bd92819e73"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kjur/jsrsasign"
}, {
"type" : "WEB",
"url" : "https://github.com/kjur/jsrsasign/releases/tag/8.0.13"
}, {
"type" : "WEB",
"url" : "https://minerva.crocs.fi.muni.cz"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-JSRSASIGN-561755"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1505"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-29T19:33:15Z",
"nvd_published_at" : null
}
}