Skip to content

GEM_HOME is world writable without enough documentation or info #507

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

Open
prabhu opened this issue Apr 19, 2025 · 1 comment
Open

GEM_HOME is world writable without enough documentation or info #507

prabhu opened this issue Apr 19, 2025 · 1 comment

Comments

@prabhu
Copy link

prabhu commented Apr 19, 2025

GEM_HOME is set to /usr/local/bundle and made world sticky + writable. This could introduce several supply-chain-related vulnerabilities and are usually harder to detect, since most scanning tools, including SBOM tools, do not collect all files. A workaround could be to encourage the use of GEM_PATH with a separate directory such as /opt/ruby-latest/bundle. Alternatively, the documentation could be updated to mention the presence of this sticky, world-writable directory in the images.

@tianon
Copy link
Member

tianon commented Apr 21, 2025

See #74 (comment) for some prior explanation/discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants