Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency tar to v6.2.1 [SECURITY] #606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tar 6.2.0 -> 6.2.1 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2024-28863

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


Release Notes

isaacs/node-tar (tar)

v6.2.1

Compare Source


Configuration

📅 Schedule: Branch creation - "" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch 2 times, most recently from 9ad2c26 to 7719c94 Compare April 25, 2024 10:26
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 7719c94 to 8245278 Compare April 25, 2024 23:34
@hmcts-jenkins-a-to-c hmcts-jenkins-a-to-c bot requested a deployment to preview April 25, 2024 23:46 Abandoned
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 8245278 to 2c98e4e Compare April 29, 2024 12:49
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 2c98e4e to 115d3d3 Compare April 29, 2024 13:51
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 115d3d3 to faf656d Compare April 30, 2024 10:11
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from faf656d to 054dcc3 Compare April 30, 2024 17:09
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 054dcc3 to 36267d9 Compare June 3, 2024 01:56
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch 2 times, most recently from c50fb60 to c21cf17 Compare June 17, 2024 22:13
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from c21cf17 to f6d50e8 Compare July 6, 2024 02:35
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from f6d50e8 to 0e6bf7b Compare August 5, 2024 10:17
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 0e6bf7b to 30dba4c Compare August 22, 2024 00:21
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 30dba4c to f151a8a Compare August 23, 2024 20:02
@renovate renovate bot force-pushed the renovate/npm-tar-vulnerability branch from 1a49a11 to d1178d3 Compare October 4, 2024 22:58
@hmcts-jenkins-a-to-c hmcts-jenkins-a-to-c bot requested a deployment to preview October 4, 2024 23:13 Abandoned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants