🛡️ CVE-2021-29057 — node-worker-threads-pool

⚪ Unknown ✅ No Known Exploit CWE-400 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

SUCHMOKUO node-worker-threads-pool denial of service Vulnerability

An issue was discovered in StaticPool in SUCHMOKUO node-worker-threads-pool version 1.4.3 that allows attackers to cause a denial of service.

This can be mitigated by manually creating a timeout. For example:

```ts

const { StaticPool } = require(\"node-worker-threads-pool\");

const staticPool = new StaticPool({

size: 1,

task: (n) => {

while (n) {

console.log(\"a\");

}

return n;

}

});

staticPool.createExecutor().setTimeout(10).exec(1).then((result) => {

console.log(\"result from thread pool:\", result);

}).catch(() => console.error('timeout'));

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Weakness class

CVE-2021-29057 is classified as CWE-400: Uncontrolled Resource Consumption. A request can consume memory, CPU or storage without limit, exhausting capacity for everyone else.

Affected software

CVE-2021-29057 is recorded against 1 package.

  • node-worker-threads-pool

Timeline and source

Published on 11 August 2023 and last revised on 3 October 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CWE CWE-400
Public Exploit ✅ No
Source OSV
Published 2023-08-11
Updated 2026-08-12
Modified 2024-10-03
Fix URL N/A

Affected Packages

Software From version Fixed in
node-worker-threads-pool

Free Vulnerability Check

Is your site affected by CVE-2021-29057?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2021-29057 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.