Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-54160 Overview
CVE-2026-54160 affects Network UPS Tools (NUT), a collection of programs providing a common interface for monitoring and administering UPS, PDU, and SCD hardware. The vulnerability resides in a GitHub Actions workflow that prepared NUT tarballs and updated GitHub Checks statuses and pull request comments. The workflow mixed privileged execution context with untrusted pull request source branch inputs. A malicious pull request from a fork could extract the GITHUB_TOKEN value and abuse it while valid to manipulate repository contents, commit checks, statuses, or issue and pull request comments. The issue is tracked under CWE-829: Inclusion of Functionality from Untrusted Control Sphere and was patched in commits 658b24e and 1aa31d1.
Critical Impact
A malicious fork-based pull request can exfiltrate a write-scoped GITHUB_TOKEN, enabling tampering with the NUT source repository, commit statuses, and issue or PR comments during the token's validity window.
Affected Products
- Network UPS Tools (NUT) repository GitHub Actions workflow prior to commit 658b24e
- Network UPS Tools (NUT) repository GitHub Actions workflow prior to commit 1aa31d1
- Downstream consumers relying on NUT release tarball integrity produced by the vulnerable workflow
Discovery Timeline
- 2026-09-28 - CVE-2026-54160 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-54160
Vulnerability Analysis
The flaw is a CI/CD supply chain weakness in a GitHub Actions workflow used by the networkupstools/nut repository. The workflow executed with elevated permissions and held a single-use GITHUB_TOKEN granting write access to repository contents, checks, statuses, and pull request comments. The same workflow consumed values derived from pull request source branches originating in forks. Attacker-controlled data flowing into the privileged step created a script injection surface. Successful exploitation allowed a fork PR author to read the workflow token and act as the CI job for the token's lifetime. Impact scope includes code tampering in the NUT repository, forged commit status signals that could mislead maintainers, and manipulated PR or issue comments used for social engineering.
Root Cause
The root cause is improper separation between privileged workflow logic and untrusted input, classified under CWE-829. The tarball preparation job did not sanitize or isolate branch-derived data before invoking shell contexts that had access to the workflow token. GitHub Actions treats such fork-triggered content as untrusted, and workflows must handle it in isolated, unprivileged steps.
Attack Vector
Exploitation requires an attacker to open a pull request from a fork containing a crafted branch name or repository content that the vulnerable workflow evaluates in a privileged step. When maintainer approval or automatic triggers cause the workflow to run, injected payloads execute inside the runner and exfiltrate GITHUB_TOKEN through outbound channels. The token can then be used programmatically against the GitHub API until the job completes. Attack complexity is high because it depends on workflow trigger conditions and maintainer interaction, but authentication is not required beyond a GitHub account capable of opening a pull request.
No public proof of concept is listed for CVE-2026-54160. See the GitHub Security Advisory GHSA-w6wj-3r73-fxmh and the remediation commit 658b24e for technical details.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-54160
Indicators of Compromise
- Unexpected commits, tags, or force-pushes in the networkupstools/nut repository authored by github-actions[bot] outside normal release cadence.
- Anomalous PR or issue comments and commit status updates posted by the workflow bot identity during fork PR builds.
- Outbound network requests from GitHub-hosted runners to non-GitHub domains during the tarball preparation job.
- Pull requests from forks with unusual branch names containing shell metacharacters, backticks, or $() sequences.
Detection Strategies
- Audit GitHub Actions run logs for the affected workflow and inspect any step that interpolates github.head_ref, github.event.pull_request.head.ref, or similar branch-derived variables into shell commands.
- Enable GitHub audit log streaming and alert on token uses that originate from runner IP ranges but target write endpoints outside the expected workflow scope.
- Review historical fork PRs opened before the patch date for suspicious branch names or workflow modifications.
Monitoring Recommendations
- Forward GitHub audit and workflow logs into a centralized analytics platform and baseline normal GITHUB_TOKEN usage patterns per repository.
- Alert on any workflow step that echoes environment variables containing GITHUB_TOKEN or writes secrets to disk.
- Monitor the NUT repository for tag or release artifact changes that were not initiated by a known maintainer identity.
How to Mitigate CVE-2026-54160
Immediate Actions Required
- Upstream maintainers and forks of networkupstools/nut should merge or cherry-pick commits 658b24e and 1aa31d1.
- Rotate any long-lived tokens, deploy keys, or downstream credentials that may have been referenced by the vulnerable workflow.
- Review recent releases and tarballs published by the workflow and verify checksums against maintainer-controlled sources before redistribution.
- Restrict workflow runs on pull requests from forks to require maintainer approval using the repository setting for first-time contributors.
Patch Information
The vulnerability is fixed in Network UPS Tools commits 658b24e and 1aa31d1. The patch restructures the GitHub Actions workflow to separate steps that consume untrusted PR-controlled inputs from steps that hold the write-scoped GITHUB_TOKEN. Full remediation guidance is documented in GitHub Security Advisory GHSA-w6wj-3r73-fxmh.
Workarounds
- Disable the affected workflow on pull_request_target events until the patched commits are applied.
- Scope the workflow's permissions: block to the minimum required, removing contents: write, checks: write, statuses: write, and pull-requests: write where not strictly needed.
- Move any handling of PR branch names into an isolated job that runs with permissions: read-all and no access to secrets.
- Require manual approval for workflows triggered by fork pull requests via the repository's Actions settings.
# Example GitHub Actions permissions hardening for the affected workflow
permissions:
contents: read
checks: read
pull-requests: read
# Handle untrusted PR inputs via environment variables, not shell interpolation
jobs:
prepare-tarball:
runs-on: ubuntu-latest
steps:
- name: Safely read PR branch name
env:
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
printf 'Building for branch: %s\n' "$PR_BRANCH"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

