All vulnerabilities

Packagist

CVE-2026-62955

baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)

Severity
High 7.2
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
5.3.0
Exploit chance
1.1% in the next 30 daysHigher than 65% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Path traversal (CWE-22)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-2pj4-v76f-wjvx
Sources
OSV.dev and GitHub

Description

The security patch introduced in baserCMS 5.2.3 to address CVE-2026-30940 / GHSA-c5c6-37vq-pjcq is incomplete. The patch added a realpath()-based directory traversal check in BcThemeFileService::getFullpath(), but the check is entirely skipped when realpath($baseDir) returns false — which occurs whenever the target subdirectory does not physically exist on disk.

An authenticated administrator can bypass the patch by supplying a type value (e.g., js) that maps to a non-existent directory in the theme. The absence of the directory causes realpath() to return false, the validation block is skipped, and the raw path parameter containing ../ sequences is returned unvalidated. This enables arbitrary file write and remote code execution (RCE) — the exact same impact as the original CVE.

This vulnerability was verified exploitable on baserCMS 5.2.3 (the "patched" version of CVE-2026-30940).

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
baserproject/baser-corePackagist · osv:Packagist:baserproject/baser-core
  • Every version before 5.3.0

About baserproject/baser-core

Monthly downloads (Packagist)
4,830Packagist, 24 Nov 2026
Total downloads (Packagist)
54,310Packagist, 24 Nov 2026

Vulnerabilities in baserproject/baser-core

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for baserproject/baser-core

References