CVE-2023-31128
NixOS vulnerability analysis and mitigation

Overview

The CVE-2023-31128 affects NextCloud Cookbook, a recipe library app. The vulnerability was discovered in the pull-checks.yml workflow where an untrusted github.head_ref field could be exploited for command injection attacks. The issue was present in versions prior to commit a46d9855 on the master branch and commit 489bb744 on the main-0.9.x branch (GitHub Advisory).

Technical details

The vulnerability exists in the GitHub Actions workflow file pull-checks.yml at line 67, where the github.head_ref value is used without proper validation. This is a Command Injection vulnerability (CWE-78) with a CVSS v3.1 Base Score of 8.8 (HIGH) according to NVD's assessment (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). GitHub's own assessment rates it slightly lower at 8.1 (HIGH) with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H (NVD).

Impact

The vulnerability only affects the main repository and its forks, with no direct risk to users of the NextCloud Cookbook app within the NextCloud server. However, if exploited, an attacker with write access to the repository could execute arbitrary commands through command injection (GitHub Advisory).

Exploitability

The vulnerability can be exploited by manipulating the github.head_ref value. A proof of concept demonstrates that setting this value to zzz";echo${IFS}"hello";# can lead to successful command injection. The attack requires write access to the repository (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in commit a46d9855 on the master branch and commit 489bb744 on the main-0.9.x branch. Users who have forked the NextCloud Cookbook repository should update their forks to the latest version to prevent code injection attacks (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management