CVE-2024-45601: Mesop Mesop Has A Local File Vulnerability

HIGH
Advisory Identifier: GHSA-pmv9-3xqp-8w42
CVSS 7.5
CWE-20 CWE-22
Published
Advisory Summary

CVE-2024-45601 is a HIGH (CVSS 7.5) mesop has a local file vulnerability (CWE-20: Improper Input Validation) affecting Mesop libraries in the PyPI ecosystem. The issue involves mesop has a local file inclusion via static file serving functionality. Remediation is available by upgrading affected packages to version 0.12.4.

CVE-2024-45601 at a Glance

CVE Identifier CVE-2024-45601
GHSA Identifier GHSA-pmv9-3xqp-8w42
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Mesop
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/A:N).

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 None (I:N)
Availability None (A:N)

How to Fix CVE-2024-45601

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

mesop fixed: 0.12.4
pip install mesop>=0.12.4
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 mesop

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-45601, inspect your installed packages using pip:

pip show mesop

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

Note: The pip show mesop 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 Mesop, 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

A vulnerability has been discovered and fixed in Mesop that could potentially allow unauthorized access to files on the server hosting the Mesop application. The vulnerability was related to insufficient input validation in a specific endpoint. This could have allowed an attacker to access files not intended to be served. Users are strongly advised to update to the latest version of Mesop immediately. The latest version includes a fix for this vulnerability. We would like to thank @Letm3through for reporting this issue and proposing mitigations to address this issue.

CVE-2024-45601 Affected Mesop Versions

1 component(s)
Fixed Versions:
0.12.4
Product / Package Ecosystem Affected Versions Fixed Version
mesop
PyPI
≥ 0.9.0
< 0.12.4
0.12.4

References

Frequently Asked Questions

What is CVE-2024-45601?
CVE-2024-45601 is a security vulnerability in Mesop involving Mesop has a local file Inclusion via static file serving functionality under CWE-20: Improper Input Validation.
Which Mesop versions are affected?
Affected versions include releases prior to 0.12.4 across affected packages: mesop.
What version fixes CVE-2024-45601?
Upgrading to 0.12.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mesop affected?
Yes, mesop is affected in releases prior to 0.12.4. Upgrade your dependency to 0.12.4 or later.
What is the CVSS score of CVE-2024-45601?
CVE-2024-45601 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-45601?
CVE-2024-45601 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-2024-45601?
Run the dependency tree command: 'pip show mesop'. 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-pmv9-3xqp-8w42",
  "modified" : "2024-09-18T19:22:38Z",
  "published" : "2024-09-18T17:49:02Z",
  "aliases" : [ "CVE-2024-45601" ],
  "summary" : "Mesop has a local file Inclusion via static file serving functionality",
  "details" : "A vulnerability has been discovered and fixed in Mesop that could potentially allow unauthorized access to files on the server hosting the Mesop application. The vulnerability was related to insufficient input validation in a specific endpoint. This could have allowed an attacker to access files not intended to be served.\n\nUsers are strongly advised to update to the latest version of Mesop immediately. The latest version includes a fix for this vulnerability.\n\nWe would like to thank @Letm3through for reporting this issue and proposing mitigations to address this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mesop"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.0"
      }, {
        "fixed" : "0.12.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/google/mesop/security/advisories/GHSA-pmv9-3xqp-8w42"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45601"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/google/mesop/commit/17fb769d6a91f0a8cbccfab18f64977b158a6a31"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/google/mesop"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-18T17:49:02Z",
    "nvd_published_at" : "2024-09-18T18:15:06Z"
  }
}