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).

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-2025-68120MEDIUM5.4
  • NixOSNixOS
  • go
NoYesDec 30, 2025
CVE-2025-69413MEDIUM5.3
  • NixOSNixOS
  • code.gitea.io/gitea
NoYesJan 01, 2026
CVE-2025-15412MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-15411MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-68932LOW2.9
  • NixOSNixOS
  • freshrss
NoYesDec 27, 2025

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