CVE-2026-21861

baserCMS: OS Command Injection Leading to Remote Code Execution (RCE)

Published Mar 31, 2026 CVSS 3.1 · 9.1 Critical EPSS 2.4% KEV · Not listed
Description
baserCMS is a website development framework. Prior to version 5.2.3, baserCMS contains an OS command injection vulnerability in the core update functionality. An authenticated administrator can execute arbitrary OS commands on the server due to improper handling of user-controlled input that is directly passed to exec() without sufficient validation or escaping. This issue has been patched in version 5.2.3.

Analysis

AI-generated

Technical impact

A flaw in the update component of baserCMS allows an authenticated administrator to inject arbitrary operating system commands, resulting in complete code execution on the underlying server. This intrusion can compromise confidentiality, integrity, and availability of the hosted application and any data stored on the host. The weakness is an OS command injection (CWE‑78) and can be exploited to run any command the web server user has permission to execute.

Affected Systems

All installations of baserCMS older than version 5.2.3 are vulnerable. The vulnerability exists in the core update functionality and affects any instance where administrators have access to execute updates on the system.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.1, indicating severe risk when exploited. The EPSS score is 2%, indicating a slightly higher likelihood of exploitation at present, and it is not listed in the CISA KEV catalog. Attackers would need authenticated administrator privileges and then manipulate the update process to inject malicious commands via the unescaped exec() call.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest baserCMS patch (version 5.2.3 or later) to eliminate the vulnerability.
  • Temporarily disable the core update functionality for all administrators until the patch is applied.
  • Restrict access to the update function to only a minimal set of trusted administrators and enforce strict audit logging.
  • Review and harden the web server’s execution permissions to ensure the CMS runs with least privilege (e.g., non-root user).

Generated by OpenCVE AI on June 18, 2026 at 04:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qxmc-6f24-g86g baserCMS has OS Command Injection Leading to Remote Code Execution (RCE)
History
Type Values Removed Values Added
First Time appeared Baserproject
Baserproject basercms
Vendors & Products Baserproject
Baserproject basercms
Type Values Removed Values Added
First Time appeared Basercms
Basercms basercms
CPEs cpe:2.3:a:basercms:basercms:*:*:*:*:*:*:*:*
Vendors & Products Basercms
Basercms basercms
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description baserCMS is a website development framework. Prior to version 5.2.3, baserCMS contains an OS command injection vulnerability in the core update functionality. An authenticated administrator can execute arbitrary OS commands on the server due to improper handling of user-controlled input that is directly passed to exec() without sufficient validation or escaping. This issue has been patched in version 5.2.3.
Title baserCMS: OS Command Injection Leading to Remote Code Execution (RCE)
Weaknesses CWE-78
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 31, 2026, 2:01 PM
Reserved
Jan 5, 2026, 4:44 PM
Status
Analyzed
Published
Mar 31, 2026, 1:16 AM
Modified
Jun 17, 2026, 10:19 AM