cvelo
P2 · HighMalware

Malicious code in uznex-api-doc (RubyGems)

  • MAL-2026-21134

Description

The gem declares `extconf.rb` as a native extension build script, but the script performs no compilation. On `gem install` it collects host and process context (hostname, current working directory, user, PID, /proc/1 container metadata), project files (Gemfile and Gemfile.lock contents), the installed gem list, and the values of every environment variable whose name matches credential-shaped patterns (TOKEN, KEY, SECRET, AWS, CI, GITHUB, GITLAB, NPM, PASS, GEM, BUNDLE, DEPLOY, KUBE, DOCKER). The collected data is serialized as JSON and sent via HTTP PUT to the hardcoded bucket https://uznex-front.s3.eu-central-1.amazonaws.com. The script then writes a stub Makefile so the install appears to complete normally. Developer and CI environments routinely hold cloud, registry and source-control tokens in exactly those variables, so installation results in those secrets leaving the host to a remote destination the installer does not control.

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

  • uznex-api-docRubyGems

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.