uniget CLI: Metadata signature verification only runs when UNIGET_IGNORE_METADATA_SIGNATURE is set
A logic error in the uniget CLI causes metadata signature verification to run only when the environment variable UNIGET_IGNORE_METADATA_SIGNATURE is set, which is the opposite of the intended behavior. This flaw allows unverified, potentially malicious metadata.json files to be loaded and executed, leading to arbitrary command execution as the user running uniget. The issue affects uniget versions from 0.27.4 up to, but not including, 0.28.9. A patch is available to correct this verification logic.
AI Analysis
Technical Summary
The uniget CLI performs signature verification on its metadata.json file to ensure integrity and authenticity. However, due to a logic inversion introduced in version 0.27.4, the signature verification only occurs if the environment variable UNIGET_IGNORE_METADATA_SIGNATURE is set, which contradicts the variable's intended purpose. Normally, when this variable is unset, the signature check is skipped, allowing untrusted metadata to be loaded. This metadata controls commands executed via /bin/bash -c, enabling an attacker who can supply or poison metadata.json to execute arbitrary commands with the privileges of the uniget user. The flaw was introduced by a code change that removed the negation in the environment variable check, flipping the condition. The vulnerability affects all uniget versions >=0.27.4 and <0.28.9. A proof of concept demonstrates remote code execution by injecting malicious commands in the metadata. The issue is tracked under CVE with a CVSS 3.1 score of 7.8 (high severity).
Potential Impact
An attacker able to supply or tamper with the metadata.json file used by uniget can execute arbitrary commands as the user running uniget. This can occur via a compromised or attacker-controlled registry, mirror, or cache poisoning. The vulnerability enables command execution through the unchecked 'check' commands defined in the metadata, leading to full compromise of the user's environment where uniget runs. The impact includes confidentiality, integrity, and availability loss as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
A patch is available that restores the correct logic to ensure signature verification runs unless explicitly disabled. Users should upgrade to uniget version 0.28.9 or later where this issue is fixed. Until patched, avoid running uniget with untrusted metadata sources or setting the UNIGET_IGNORE_METADATA_SIGNATURE environment variable. The vendor advisory confirms a fix is available; apply the official update to remediate this vulnerability.
uniget CLI: Metadata signature verification only runs when UNIGET_IGNORE_METADATA_SIGNATURE is set
Description
A logic error in the uniget CLI causes metadata signature verification to run only when the environment variable UNIGET_IGNORE_METADATA_SIGNATURE is set, which is the opposite of the intended behavior. This flaw allows unverified, potentially malicious metadata.json files to be loaded and executed, leading to arbitrary command execution as the user running uniget. The issue affects uniget versions from 0.27.4 up to, but not including, 0.28.9. A patch is available to correct this verification logic.
CVSS v3.1
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The uniget CLI performs signature verification on its metadata.json file to ensure integrity and authenticity. However, due to a logic inversion introduced in version 0.27.4, the signature verification only occurs if the environment variable UNIGET_IGNORE_METADATA_SIGNATURE is set, which contradicts the variable's intended purpose. Normally, when this variable is unset, the signature check is skipped, allowing untrusted metadata to be loaded. This metadata controls commands executed via /bin/bash -c, enabling an attacker who can supply or poison metadata.json to execute arbitrary commands with the privileges of the uniget user. The flaw was introduced by a code change that removed the negation in the environment variable check, flipping the condition. The vulnerability affects all uniget versions >=0.27.4 and <0.28.9. A proof of concept demonstrates remote code execution by injecting malicious commands in the metadata. The issue is tracked under CVE with a CVSS 3.1 score of 7.8 (high severity).
Potential Impact
An attacker able to supply or tamper with the metadata.json file used by uniget can execute arbitrary commands as the user running uniget. This can occur via a compromised or attacker-controlled registry, mirror, or cache poisoning. The vulnerability enables command execution through the unchecked 'check' commands defined in the metadata, leading to full compromise of the user's environment where uniget runs. The impact includes confidentiality, integrity, and availability loss as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
A patch is available that restores the correct logic to ensure signature verification runs unless explicitly disabled. Users should upgrade to uniget version 0.28.9 or later where this issue is fixed. Until patched, avoid running uniget with untrusted metadata sources or setting the UNIGET_IGNORE_METADATA_SIGNATURE environment variable. The vendor advisory confirms a fix is available; apply the official update to remediate this vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fhgh-wq4q-r37x
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a838c4dbf8831d539b4cc3e
Added to database: 08/17/2026, 22:33:49 UTC
Last enriched: 08/17/2026, 22:41:31 UTC
Last updated: 08/17/2026, 23:40:37 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.