You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected versions of this package are vulnerable to Arbitrary File Overwrite. This is due to insufficient absolute path sanitization.
node-tar aims to prevent extraction of absolute file paths by turning absolute paths into relative paths when the preservePaths flag is not set to true. This is achieved by stripping the absolute path root from any absolute file paths contained in a tar file. For example, the path /home/user/.bashrc would turn into home/user/.bashrc.
This logic is insufficient when file paths contain repeated path roots such as ////home/user/.bashrc. node-tar only strips a single path root from such paths. When given an absolute file path with repeating path roots, the resulting path (e.g. ///home/user/.bashrc) still resolves to an absolute path.
Remediation
Upgrade tar to version 3.2.2, 4.4.14, 5.0.6, 6.1.1 or higher.
Affecting Packages/Plugins
,* @backstage/backend-test-utils
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Arbitrary File Overwrite. This is due to insufficient absolute path sanitization.
node-tar
aims to prevent extraction of absolute file paths by turning absolute paths into relative paths when thepreservePaths
flag is not set totrue
. This is achieved by stripping the absolute path root from any absolute file paths contained in a tar file. For example, the path/home/user/.bashrc
would turn intohome/user/.bashrc
.This logic is insufficient when file paths contain repeated path roots such as
////home/user/.bashrc
.node-tar
only strips a single path root from such paths. When given an absolute file path with repeating path roots, the resulting path (e.g.///home/user/.bashrc
) still resolves to an absolute path.Remediation
Upgrade
tar
to version 3.2.2, 4.4.14, 5.0.6, 6.1.1 or higher.References
The text was updated successfully, but these errors were encountered: