Insecure path handling in Bundler
High severity
GitHub Reviewed
Published
May 10, 2021
to the GitHub Advisory Database
•
Updated Jul 5, 2023
Description
Published by the National Vulnerability Database
Sep 4, 2020
Reviewed
May 4, 2021
Published to the GitHub Advisory Database
May 10, 2021
Last updated
Jul 5, 2023
Bundler prior to 2.1.0 uses a predictable path in
/tmp/
, created with insecure permissions as a storage location for gems, if locations under the user's home directory are not available. If Bundler is used in a scenario where the user does not have a writable home directory, an attacker could place malicious code in this directory that would be later loaded and executed.References