MAL-2026-20212 Malicious code in gmo-payment-carrier (RubyGems)
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- MySQLCloud Platforms
Description
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (98f131dbde032aa5e99feeaa4175c1fbccf2f634cad07c43ee2b4a0a86044d1b)
The gem executes credential-theft code on two surfaces. At install time, extconf.rb (invoked during gem install) collects host identity (hostname, whoami, uname -a, pwd, local IPv4), performs an IMDSv2 token request against 169.254.169.254 and reads the IAM role plus security-credentials, enumerates ECS task metadata, and sweeps environment variables matching DATABASE/DB_/MYSQL/AURORA/POSTGRES/REDIS/RDS, then HTTP GETs the collected data to a hardcoded collector at https://webhook.site/4b2354a7-67fd-4641-92ac-e18bac8c09e8. The library entry point lib/gmo-payment-carrier.rb unconditionally require_relative 'runtime_payload', which repeats the same IMDSv2 credential harvest, ECS metadata read, DB env-var sweep, and host-recon exfil to the same webhook.site URL on every require 'gmo-payment-carrier'. Both paths target the installer / CI / production host and ship AWS IAM role credentials and database secrets to a third-party collector unrelated to any declared publisher.
Source: ossf-package-analysis (07e023905035c12b1ac038a3fe75b5de84965c65321eb325170be7bebd5b57ad)
The OpenSSF Package Analysis project identified 'gmo-payment-carrier' @ 0.0.99 (rubygems) as malicious.
It is considered malicious because:
- The package executes one or more commands associated with malicious behavior.
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| rubygems gmo-payment-carrier(RubyGems) | = 0.0.99 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems gmo-payment-carrier(RubyGems) | = 0.0.99 | No fix listed |
References
- rubygems.org product