CVE-2023-25654: Baserproject/basercms Remote Code Execution Vulnerability
CRITICALCVE-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
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).
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.
Upgrade baserproject/basercms to 4.7.5
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
CVE-2023-25654 Affected Baserproject/basercms Versions
1 component(s)| 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?
Which Baserproject/basercms versions are affected?
What version fixes CVE-2023-25654?
Is baserproject/basercms affected?
What is the CVSS score of CVE-2023-25654?
What CWE is associated with CVE-2023-25654?
How can I check Packagist dependencies for CVE-2023-25654?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}