THREATPORT/VULNERABILITY/CVE-2023-31128
HIGH SEVERITY

CVE-2023-31128

Cookbook vulnerability

CVSS
8.1
EPSS
3.3%
EPSS pct
87th
Exploited
No known
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.
Affected vendor
Nextcloud
Affected product
Cookbook
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Weakness type (CWE)
  • CWE-78 — OS Command Injection
Published
2023-05-26

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring low privileges, no user interaction. Successful exploitation leads to high impact to integrity, high impact to availability.

Its EPSS score of 3.3% reflects a lower probability of exploitation activity in the wild over the next 30 days, placing it above 87% of all scored CVEs.

Check your external exposure to CVE-2023-31128

  • Confirm whether Nextcloud Cookbook is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2023-31128.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2023-31128

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2023-31128 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2023-31128?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2023-31128.

Start free scan

No credit card. Agentless.