External control of file name or path In bundler
Description
Insecure path handling in Bundler
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
rubygems | 2.1.0 | ||
rpm rhel8 | 0:2.6.7-107.module+el8.4.0+10830+bbd85cce | ||
rpm rhel8 | - | - |
Aliases
1. 2. 3. 4. 5.
References
1. 2. 3. 4.