Skip to main content

Basercms CVE-2025-32957

| EUVDEUVD-2025-209130 HIGH
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-03-31 GitHub_M GHSA-hv78-cwp4-8r7r
8.7
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

Real-world risk assessment reveals moderate practical threat despite the high CVSS score of 8.7. The CVSS vector (AV:N/AC:L/PR:H/UI:N/S:C) indicates network-accessible attacks with low complexity but critically requires high privileges (administrator access). The EPSS probability of 0.00043 suggests very low likelihood of mass exploitation in the wild. No CISA KEV listing exists, indicating no confirmed active exploitation. The attack requires pre-existing administrator credentials, significantly limiting the attack surface to insider threats, compromised admin accounts, or social engineering scenarios. The scope change (S:C) indicates potential container escape or privilege escalation beyond the application boundary, elevating impact. Primary risk scenarios involve supply chain attacks where adversaries gain admin access through credential compromise, or malicious insiders abusing legitimate restore functionality. Organizations with strict admin access controls and audit logging face substantially lower practical risk than the raw CVSS score suggests.

Exploit ScenarioDerived

An attacker who has compromised administrator credentials or operates as a malicious insider accesses the baserCMS administrative interface and navigates to the backup restore functionality. The attacker crafts a ZIP archive containing a seemingly legitimate backup structure but embeds a malicious PHP webshell or backdoor file within the archive. Upon uploading and initiating the restore process, baserCMS automatically extracts the ZIP contents and executes require_once on the malicious PHP file without validation. The embedded code executes with full application privileges, establishing persistent backdoor access, exfiltrating sensitive database contents, or pivoting to other systems within the network environment. The scope change in the CVSS vector indicates potential for container escape or compromise of underlying infrastructure beyond the CMS application itself.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 31, 2026

Arbitrary code execution in baserCMS versions before 5.2.3 allows authenticated administrators to achieve remote code execution via malicious PHP files embedded in backup restore archives. The vulnerability exploits unsafe file inclusion during ZIP extraction in the restore function, where uploaded PHP files are executed via require_once without filename validation. No public exploit identified at time of analysis, though EPSS score of 0.00043 (0.043%) and CVSS 8.7 indicate moderate theoretical risk mitigated by high privilege requirements (PR:H).

RemediationAI

Upgrade immediately to baserCMS version 5.2.3 or later, which includes patches addressing the unsafe file inclusion vulnerability in the restore function. The patched release is available at https://github.com/baserproject/basercms/releases/tag/5.2.3 and includes validation controls preventing arbitrary PHP execution during ZIP extraction. Organizations unable to upgrade immediately should implement compensating controls including restricting restore functionality to super-administrators only, implementing file upload scanning with antivirus/malware detection, monitoring restore operations through security information and event management systems, and auditing all ZIP archives before restoration. Review administrator access logs for suspicious restore operations and consider temporarily disabling the restore feature if not operationally required. Consult the official security advisory at https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r for additional vendor guidance.

Affected VersionsENISA

basercms < 5.2.3

Affected Packages

composer baserproject/basercms fix: 5.2.3
euvd basercms fix: 5.2.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

baserCMS is an open-source PHP-based content management system and website development framework. The vulnerability stems from a CWE-434 (Unrestricted Upload of File with Dangerous Type) weakness in the backup restoration functionality. When administrators upload ZIP archives through the restore feature, the application automatically extracts the contents and includes PHP files using require_once without implementing proper file type validation, path sanitization, or filename restrictions. This unsafe file handling pattern allows arbitrary PHP code within the archive to execute in the application context with full privileges. The affected product CPE (cpe:2.3:a:baserproject:basercms) covers all versions prior to 5.2.3, as confirmed by the GitHub security advisory GHSA-hv78-cwp4-8r7r and the vendor's security bulletin JVN_20837860.

Know when Basercms gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.7 HIGH
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch released
Apr 01, 2026 - 02:30 nvd
Patch available
CVE Published
Mar 31, 2026 - 00:43 nvd
HIGH 8.7

DescriptionGitHub Advisory

baserCMS is a website development framework. Prior to version 5.2.3, the application's restore function allows users to upload a .zip file, which is then automatically extracted. A PHP file inside the archive is included using require_once without validating or restricting the filename. An attacker can craft a malicious PHP file within the zip and achieve arbitrary code execution when it is included. This issue has been patched in version 5.2.3.

Executive ViewAI

Why It Matters

baserCMS versions before 5.2.3 contain a critical remote code execution vulnerability in the backup restore function that allows authenticated administrators to execute arbitrary PHP code through malicious files embedded in backup archives. This directly threatens the integrity and confidentiality of hosted applications and their underlying data, requiring immediate access controls and monitoring to prevent insider threats or compromised administrator accounts from exploiting the flaw.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict backup-restore functionality to only trusted administrators via role-based access control; (2) disable PHP execution in upload and backup directories via Apache/Nginx configuration (.htaccess or nginx.conf); (3) implement strict file type validation rejecting any files with .php extensions within backup archives before extraction; (4) enforce multi-factor authentication on all administrator accounts; (5) monitor backup-restore activity with alerting on suspicious file operations.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy