CVE-2023-25654: Baserproject/basercms Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-h4cc-fxpp-pgw9
CVSS 9.8
CWE-434
Published
Advisory Summary

CVE-2023-25654 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Baserproject/basercms libraries in the Packagist ecosystem. The issue involves basercms file uploader remote code execution (rce) vulnerability. Remediation is available by upgrading affected packages to version 4.7.5.

CVE-2023-25654 at a Glance

CVE Identifier CVE-2023-25654
GHSA Identifier GHSA-h4cc-fxpp-pgw9
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Baserproject/basercms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-25654

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

baserproject/basercms fixed: 4.7.5
Upgrade baserproject/basercms to 4.7.5
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 baserproject/basercms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-25654, inspect your project dependencies for Baserproject/basercms:

inspect dependencies for baserproject/basercms

Analyze the terminal output to locate any version of Baserproject/basercms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.7.5), 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 Baserproject/basercms, 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

### Impact There is a Remote Code Execution (RCE) Vulnerability on the management system of baserCMS. ### Target baserCMS 4.7.3 and earlier versions ### Patches Update to the latest version of baserCMS ### Credits 島峰泰平@三井物産セキュアディレクション株式会社

CVE-2023-25654 Affected Baserproject/basercms Versions

1 component(s)
Fixed Versions:
4.7.5
Product / Package Ecosystem Affected Versions Fixed Version
baserproject/basercms
Packagist
< 4.7.5
4.7.5

References

Frequently Asked Questions

What is CVE-2023-25654?
CVE-2023-25654 is a security vulnerability in Baserproject/basercms involving baserCMS File Uploader Remote Code Execution (RCE) vulnerability under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Baserproject/basercms versions are affected?
Affected versions include releases prior to 4.7.5 across affected packages: baserproject/basercms.
What version fixes CVE-2023-25654?
Upgrading to 4.7.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is baserproject/basercms affected?
Yes, baserproject/basercms is affected in releases prior to 4.7.5. Upgrade your dependency to 4.7.5 or later.
What is the CVSS score of CVE-2023-25654?
CVE-2023-25654 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-25654?
CVE-2023-25654 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-2023-25654?
Run the dependency tree command: 'inspect dependencies for baserproject/basercms'. 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-h4cc-fxpp-pgw9",
  "modified" : "2023-03-28T18:06:06Z",
  "published" : "2023-03-23T20:00:08Z",
  "aliases" : [ "CVE-2023-25654" ],
  "summary" : "baserCMS File Uploader Remote Code Execution (RCE) vulnerability",
  "details" : "### Impact\nThere is a Remote Code Execution (RCE) Vulnerability on the management system of baserCMS.\n\n### Target\nbaserCMS 4.7.3 and earlier versions\n\n### Patches\nUpdate to the latest version of baserCMS\n\n### Credits\n島峰泰平@三井物産セキュアディレクション株式会社\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "baserproject/basercms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.7.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/baserproject/basercms/security/advisories/GHSA-h4cc-fxpp-pgw9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25654"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/baserproject/basercms/commit/002886be0998c74c386e04f0b43688a8a45d7a96"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/baserproject/basercms/commit/08247f0a633d8e836ce2e5cd2d53aa19901a1359"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/baserproject/basercms/commit/60f83054d8131b0ace60716cec7e629b5eb3a8f0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/baserproject/basercms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/baserproject/basercms/releases/tag/basercms-4.7.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-23T20:00:08Z",
    "nvd_published_at" : "2023-03-23T20:15:00Z"
  }
}