CVE-2026-129943

Prime CMS through 0.4.0-beta.0 OS Command Injection via updateSystem Mutation

Published Nov 16, 2026 CVSS 4.0 · 8.6 High EPSS n/a KEV · Not listed
Description
Prime CMS (@primecms/core) through 0.4.0-beta.0 contains an OS command injection vulnerability in the updateSystem GraphQL mutation that allows authenticated administrators to execute shell commands via the package version string. Attackers can append shell metacharacters to the unvalidated version value, which is passed to child_process.exec() in yarn add or npm install commands, executing commands as the server process.

Analysis

AI-generated

Technical impact

The vulnerability is an OS command injection located in the updateSystem GraphQL mutation of Prime CMS. Authenticated administrators can inject shell metacharacters into the version field, which is used unvalidated in a yarn add or npm install call via child_process.exec. This allows arbitrary command execution on the host. The weakness corresponds to CWE-78.

Affected Systems

Birkir’s Prime CMS (prime) is affected in all releases up to and including 0.4.0-beta.0. Users running Prime CMS 0.4.0-beta.0 or earlier are potentially vulnerable. There are no affected versions beyond 0.4.0-beta.0 explicitly listed.

Risk and Exploitability

With a CVSS score of 8.6 the vulnerability is considered high severity. The EPSS score is not available, and the issue is not listed in CISA’s KEV catalog. Exploitation requires administrative authentication to the GraphQL endpoint and the ability to supply a crafted version string. Once privileged access is obtained, an attacker can run arbitrary shell commands, potentially compromising the entire server.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Prime CMS to a version newer than 0.4.0-beta.0 where the issue is fixed, or apply the vendor’s official patch.
  • If an upgrade cannot be performed immediately, restrict the updateSystem mutation to the administrator role or remove it from the exposed GraphQL schema for other users.
  • Validate the version parameter against a strict semantic-version pattern and reject any payload containing shell metacharacters before invoking child_process.exec.
  • Run the application under the least privileged system account and limit the permissions of the Node.js process to reduce the impact of any successful exploitation.

Generated by OpenCVE AI on November 16, 2026 at 16:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Prime CMS (@primecms/core) through 0.4.0-beta.0 contains an OS command injection vulnerability in the updateSystem GraphQL mutation that allows authenticated administrators to execute shell commands via the package version string. Attackers can append shell metacharacters to the unvalidated version value, which is passed to child_process.exec() in yarn add or npm install commands, executing commands as the server process.
Title Prime CMS through 0.4.0-beta.0 OS Command Injection via updateSystem Mutation
First Time appeared Birkir
Birkir prime
Weaknesses CWE-78
CPEs cpe:2.3:a:birkir:prime:*:*:*:*:*:*:*:*
Vendors & Products Birkir
Birkir prime
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 16, 2026, 3:06 PM
Reserved
Nov 16, 2026, 2:43 PM
Status
Received
Published
Nov 16, 2026, 3:17 PM
Modified
Nov 16, 2026, 3:17 PM