MAL-2026-21134

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/uznex-api-doc/MAL-2026-21134.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21134
Published
2026-12-04T11:57:08Z
Modified
2026-12-04T12:30:17Z
Summary
Malicious code in uznex-api-doc (RubyGems)
Details

-= 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.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023235",
            "import_time":  "2026-12-04T12:16:56.871048028Z",
            "modified_time":  "2026-12-04T11:57:08Z",
            "sha256":  "ccde29e74cae8ccd23ad199a540d8029cfc98eb0b3318249dadfc467627c52aa",
            "source":  "amazon-inspector",
            "versions":  [
                "99.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-023236",
            "import_time":  "2026-12-04T12:16:56.927278292Z",
            "modified_time":  "2026-12-04T11:57:18Z",
            "sha256":  "d4acfad299a2c9f1296dc21382f99c6a4be5bec735f83b37789436ba5f42c315",
            "source":  "amazon-inspector",
            "versions":  [
                "99.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / uznex-api-doc

Package

Name
uznex-api-doc
Purl
pkg:gem/uznex-api-doc

Affected ranges

Affected versions

99.*
99.0.0
99.0.1

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "extconf.rb",
            "sha256":  "4fa590caa20302decfec4d43809241300bba8a087641c0d715c6fc6bfd2714e8",
            "tlsh":  "8f01f1e3c325fd249a9595e73c6ab5613d53ee3c52602c11d851a9d825c0c8a2263965"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "uznex-api-doc-99.0.1.gem",
            "hashes":  {
                "sha256":  "e4d8e41b63a20e7ee2b738edfac768053e4aa1c2f78200087ac00dbb094938ef"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/uznex-api-doc/MAL-2026-21134.json"