Skip to content

Protect pinned RubyGems tool installs with live version admission - #1209

Merged
PyRo1121 merged 5 commits into
mainfrom
fix/rubygems-install-admission
Dec 4, 2026
Merged

PyRo1121 merged 5 commits into
mainfrom
fix/rubygems-install-admission

Conversation

@PyRo1121

@PyRo1121 PyRo1121 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Add pinned RubyGems tool installs through omg tool install gem:NAME@VERSION and bump the CLI patch version to 0.2.1.

The CLI requests a fresh production assessment before invoking Ruby. It resolves the runtime dependency graph from registry metadata, admits every coordinate, verifies the registry SHA-256 and embedded specification for every archive, and installs the reviewed files into isolated staging. A failed or partial assessment blocks installation. Native extensions and RubyGems plugins are excluded from this install path.

On Arch Linux the CLI returned exit 1 for uznex@99.0.0, uznex-api-doc@99.0.1 and enkash-pg@1.0.0 with their production malware advisory IDs. Each left the new test account without a gem archive or installed specification. The same account installed published rake@13.3.1 and ran the linked executable, which printed rake, version 13.3.1. Its archive digest matched RubyGems.

Release validation also surfaced a yanked Rust dependency and a retired Debian mirror path used by the QEMU coverage controller. The lockfiles now use pin-project-lite 0.2.19. The controller now fetches libslirp 4.9.7-1 by immutable Debian snapshot ID and verifies the signed-index SHA-256 for both architectures. All nine focused controller tests passed. The updated CLI also installed and ran rspec-core 3.13.5 with rspec-support 3.13.8.

@snyk-io

snyk-io Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@PyRo1121
PyRo1121 merged commit b30fea2 into main Dec 4, 2026
75 of 78 checks passed
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

Successfully merging this pull request may close these issues.

2 participants