MAL-2026-21134 Malicious code in uznex-api-doc (RubyGems)
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Cloud Platforms
Description
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (d4acfad299a2c9f1296dc21382f99c6a4be5bec735f83b37789436ba5f42c315)
The gemspec declares extconf.rb in its extensions: list, so the script runs automatically during gem install. The script collects the hostname, current working directory and username, and builds a filtered dump of environment variables whose names match TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS or GEM patterns, then PUTs the result as JSON to the hardcoded bucket https://uznex-front.s3.eu-central-1.amazonaws.com. It subsequently writes a stub Makefile so the native build appears to succeed without compiling anything, and no real native source tree is built. Developer and CI environments routinely hold cloud, registry and VCS tokens in these variables, so installing the gem discloses credential-grade secrets and host identifiers to a third-party destination with no opt-in and no relation to any declared build requirement.
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| rubygems uznex-api-doc(RubyGems) | = 99.0.0; = 99.0.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems uznex-api-doc(RubyGems) | = 99.0.1 | No fix listed |
| rubygems uznex-api-doc(RubyGems) | = 99.0.0 | No fix listed |
References
- rubygems.org product
- rubygems.org product