CVE-2025-32957: baserCMS: unsafe File Upload Leading to Remote Code Execution (RCE)

Published Mar 31, 2026
·
Updated

Details 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 requireonce 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.

Vector: Malicious ZIP upload + insecure requireonce

PoC 1. Restore backup !image 1. Load file shell (insecure requireonce) !image !image

Impact Remote Code Execution (RCE)

Other sources

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 requireonce 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.

— MITRE

Affected Software

3 affected componentsFixes available
baserCMS BaserCMS<5.2.3
composer/baserproject/basercms<=5.2.2
5.2.3
baserCMS BaserCMS<5.2.3

Event History

Mar 31, 2026
CVE Published
via MITRE·12:43 AM
Data Sourced
via MITRE·12:43 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·10:22 PM
Data Sourced
via GitHub·10:22 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-32957?

CVE-2025-32957 is considered a critical vulnerability due to its potential to allow remote code execution via unsafe file uploads.

2

How do I fix CVE-2025-32957?

To fix CVE-2025-32957, upgrade to baserCMS version 5.2.3 or later where the vulnerability has been addressed.

3

What is the nature of the vulnerability in CVE-2025-32957?

CVE-2025-32957 allows for a remote code execution attack through an unsafe file upload mechanism in the baserCMS restore function.

4

Are all versions of baserCMS vulnerable to CVE-2025-32957?

Yes, all versions of baserCMS prior to 5.2.3 are vulnerable to CVE-2025-32957.

5

What impact can CVE-2025-32957 have on my application?

CVE-2025-32957 can allow an attacker to execute arbitrary PHP code, potentially compromising the entire application and server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203