Critical Reverse Shell Vulnerability in eth-gas-oracle Package

eth-gas-oracle Updated 11 Oct 2026

Summary

11/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17786: Malicious code in eth-gas-oracle (RubyGems). Affects eth-gas-oracle versions 0.9.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The eth-gas-oracle package is a RubyGem designed to provide gas price estimates for Ethereum transactions. It is utilized by developers to optimize transaction costs on the Ethereum network. However, this package has been compromised, embedding malicious code that poses a significant security risk to users who install it.

Vulnerability Detail

The vulnerability originates from a malicious payload embedded within the gem's native extension build script (ext/extconf.rb). This script base64-decodes the payload and executes it using eval in a detached child process during the gem installation. The payload establishes a reverse shell connection to a hardcoded IP address (45.138.12.177:8089), allowing the attacker to execute arbitrary commands on the victim's machine. The execution is gated by checks for certain environment variables and user artifacts, making it particularly insidious as it targets developers' environments while evading detection in CI/CD pipelines.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

bundle remove eth-gas-oracle

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid installing the eth-gas-oracle package until a patched version is released. Additionally, consider using alternative packages for gas price estimation that do not have known vulnerabilities.

Conclusion

The eth-gas-oracle package contains a critical vulnerability that allows for remote command execution through a reverse shell. Users are advised to update or uninstall the package and utilize alternative solutions until a secure version is available. Continuous monitoring for vulnerabilities using tools like Vulert is essential for maintaining a secure development environment.

See every vulnerability recorded for eth-gas-oracle →

Share this vulnerability

FAQ

The vulnerability involves embedded malicious code that creates a reverse shell, allowing remote command execution on the installer's machine.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If you have installed the package, it is recommended to uninstall it immediately and monitor your system for any suspicious activity.

The vulnerability is particularly targeted at developer environments, especially those containing sensitive artifacts like SSH keys and configuration files.

Ensure that your development environment is secure by using tools like Vulert to monitor for vulnerabilities, and avoid installing unverified packages.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

bundle remove eth-gas-oracle

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback