CVE-2024-28863: node-tar vulnerable to denial of service while parsing a tar file due to lack of folders count validation

Published Mar 21, 2024
·
Updated

Description: During some analysis today on npm's node-tar package I came across the folder creation process, Basicly if you provide node-tar with a path like this ./a/b/c/foo.txt it would create every folder and sub-folder here a, b and c until it reaches the last folder to create foo.txt, In-this case I noticed that there's no validation at all on the amount of folders being created, that said we're actually able to CPU and memory consume the system running node-tar and even crash the nodejs client within few seconds of running it using a path with too many sub-folders inside

Steps To Reproduce: You can reproduce this issue by downloading the tar file I provided in the resources and using node-tar to extract it, you should get the same behavior as the video

Proof Of Concept: Here's a video show-casing the exploit:

Impact

Denial of service by crashing the nodejs client when attempting to parse a tar archive, make it run out of heap memory and consuming server CPU and memory resources

Report resources payload.txt archeive.tar.gz

Note This report was originally reported to GitHub bug bounty program, they asked me to report it to you a month ago

Other sources

node-tar is a Tar for Node.js. node-tar prior to version 6.2.1 has no limit on the number of sub-folders created in the folder creation process. An attacker who generates a large number of sub-folders can consume memory on the system running node-tar and even crash the Node.js client within few seconds of running it using a path with too many sub-folders inside. Version 6.2.1 fixes this issue by preventing extraction in excessively deep sub-folders.

— NVD

node-tar vulnerable to denial of service while parsing a tar file due to lack of folders count validation

— Microsoft

Affected Software

24 affected componentsFixes available
npm/tar<6.2.1
6.2.1
npm/node-tar<6.2.1
6.2.1
F5 BIG-IP (iRulesLX/iAppsLX)>=17.1.0<=17.1.1
F5 BIG-IP (iRulesLX/iAppsLX)>=16.1.0<=16.1.4
F5 BIG-IP (iRulesLX/iAppsLX)>=15.1.0<=15.1.10
isaacs Tar Node.js<6.2.1
Microsoft cbl2 tar 1.34-3
Microsoft azl3 tar 1.35-2
Microsoft cbl2 nodejs18 18.20.2-2
Microsoft cbl2 nodejs18 18.20.2-2
Microsoft azl3 nodejs 20.10.0-2
Microsoft cbl2 reaper 3.1.1-18
Microsoft cbl2 nodejs18 18.20.3-1
Microsoft azl3 nodejs 20.14.0-1
Microsoft cbl2 reaper 3.1.1-17
IBM Concert Software<=1.0.0-2.2.0
debian/node-tar<6.1.13+~cs7.0.5-1+deb12u1
6.1.13+~cs7.0.5-1+deb12u1
debian/node-tar<6.1.13+~cs7.0.5-2
6.1.13+~cs7.0.5-2
debian/node-tar<6.1.13+~cs7.0.5-2
6.1.13+~cs7.0.5-2
redhat/node-tar<6.2.1
6.2.1
debian/node-tar<=6.1.13+~cs7.0.5-1
6.0.5+ds1+~cs11.3.9-1+deb11u36.1.13+~cs7.0.5-1+deb12u16.1.13+~cs7.0.5-2
ubuntu/node-tar*
ubuntu/node-tar*
ubuntu/node-tar*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/tar to a version that resolves this vulnerability.

    Fixed in 6.2.1
  2. Upgrade

    Upgrade npm/node-tar to a version that resolves this vulnerability.

    Fixed in 6.2.1
  3. Upgrade

    Upgrade debian/node-tar to a version that resolves this vulnerability.

    Fixed in 6.1.13+~cs7.0.5-1+deb12u1
  4. Upgrade

    Upgrade debian/node-tar to a version that resolves this vulnerability.

    Fixed in 6.1.13+~cs7.0.5-2
  5. Upgrade

    Upgrade redhat/node-tar to a version that resolves this vulnerability.

    Fixed in 6.2.1
  6. Upgrade

    Upgrade debian/node-tar to a version that resolves this vulnerability.

    Fixed in 6.0.5+ds1+~cs11.3.9-1+deb11u3Fixed in 6.1.13+~cs7.0.5-1+deb12u1Fixed in 6.1.13+~cs7.0.5-2
  7. Upgrade

    Upgrade node-tar to a version that resolves this vulnerability.

    Fixed in 6.2.1

Event History

Mar 21, 2024
CVE Published
via MITRE·10:10 PM
Data Sourced
via MITRE·10:10 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Mar 22, 2024
Advisory Published
via GitHub·04:57 PM
Data Sourced
via GitHub·04:57 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·04:57 PM
Apr 9, 2024
Updated
via GitHub·07:02 PM
Affected Software
May 16, 2024
Advisory Published
via F5·04:21 AM
Data Sourced
via F5·04:21 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via F5·05:33 AM
Jun 20, 2024
Data Sourced
via Red Hat·09:18 AM
DescriptionSeverityAffected Software
Jun 30, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·02:00 PM
Severity
Jul 8, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Jul 10, 2024
Updated
via Microsoft·12:00 AM
Description
Aug 1, 2024
Updated
via IBM·12:00 AM
Affected Software
Aug 6, 2024
Updated
via IBM·12:00 AM
Affected Software
Aug 14, 2024
Updated
via IBM·12:00 AM
Affected Software
Dec 17, 2024
Updated
via IBM·12:00 AM
Affected Software
Aug 17, 2025
Updated
via IBM·12:00 AM
DescriptionAffected Software
Jan 21, 2026
Updated
via IBM·12:00 AM
Affected Software
Feb 18, 2026
Updated
via Microsoft·10:16 AM
Description
Mar 23, 2026
Updated
via IBM·12:00 AM
Affected Software
Jun 17, 2026
Data Sourced
via NVD·07:21 AM
RemedyAffected Software
Sep 28, 2026
Event
via FIRST·12:00 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-28863?

CVE-2024-28863 has been classified with a significant risk due to its impact on folder creation and potential for unauthorized file manipulation.

2

How do I fix CVE-2024-28863?

To mitigate CVE-2024-28863, ensure you update to node-tar version 6.2.1 or later.

3

What products are affected by CVE-2024-28863?

CVE-2024-28863 affects F5 BIG-IP (iRulesLX/iAppsLX) versions 15.1.0 to 15.1.10, 16.1.0 to 16.1.4, and 17.1.0 to 17.1.1, alongside specific npm packages like node-tar.

4

What vulnerabilities does CVE-2024-28863 relate to in npm's node-tar?

CVE-2024-28863 is related to the folder creation process in the npm package node-tar, which allows for incorrect path manipulations.

5

Is there a patch available for CVE-2024-28863?

Yes, there are patches available for IBM Cognos Analytics and a specific update for node-tar to address CVE-2024-28863.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203