Skip to main content

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

0
High
VulnerabilityCVE-2026-114622cvecve-2026-114622cwe-22cwe-180
Published: 10/23/2026 (10/23/2026, 13:41:33 UTC)
Source: CVE Database V5
Vendor/Project: baserproject
Product: basercms

Description

baserCMS versions 5.2.3 before 5.3.2 and 5.4.0 before 5.4.2 contain a path traversal vulnerability in the optional BcThemeFile plugin's Admin API. The vulnerability arises because encoded path traversal sequences are decoded after validation, allowing an authenticated administrator to write PHP files outside the intended theme directory, such as into the webroot, and execute them. Exploitation requires an administrator session, the non-default plugin enabled, and a same-origin Origin header. The issue has been patched in versions 5.3.2 and 5.4.2.

CVSS v3.1

Score 7.2high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected software

baserproject

basercms

Affected versions
>=5.2.3 <5.3.2>=5.4.0 <5.4.2
GitHub Actionsmore threats →ai
baserproject/basercms
pkg:github/baserproject/basercms
Affected versions
>=5.2.3 <5.3.2>=5.4.0 <5.4.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 14:15:22 UTC

Technical Analysis

The vulnerability in baserCMS's BcThemeFile plugin involves improper limitation of a pathname to a restricted directory (CWE-22). The Admin API validates raw paths in ThemeFilesService::update() and getFullpath(), but subsequently applies rawurldecode() to the full path before writing. Because normalizePath() only resolves literal dot segments, percent-encoded traversal sequences bypass containment checks, enabling path traversal outside the theme directory. An authenticated administrator can exploit this to write and execute PHP files in writable locations like the webroot, exceeding intended editing boundaries. The vulnerability requires the plugin to be enabled, an administrator session, and a same-origin Origin header. The Admin web form is not affected due to FormProtection. This issue is a third bypass related to CVE-2026-30940 and has been fixed in baserCMS versions 5.3.2 and 5.4.2.

Potential Impact

An authenticated administrator can exploit this vulnerability to write arbitrary PHP files to writable locations outside the theme directory, such as the webroot, and execute them. This leads to full compromise of the web application, including confidentiality, integrity, and availability impacts (CVSS 7.2). The attack bypasses intended theme-template editing restrictions, potentially allowing remote code execution within the context of the web server.

Mitigation Recommendations

This vulnerability has been officially fixed in baserCMS versions 5.3.2 and 5.4.2. Users should upgrade to these versions or later to remediate the issue. No additional mitigation is required if these versions are deployed. Exploitation requires the optional BcThemeFile plugin and an administrator session, so disabling the plugin or restricting administrator access may reduce risk temporarily but is not a substitute for patching.

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-10-21T20:34:25.600Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6adb689f4d27ba8daa2f82d8

Added to database: 10/23/2026, 14:01:03 UTC

Last enriched: 10/23/2026, 14:15:22 UTC

Last updated: 10/23/2026, 15:26:05 UTC

Views: 7

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