8.8

CVE-2023-31128: NextCloud Cookbook's pull-checks.yml workflow is vulnerable to OS Command Injection

Modified
Published 26-05-2023Last modified 14-01-2025

Vulnerability summary

CVE-2023-31128 is a high (CVSS 8.8) vulnerability in nextcloud cookbook. EPSS estimates a 3.34% chance of exploitation in the next 30 days, higher than 89% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
3.34%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 26-05-2023
    PublishedVulnerability first disclosed.
  2. 14-01-2025
    Last modifiedVulnerability information updated.

Description

NextCloud Cookbook is a recipe library app. Prior to commit a46d9855 on the `master` branch and commit 489bb744 on the `main-0.9.x` branch, the `pull-checks.yml` workflow is vulnerable to command injection attacks because of using an untrusted `github.head_ref` field. The `github.head_ref` value is an attacker-controlled value. Assigning the value to `zzz";echo${IFS}"hello";#` can lead to command injection. Since the permission is not restricted, the attacker has a write-access to the repository. This issue is fixed in commit a46d9855 on the `master` branch and commit 489bb744 on the `main-0.9.x` branch. There is no risk for the user of the app within the NextCloud server. This only affects the main repository and possible forks of it. Those who have forked the NextCloud Cookbook repository should make sure their forks are on the latest version to prevent code injection attacks and similar.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

3.34%

Chance of exploitation in the next 30 days

Percentile

89%

Versus all other CVEs

30-day change

No change 0.00 pp

From 3.34% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Github Actions Untrusted Input

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Nextcloud1 product
  • cookbookmaster < a46d9855 | main-0.9.x < 489bb744 | ≥ 0.9.0, < 0.9.19

1 vendor · 1 product

References

5 links