Skip to main content

CVE-2026-54160: CWE-829: Inclusion of Functionality from Untrusted Control Sphere in networkupstools nut

0
High
VulnerabilityCVE-2026-54160cvecve-2026-54160cwe-829
Published: 09/28/2026 (09/28/2026, 16:35:45 UTC)
Source: CVE Database V5
Vendor/Project: networkupstools
Product: nut

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.

CVSS v3.1

Score 8.2high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L

Affected software

networkupstools

nut

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/28/2026, 17:02:45 UTC

Technical Analysis

Network UPS Tools (nut) had a security flaw in its GitHub Actions workflow where the script combined execution of code with elevated privileges (via a single-use GITHUB_TOKEN with write permissions) and untrusted inputs from pull request source branches. This mis-structuring allowed a malicious PR from a forked repository to extract the GITHUB_TOKEN during the workflow run. With this token, an attacker could manipulate the Git repository contents, commit checks/statuses, or issue/PR comments within the scope of the token's permissions. The vulnerability corresponds to CWE-829 (Inclusion of Functionality from Untrusted Control Sphere). The issue was fixed by commits 658b24e and 1aa31d1, which restructured the workflow to prevent token leakage.

Potential Impact

An attacker submitting a malicious pull request from a forked repository could extract the GITHUB_TOKEN used by the GitHub Actions workflow. This token had write permissions, enabling the attacker to manipulate repository contents, alter commit statuses, and modify issue or pull request comments during the workflow execution. This could undermine the integrity of the repository and its CI/CD processes. The CVSS score is 8.2 (high severity), reflecting the network attack vector, required user interaction, and potential for high confidentiality and integrity impact.

Mitigation Recommendations

The vulnerability has been patched by the vendor via commits 658b24e and 1aa31d1, which corrected the GitHub Actions workflow to separate privileged code from untrusted inputs and prevent token leakage. Users should update to the fixed workflow configuration as per these commits. No further action is required if these patches have been applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-11T21:46:52.380Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6aba9a52f7a7c54106f26232

Added to database: 09/28/2026, 16:48:18 UTC

Last enriched: 09/28/2026, 17:02:45 UTC

Last updated: 09/29/2026, 02:50:17 UTC

Views: 13

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses