Vulnerabilities in pkg:npm/bignum
PACKAGEGHSA-7cgc-fjv4-52x6 is a CRITICAL malware vulnerability (CWE-506: Embedded Malicious Code) affecting Bignum libraries in the npm ecosystem. The issue involves malware in pre-build binaries of bignum. Remediation is available by upgrading affected packages to version 0.13.1.
pkg:npm/bignum
Vulnerability advisories affecting package pkg:npm/bignum. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7cgc-fjv4-52x6 | - | CRITICAL | Malware in pre-build binaries of bignum |
| GHSA-6429-3g3w-6mw5 | CVE-2022-25324 | HIGH | Uncaught Exception in bignum |
GHSA-7cgc-fjv4-52x6 at a Glance
How to Fix GHSA-7cgc-fjv4-52x6
To remediate this vulnerability, upgrade all affected Bignum 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 bignum@0.13.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls bignum
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-7cgc-fjv4-52x6, inspect your project dependencies using npm:
npm ls bignum
Analyze the terminal output to locate any version of Bignum in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.13.1), your application is affected.
Note: The npm ls bignum 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-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Bignum, 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-7cgc-fjv4-52x6 Affected Bignum Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bignum
|
npm |
≥ 0.12.2
< 0.13.1
|
0.13.1
|
References
Frequently Asked Questions
What is GHSA-7cgc-fjv4-52x6?
Which Bignum versions are affected?
What version fixes GHSA-7cgc-fjv4-52x6?
Is bignum affected?
What CWE is associated with GHSA-7cgc-fjv4-52x6?
How can I check npm dependencies for GHSA-7cgc-fjv4-52x6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7cgc-fjv4-52x6",
"modified" : "2023-05-24T16:43:58Z",
"published" : "2023-05-24T16:43:58Z",
"aliases" : [ ],
"summary" : "Malware in pre-build binaries of bignum",
"details" : "### Impact\n\nbignum releases from v0.12.2 to v0.13.0 (inclusive) used node-pre-gyp to optionally download pre-built binary versions of the addon. These binaries were published on a now-expired S3 bucket which has since been claimed by a malicious third party which is now serving binaries containing malware that exfiltrates data from the user's computer.\n\n### Patches\n\nv0.13.1 does not use node-pre-gyp and does not have support for downloading pre-built binaries in any form, avoiding the risk of malicious downloads.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "bignum"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.12.2"
}, {
"fixed" : "0.13.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/justmoon/node-bignum/security/advisories/GHSA-7cgc-fjv4-52x6"
}, {
"type" : "WEB",
"url" : "https://github.com/justmoon/node-bignum/commit/57e48c3f052249725517415d83c7147e4a8c44c8"
}, {
"type" : "WEB",
"url" : "https://github.com/justmoon/node-bignum/commit/72951c53e7c5c1ac157f04686dc12c3c393b4b08"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/justmoon/node-bignum"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-506" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-24T16:43:58Z",
"nvd_published_at" : null
}
}