CVE-2023-36814: Products.CMFCore Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-4hpj-8rhv-9x87
CVSS 7.5
CWE-770
Published
Advisory Summary

CVE-2023-36814 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Products.CMFCore libraries in the PyPI ecosystem. The issue involves products.cmfcore unauthenticated denial of service and crash via unchecked use of input with python's marshal module. Remediation is available by upgrading affected packages to version 3.2, 2.7.1.

CVE-2023-36814 at a Glance

CVE Identifier CVE-2023-36814
GHSA Identifier GHSA-4hpj-8rhv-9x87
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Products.CMFCore
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:N/I:N/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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-36814

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

Products.CMFCore fixed: 3.2
pip install Products.CMFCore>=3.2
Products.CMFCore fixed: 2.7.1
pip install Products.CMFCore>=2.7.1
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 Products.CMFCore

How to Check if You Are Affected

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

pip show Products.CMFCore

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

Note: The pip show Products.CMFCore command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Products.CMFCore, 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 The use of Python's marshal module to handle unchecked input in a public method on `PortalFolder` objects can lead to an unauthenticated denial of service and crash situation. The code in question is exposed by all portal software built on top of `Products.CMFCore`, such as Plone. All deployments are vulnerable. ### Patches The code has been fixed in `Products.CMFCore` version 3.2. ### Workarounds Users can make the affected `decodeFolderFilter` method unreachable by editing the `PortalFolder.py` module in `Products.CMFCore` by hand and then restarting Zope. Go to line 233 of `PortalFolder.py` and remove both the `@security.public` decorator for `decodeFolderFilter` as well as the method's entire docstring. This is safe because the method is not actually used by current code. ### References - Products.CMFCore security advisory [GHSA-4hpj-8rhv-9x87](https://github.com/zopefoundation/Products.CMFCore/security/advisories/GHSA-4hpj-8rhv-9x87) ### Credits Thanks go to Nicolas VERDIER from onepoint. ### For more information If you have any questions or comments about this advisory: - Open an issue in the [Products.CMFCore issue tracker](https://github.com/zopefoundation/Products.CMFCore/issues) - Email us at [security@plone.org](mailto:security@plone.org)

CVE-2023-36814 Affected Products.CMFCore Versions

2 component(s)
Fixed Versions:
3.22.7.1
Product / Package Ecosystem Affected Versions Fixed Version
Products.CMFCore
PyPI
≥ 3.0
< 3.2
3.2
Products.CMFCore
PyPI
< 2.7.1
2.7.1

References

Frequently Asked Questions

What is CVE-2023-36814?
CVE-2023-36814 is a security vulnerability in Products.CMFCore involving Products.CMFCore unauthenticated denial of service and crash via unchecked use of input with Python's marshal module under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Products.CMFCore versions are affected?
Affected versions include releases prior to 3.2, 2.7.1 across affected packages: Products.CMFCore.
What version fixes CVE-2023-36814?
Upgrading to 3.2, 2.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Products.CMFCore affected?
Yes, Products.CMFCore is affected in releases prior to 3.2, 2.7.1. Upgrade your dependency to 3.2, 2.7.1 or later.
What is the CVSS score of CVE-2023-36814?
CVE-2023-36814 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:N/I:N/A:H.
What CWE is associated with CVE-2023-36814?
CVE-2023-36814 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check PyPI dependencies for CVE-2023-36814?
Run the dependency tree command: 'pip show Products.CMFCore'. 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-4hpj-8rhv-9x87",
  "modified" : "2024-10-14T15:28:49Z",
  "published" : "2023-07-05T22:42:09Z",
  "aliases" : [ "CVE-2023-36814" ],
  "summary" : "Products.CMFCore unauthenticated denial of service and crash via unchecked use of input with Python's marshal module",
  "details" : "### Impact\nThe use of Python's marshal module to handle unchecked input in a public method on `PortalFolder` objects can lead to an unauthenticated denial of service and crash situation. The code in question is exposed by all portal software built on top of `Products.CMFCore`, such as Plone. All deployments are vulnerable.\n\n### Patches\nThe code has been fixed in `Products.CMFCore` version 3.2.\n\n### Workarounds\nUsers can make the affected `decodeFolderFilter` method unreachable by editing the `PortalFolder.py` module in `Products.CMFCore` by hand and then restarting Zope. Go to line 233 of `PortalFolder.py` and remove both the `@security.public` decorator for `decodeFolderFilter` as well as the method's entire docstring. This is safe because the method is not actually used by current code.\n\n### References\n- Products.CMFCore security advisory [GHSA-4hpj-8rhv-9x87](https://github.com/zopefoundation/Products.CMFCore/security/advisories/GHSA-4hpj-8rhv-9x87)\n\n### Credits\nThanks go to Nicolas VERDIER from onepoint.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in the [Products.CMFCore issue tracker](https://github.com/zopefoundation/Products.CMFCore/issues)\n- Email us at [security@plone.org](mailto:security@plone.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Products.CMFCore"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0"
      }, {
        "fixed" : "3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Products.CMFCore"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Products.CMFCore/security/advisories/GHSA-4hpj-8rhv-9x87"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-36814"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Products.CMFCore/commit/40f03f43a60f28ca9485c8ef429efef729be54e5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Products.CMFCore/commit/c1847a9042abe7965271fa73762dfe091b576de"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/products-cmfcore/PYSEC-2023-113.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zopefoundation/Products.CMFCore"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-05T22:42:09Z",
    "nvd_published_at" : "2023-07-03T17:15:09Z"
  }
}