GEM_HOME is world writable without enough documentation or info
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, ruby
- Domain
- devops, documentation, security
Research direction
Start with the linked 3.4/slim-bookworm/Dockerfile and inspect how GEM_HOME is set and permissions are applied. Review the image documentation for GEM_HOME or GEM_PATH guidance; done should mean the chosen behavior or the sticky, world-writable directory is clearly addressed without leaving the proposed alternatives unresolved.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Shell
- Stars
- 624
- Forks
- 322
- Avg merge
- 22d 3h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker-library/ruby
-
run upstream tests Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
docker-library/ruby#503 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
docker-library/ruby#502 · 3 comments ·
-
Request
Difficulty 5/5 Over a week Newbie friendliness 30/100
docker-library/ruby#130 · 7 comments · 1 reaction ·
All issues in docker-library/ruby
Similar issues
-
Issue-Enhancement Needs-Triage
Difficulty 1/5 Under an hour Newbie friendliness 86/100
PowerShell/PowerShell#28061 · 2 reactions ·
-
Feature Request: Add ability to load custom environment variables in linux-exec-server-installer.sh Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
microsoft/vscode-remote-release#11867 ·
-
AuTest Bug Tests
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/trafficserver#13714 ·
-
Update to NCCL 2.32 Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
conda-forge/nccl-feedstock#166 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
vllm-project/agentic-api#358 · 1 comment ·