Description
A command injection vulnerability exists in the h-ui (version v0.0.25 and below) administrative API due to improper validation of the listen configuration field. When an authenticated administrator submits a value containing shell metacharacters, the application constructs nftables/iptables rule strings using fmt.Sprintf and executes them via bash -c as root. Because the listen field lacks port or format validation, arbitrary OS commands can be injected and executed with root privileges.
Published: 2026-10-07
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Command Injection with root privileges
Action: Immediate Patch
AI Analysis

Impact

A command injection flaw exists in the h-ui administrative API for versions v0.0.25 and earlier. The flaw arises because the listen configuration field is not validated; an authenticated administrator can supply shell metacharacters which are incorporated into nftables/iptables rule strings via fmt.Sprintf and executed by the system shell as root. This allows the attacker to run arbitrary OS commands with kernel-level privileges, significantly compromising confidentiality, integrity, and availability of the host system.

Affected Systems

The vulnerability affects the h-ui application distributed by jonssonyan, specifically any installation running version v0.0.25 or earlier. Systems that expose the administrative API with an authenticated administrator credential are eligible.

Risk and Exploitability

Exploitability is high for individuals who can acquire legitimate administrator access. An attacker must authenticate to the h-ui API, then submit a crafted value for the listen field; the system will execute the embedded command as root due to the use of bash ‑c. The vulnerability carries a CVSS score of 9.1, indicating critical severity. The EPSS score is not available and the vulnerability is not yet listed in the CISA KEV catalog, but the lack of input validation combined with root execution means that a successful attack effectively elevates to system‑wide control.

Generated by OpenCVE AI on October 8, 2026 at 00:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update h-ui to a version newer than v0.0.25 that removes the vulnerable code or implements strict input validation.
  • Limit administrative API access to only trusted administrators and disable write access from untrusted sources.
  • Remove root privileges from the process that writes firewall rules, ensuring it operates with the least privilege required.
  • As a temporary measure, sanitize the listen field to accept only numeric port values and reject any shell metacharacters, if that functionality can be added without breaking other features.

Generated by OpenCVE AI on October 8, 2026 at 00:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Fri, 09 Oct 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Jonssonyan
Jonssonyan h-ui
Vendors & Products Jonssonyan
Jonssonyan h-ui

Wed, 07 Oct 2026 23:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-78

Wed, 07 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-77
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 07 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-78

Wed, 07 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Description A command injection vulnerability exists in the h-ui (version v0.0.25 and below) administrative API due to improper validation of the listen configuration field. When an authenticated administrator submits a value containing shell metacharacters, the application constructs nftables/iptables rule strings using fmt.Sprintf and executes them via bash -c as root. Because the listen field lacks port or format validation, arbitrary OS commands can be injected and executed with root privileges.
Title CVE-2026-107202
References

cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2026-10-07T20:39:57.719Z

Reserved: 2026-10-07T14:22:10.000Z

Link: CVE-2026-107202

cve-icon Vulnrichment

Updated: 2026-10-07T20:39:50.830Z

cve-icon NVD

Status : Deferred

Published: 2026-10-07T15:17:20.090

Modified: 2026-10-07T21:17:13.977

Link: CVE-2026-107202

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T08:15:55Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')