REDHAT-BUG-2442530: Path Traversal
Rollup is a module bundler for JavaScript. Versions prior to 2.80.0, 3.30.0, and 4.59.0 of the Rollup module bundler (specifically v4.x and present in current source) is vulnerable to an Arbitrary File Write via Path Traversal. Insecure file name sanitization in the core engine allows an attacker to control output filenames (e.g., via CLI named inputs, manual chunk aliases, or malicious plugins) and use traversal sequences (../) to overwrite files anywhere on the host filesystem that the build process has permissions for. This can lead to persistent Remote Code Execution (RCE) by overwriting critical system or user configuration files. Versions 2.80.0, 3.30.0, and 4.59.0 contain a patch for the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rollupto a version that resolves this vulnerability.Fixed in 2.80.0 - Upgrade
Upgrade
rollupto a version that resolves this vulnerability.Fixed in 3.30.0 - Upgrade
Upgrade
rollupto a version that resolves this vulnerability.Fixed in 4.59.0
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2442530?
The severity of REDHAT-BUG-2442530 is classified as high with a score of 7.
How do I fix REDHAT-BUG-2442530?
To fix REDHAT-BUG-2442530, update to versions 2.80.0, 3.30.0, or 4.59.0 or later of the Rollup module bundler.
What types of vulnerabilities does REDHAT-BUG-2442530 involve?
REDHAT-BUG-2442530 involves an Arbitrary File Write vulnerability due to Path Traversal.
Which versions are affected by the REDHAT-BUG-2442530 vulnerability?
Versions prior to 2.80.0, 3.30.0, and 4.59.0 of the Rollup module bundler are affected by REDHAT-BUG-2442530.
What is the impact of REDHAT-BUG-2442530?
The impact of REDHAT-BUG-2442530 allows an attacker to perform arbitrary file writes due to insecure file name sanitization.