eth-gas-oracle (RubyGems) · Malicious Code
Affects eth-gas-oracleSource GCVE Database
Malicious package : remove eth-gas-oracle and rotate any secrets on hosts that installed it.
Data as of 11 Oct 2026, 21:44 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-17786
What to do
Remove eth-gas-oracle from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemseth-gas-oracle | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The eth-gas-oracle RubyGem version 0.9.1 contains malicious code embedded in its native extension build script. During installation, it decodes and executes a hidden Ruby payload that establishes a reverse shell to a hardcoded IP address, allowing remote command execution on the installer's machine. The payload includes evasion techniques to avoid detection in sandbox or CI environments and requires the presence of developer artifacts to activate. The package metadata is inconsistent, indicating it is a disposable vehicle for malicious activity rather than legitimate functionality.