CVE-2025-30213: Frappe Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-v342-4xr9-x3q3
CWE-20
Published
Advisory Summary

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

CVE Identifier CVE-2025-30213
GHSA Identifier GHSA-v342-4xr9-x3q3
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Frappe
Package Ecosystem PyPI
Published Date
Last Updated

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.

frappe fixed: 14.91.0
pip install frappe>=14.91.0
frappe fixed: 15.52.0
pip install frappe>=15.52.0
Verify Direct and Transitive Dependencies

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

### Impact A system user was able to create certain documents in a specific way that could lead to RCE. ### Workarounds There's no workaround, an upgrade is required. ### Credits Thanks to Thanh of Calif.io for reporting the issue

CVE-2025-30213 Affected Frappe Versions

2 component(s)
Fixed Versions:
14.91.015.52.0
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?
CVE-2025-30213 is a security vulnerability in Frappe involving Frappe has Possibility of Remote Code Execution due to improper validation under CWE-20: Improper Input Validation.
Which Frappe versions are affected?
Affected versions include releases prior to 14.91.0, 15.52.0 across affected packages: frappe.
What version fixes CVE-2025-30213?
Upgrading to 14.91.0, 15.52.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is frappe affected?
Yes, frappe is affected in releases prior to 14.91.0, 15.52.0. Upgrade your dependency to 14.91.0, 15.52.0 or later.
What CWE is associated with CVE-2025-30213?
CVE-2025-30213 is classified under CWE-20: Improper Input Validation (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.).
How can I check PyPI dependencies for CVE-2025-30213?
Run the dependency tree command: 'pip show frappe'. 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-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"
  }
}