Home / nextcloud / cookbook / CVE-2023-31128
CVE-2023-31128: is it exploited, and which versions of nextcloud cookbook are affected and fixed?
CVE-2023-31128 is an OS command injection vulnerability in nextcloud cookbook. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: cookbook master < a46d9855 and cookbook main-0.9.x < 489bb744 (CVE record by GitHub_M). Fixed in 0.9.19 (NVD). Severity: High (8.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:39 UTC.
What is CVE-2023-31128?
NextCloud Cookbook's pull-checks.yml workflow is vulnerable to OS Command Injection
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.
From the CVE record by GitHub_M, last updated January 14, 2025, 19:24 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| nextcloud | cookbook | master < a46d9855 main-0.9.x < 489bb744 |
As the CVE record by GitHub_M states it, last updated January 14, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nextcloud | cookbook | from 0.9.0 before 0.9.19 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:56 UTC.
How severe is CVE-2023-31128?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | GitHub_M |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-31128 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, January 14, 2025)
- EPSS
- 3.34% probability of exploitation activity in the next 30 days, percentile 89.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://github.com/nextcloud/cookbook/security/advisories/GHSA-c5pc-mf2f-xq8h x_refsource_CONFIRM
- https://github.com/nextcloud/cookbook/commit/489bb744 x_refsource_MISC
- https://github.com/nextcloud/cookbook/commit/a46d98559e2c64292da9ffb06138cccc2e50ae1b x_refsource_MISC
- https://github.com/nextcloud/cookbook/blob/a14d6ffc4d45e1447556f68606129dfd6c1505cf/.github/workflows/pull-checks.yml#L67 x_refsource_MISC
- https://securitylab.github.com/research/github-actions-untrusted-input/ x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 24, 2023
- Published
- May 26, 2023, 21:49 UTC
- CVE record updated
- January 14, 2025, 19:24 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:56 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:39 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2023-31128
Is CVE-2023-31128 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 3.34% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of nextcloud cookbook are affected by CVE-2023-31128?
cookbook master < a46d9855 and cookbook main-0.9.x < 489bb744, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2023-31128?
0.9.19, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-31128?
High (8.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-31128?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.