Malicious code in uznex (RubyGems)
- MAL-2026-21133
Description
The gemspec declares `extensions: - extconf.rb`, so extconf.rb executes automatically during `gem install`. Instead of configuring a native build, the script collects host and project reconnaissance (hostname, working directory, user, PID, container indicators read from /proc/1, Gemfile and Gemfile.lock contents, the installed gem list) and performs a bulk dump of environment variables filtered on credential-shaped names (TOKEN, KEY, SECRET, AWS, GITHUB, GITLAB, NPM, PASS, DOCKER, KUBE and similar). The collected JSON is sent via an HTTPS PUT to the hardcoded bucket endpoint https://uznex-front.s3.eu-central-1.amazonaws.com. The script writes only a stub Makefile and compiles no native code, so the extension declaration exists solely to obtain install-time execution. Installing this gem on a developer machine or CI runner causes build and cloud credentials present in the environment to be transmitted to a third-party-controlled storage endpoint.
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
uznexRubyGems
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.