Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. baserproject/basercms
  4. ›
  5. CVE-2026-21861

CVE-2026-21861: baserCMS has OS Command Injection Leading to Remote Code Execution (RCE)

March 31, 2026

In the core update functionality of baserCMS, some parameters sent from the admin panel are passed to the exec() function without proper validation or escaping. This issue allows an authenticated CMS administrator to execute arbitrary OS commands on the server (Remote Code Execution, RCE).

This vulnerability is not a UI-level issue such as screen manipulation or lack of CSRF protection, but rather stems from a design that directly executes input values received on the server side as OS commands. Therefore, even if buttons are hidden in the UI, or even if CakePHP’s CSRF/FormProtection (SecurityComponent) ensures that only legitimate POST requests are accepted, an attack is possible as long as a request containing a valid token is processed within an administrator session.


References

  • basercms.net/security/JVN_20837860
  • github.com/advisories/GHSA-qxmc-6f24-g86g
  • github.com/baserproject/basercms
  • github.com/baserproject/basercms/releases/tag/5.2.3
  • github.com/baserproject/basercms/security/advisories/GHSA-qxmc-6f24-g86g
  • nvd.nist.gov/vuln/detail/CVE-2026-21861

Code Behaviors & Features

Detect and mitigate CVE-2026-21861 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.2.3

Fixed versions

  • 5.2.3

Solution

Upgrade to version 5.2.3 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/baserproject/basercms/CVE-2026-21861.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:47 +0000.