Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-30940: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in baserproject basercms

0
High
VulnerabilityCVE-2026-30940cvecve-2026-30940cwe-22cwe-73
Published: Tue Mar 31 2026 (03/31/2026, 00:45:35 UTC)
Source: CVE Database V5
Vendor/Project: baserproject
Product: basercms

Description

CVE-2026-30940 is a high-severity path traversal vulnerability in baserCMS versions prior to 5. 2. 3. It affects the theme file management API, allowing an authenticated administrator to write arbitrary PHP files outside the intended theme directory by exploiting improper pathname restrictions. This can lead to remote code execution (RCE) without requiring user interaction. The vulnerability arises from insufficient validation of the 'path' parameter, permitting directory traversal sequences (.. /). Although no known exploits are currently reported in the wild, the impact on confidentiality, integrity, and availability is severe. The issue has been patched in baserCMS version 5. 2.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/31/2026, 01:23:44 UTC

Technical Analysis

The vulnerability identified as CVE-2026-30940 affects baserCMS, a website development framework widely used for content management. Prior to version 5.2.3, the theme file management API endpoint (/baser/api/admin/bc-theme-file/theme_files/add.json) does not properly restrict pathname inputs, allowing an authenticated administrator to include directory traversal sequences (../) in the 'path' parameter. This improper limitation of pathname (CWE-22) enables the attacker to write arbitrary PHP files outside the designated theme directory, potentially overwriting critical files or placing malicious scripts in executable locations. Because the attacker must be an authenticated administrator, the attack vector requires elevated privileges but no user interaction. Successful exploitation can lead to remote code execution (RCE), compromising the server's confidentiality, integrity, and availability. The vulnerability is rated with a CVSS 3.1 score of 7.2 (high), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high impact on confidentiality, integrity, and availability. The flaw was addressed and patched in baserCMS version 5.2.3, which enforces proper pathname validation to prevent directory traversal and arbitrary file writes.

Potential Impact

If exploited, this vulnerability allows an authenticated administrator to execute arbitrary code on the web server hosting baserCMS by writing malicious PHP files outside the intended directories. This can lead to full system compromise, data theft, defacement, or use of the server as a pivot point for further attacks. The integrity of website content and backend systems can be severely damaged, and availability may be disrupted by malicious payloads or system instability. Organizations relying on baserCMS for web content management face risks of unauthorized access, data breaches, and reputational damage. Since the vulnerability requires administrator credentials, the threat is elevated if credential compromise or insider threats exist. The absence of known exploits in the wild reduces immediate risk but does not eliminate the potential for targeted attacks, especially in environments with weak access controls.

Mitigation Recommendations

1. Upgrade baserCMS to version 5.2.3 or later immediately to apply the official patch that fixes the path traversal vulnerability. 2. Restrict and monitor administrator access rigorously, employing strong authentication mechanisms such as multi-factor authentication (MFA) to reduce the risk of credential compromise. 3. Implement strict input validation and sanitization on all user-supplied parameters, especially those related to file paths, to prevent directory traversal attempts. 4. Conduct regular security audits and code reviews focusing on file management APIs and access controls. 5. Employ web application firewalls (WAFs) with custom rules to detect and block suspicious path traversal patterns in API requests. 6. Monitor logs for unusual file creation or modification activities outside expected directories. 7. Isolate baserCMS installations in segmented network zones to limit lateral movement if compromised. 8. Educate administrators about secure usage practices and the risks of elevated privileges.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-07T17:34:39.978Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69cb1e82e6bfc5ba1d9722c6

Added to database: 3/31/2026, 1:08:18 AM

Last enriched: 3/31/2026, 1:23:44 AM

Last updated: 3/31/2026, 3:16:11 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses