CVE-2025-30213: Frappe Remote Code Execution Vulnerability
MODERATECVE-2025-30213 is a MODERATE remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Frappe libraries in the PyPI ecosystem. The issue involves frappe has possibility of remote code execution due to improper validation. Remediation is available by upgrading affected packages to version 14.91.0, 15.52.0.
CVE-2025-30213 at a Glance
How to Fix CVE-2025-30213
To remediate this vulnerability, upgrade all affected Frappe dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install frappe>=14.91.0
pip install frappe>=15.52.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show frappe
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-30213, inspect your installed packages using pip:
pip show frappe
Analyze the terminal output to locate any version of Frappe in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.91.0), your application is affected.
Note: The pip show frappe command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Frappe, 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-2025-30213 Affected Frappe Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
frappe
|
PyPI |
< 14.91.0
|
14.91.0
|
|
frappe
|
PyPI |
≥ 15.0.0
< 15.52.0
|
15.52.0
|
References
Frequently Asked Questions
What is CVE-2025-30213?
Which Frappe versions are affected?
What version fixes CVE-2025-30213?
Is frappe affected?
What CWE is associated with CVE-2025-30213?
How can I check PyPI dependencies for CVE-2025-30213?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v342-4xr9-x3q3",
"modified" : "2025-03-25T16:39:25Z",
"published" : "2025-03-25T16:39:25Z",
"aliases" : [ "CVE-2025-30213" ],
"summary" : "Frappe has Possibility of Remote Code Execution due to improper validation",
"details" : "### Impact\nA system user was able to create certain documents in a specific way that could lead to RCE.\n\n### Workarounds\nThere's no workaround, an upgrade is required.\n\n### Credits\nThanks to Thanh of Calif.io for reporting the issue",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "frappe"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.91.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "frappe"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "15.0.0"
}, {
"fixed" : "15.52.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/frappe/frappe/security/advisories/GHSA-v342-4xr9-x3q3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30213"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/frappe/frappe"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-25T16:39:25Z",
"nvd_published_at" : "2025-03-25T15:15:26Z"
}
}