CVE-2026-54160

Network UPS Tools: A PWN Request in make-dist workflow can execute PR-controlled code with write-scoped GITHUB_TOKEN

Published Sep 28, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
Description
Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS, PDU and SCD hardware. Prior to commits 658b24e and 1aa31d1, the GitHub Actions script used to prepare NUT tarballs and update GitHub Checks statuses and PR comments about it was mis-structured in terms of mixing code running with higher privileges (single-use token generated with write permissions) and untrusted inputs (PR source branch). A malicious PR run from a fork could extract the GITHUB_TOKEN value. It could potentially be abused while it was valid (while the GHA job ran) to manipulate Git repository contents, commit checks/statuses, or issue/PR comments, according to permissions it was issued with. This issue has been patched via commits 658b24e and 1aa31d1.

Analysis

AI-generated

Technical impact

The vulnerability arises from a mis‑structured GitHub Actions workflow that mixes privileged code, executing with a write‑scoped GITHUB_TOKEN, and untrusted inputs—the source branch of a pull request. A malicious PR from a fork can cause the action to read the token and use it to modify the repository, alter commit checks or status updates, and add PR comments. This account or resource hijacking flaw is classified as CWE‑829.

Affected Systems

The affected systems are the Network UPS Tools (nut) repository. Any instance of the project that uses the GitHub Actions script before commits 658b24e and 1aa31d1 is vulnerable. No specific product version list is provided, so all unpatched releases that rely on this workflow are at risk.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity flaw. EPSS is not available, and it has not been listed in the CISA KEV catalog. Based on the description, the likely attack vector is an attacker submitting a pull request from a fork and triggering the GitHub Actions workflow. During the job’s execution the write‑scoped token can be exploited to alter repository content, status checks, or PR comments, potentially bypassing code review and causing misconfiguration or service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the patched commits 658b24e and 1aa31d1 or upgrade to a release that includes the fix
  • Revoke and rotate any compromised GITHUB_TOKENs used by the workflow
  • Configure the GitHub Actions workflow to run with least privilege, using a read‑only token or limiting write permissions to trusted branches

Generated by OpenCVE AI on September 28, 2026 at 17:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Networkupstools
Networkupstools nut
Vendors & Products Networkupstools
Networkupstools nut
Type Values Removed Values Added
Description Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS, PDU and SCD hardware. Prior to commits 658b24e and 1aa31d1, the GitHub Actions script used to prepare NUT tarballs and update GitHub Checks statuses and PR comments about it was mis-structured in terms of mixing code running with higher privileges (single-use token generated with write permissions) and untrusted inputs (PR source branch). A malicious PR run from a fork could extract the GITHUB_TOKEN value. It could potentially be abused while it was valid (while the GHA job ran) to manipulate Git repository contents, commit checks/statuses, or issue/PR comments, according to permissions it was issued with. This issue has been patched via commits 658b24e and 1aa31d1.
Title Network UPS Tools: A PWN Request in make-dist workflow can execute PR-controlled code with write-scoped GITHUB_TOKEN
Weaknesses CWE-829
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 5:23 PM
Reserved
Jun 11, 2026, 9:46 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 5:17 PM
Modified
Sep 30, 2026, 7:56 PM