CVE-2025-52353: Badaso/core Badaso CMS File Upload Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-gqp9-jh35-439m
CWE-434
Published
Advisory Summary

CVE-2025-52353 is a HIGH badaso cms file upload vulnerability vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Badaso/core libraries in the Packagist ecosystem. The issue involves badaso cms file upload vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2025-52353 at a Glance

CVE Identifier CVE-2025-52353
GHSA Identifier GHSA-gqp9-jh35-439m
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Badaso/core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-52353

To remediate this vulnerability, upgrade all affected Badaso/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

badaso/core fixed: Latest secure release
Upgrade badaso/core to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for badaso/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-52353, inspect your project dependencies for Badaso/core:

inspect dependencies for badaso/core

Analyze the terminal output to locate any version of Badaso/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Badaso/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An arbitrary code execution vulnerability in Badaso CMS 2.9.11. The Media Manager allows authenticated users to upload files containing embedded PHP code via the file-upload endpoint, bypassing content-type validation. When such a file is accessed via its URL, the server executes the PHP payload, enabling an attacker to run arbitrary system commands and achieve full compromise of the underlying host. This has been demonstrated by embedding a backdoor within a PDF and renaming it with a .php extension.

CVE-2025-52353 Affected Badaso/core Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
badaso/core
Packagist
≤ 2.9.11

References

Frequently Asked Questions

What is CVE-2025-52353?
CVE-2025-52353 is a security vulnerability in Badaso/core involving Badaso CMS file upload vulnerability under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Badaso/core versions are affected?
Affected versions include releases prior to current release patches across affected packages: badaso/core.
What version fixes CVE-2025-52353?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is badaso/core affected?
Yes, badaso/core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-52353?
CVE-2025-52353 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Packagist dependencies for CVE-2025-52353?
Run the dependency tree command: 'inspect dependencies for badaso/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gqp9-jh35-439m",
  "modified" : "2025-08-26T22:34:19Z",
  "published" : "2025-08-26T21:31:07Z",
  "aliases" : [ "CVE-2025-52353" ],
  "summary" : "Badaso CMS file upload vulnerability",
  "details" : "An arbitrary code execution vulnerability in Badaso CMS 2.9.11. The Media Manager allows authenticated users to upload files containing embedded PHP code via the file-upload endpoint, bypassing content-type validation. When such a file is accessed via its URL, the server executes the PHP payload, enabling an attacker to run arbitrary system commands and achieve full compromise of the underlying host. This has been demonstrated by embedding a backdoor within a PDF and renaming it with a .php extension.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "badaso/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.9.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-52353"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/uasoft-indonesia/badaso"
  }, {
    "type" : "WEB",
    "url" : "https://medium.com/@pat.sanitjairak/remote-code-execution-in-a-plain-view-0f86f183543d"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-26T22:34:19Z",
    "nvd_published_at" : "2025-08-26T20:15:40Z"
  }
}