Advisory

GHSA-hv78-cwp4-8r7r

Also known as: CVE-2025-32957

Summary

baserCMS has Unsafe File Upload Leading to Remote Code Execution (RCE)

Details

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

Vector: Malicious ZIP upload + insecure require_once

PoC

  1. Restore backup image
  2. Load file shell (insecure require_once) image image

Impact
Remote Code Execution (RCE)

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-31 22:22 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

baserproject/basercms

Packagist · All systems

Affected

  • introduced 0, fixed 5.2.3 (ecosystem)

Fixed versions

5.2.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences