CVE-2021-33420: Replicator Replicator Vulnerable To Deserialization Of Vulnerability
CRITICALCVE-2021-33420 is a CRITICAL (CVSS 9.8) replicator vulnerable to deserialization of vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Replicator libraries in the npm ecosystem. The issue involves replicator vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 1.0.4.
CVE-2021-33420 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-33420
To remediate this vulnerability, upgrade all affected Replicator 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 replicator@1.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls replicator
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-33420, inspect your project dependencies using npm:
npm ls replicator
Analyze the terminal output to locate any version of Replicator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.4), your application is affected.
Note: The npm ls replicator 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Replicator, 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-2021-33420 Affected Replicator Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
replicator
|
npm |
< 1.0.4
|
1.0.4
|
References
Frequently Asked Questions
What is CVE-2021-33420?
Which Replicator versions are affected?
What version fixes CVE-2021-33420?
Is replicator affected?
What is the CVSS score of CVE-2021-33420?
What CWE is associated with CVE-2021-33420?
How can I check npm dependencies for CVE-2021-33420?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hw46-vg6w-88fj",
"modified" : "2022-12-20T19:06:15Z",
"published" : "2022-12-15T21:30:28Z",
"aliases" : [ "CVE-2021-33420" ],
"summary" : "replicator vulnerable to Deserialization of Untrusted Data",
"details" : "A deserialization issue discovered in inikulin replicator before 1.0.4 allows remote attackers to run arbitrary code via the fromSerializable function in TypedArray object.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "replicator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-33420"
}, {
"type" : "WEB",
"url" : "https://github.com/inikulin/replicator/issues/16"
}, {
"type" : "WEB",
"url" : "https://github.com/inikulin/replicator/pull/17"
}, {
"type" : "WEB",
"url" : "https://github.com/inikulin/replicator/commit/2c626242fb4a118855262c64b5731b2ce98e521b"
}, {
"type" : "WEB",
"url" : "https://advisory.checkmarx.net/advisory/CX-2021-4787"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/inikulin/replicator"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-15T23:31:51Z",
"nvd_published_at" : "2022-12-15T19:15:00Z"
}
}