CVE-2012-5493: Plone Plone Sandbox Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-25jh-5h5r-h33m
CVSS 9.9
CWE-693 CWE-94
Published
Advisory Summary

CVE-2012-5493 is a MODERATE (CVSS 9.9) plone sandbox bypass vulnerability (CWE-693: Protection Mechanism Failure) affecting Plone libraries in the PyPI ecosystem. The issue involves plone sandbox bypass. Remediation is available by upgrading affected packages to version 4.2.3, 4.3b1.

CVE-2012-5493 at a Glance

CVE Identifier CVE-2012-5493
GHSA Identifier GHSA-25jh-5h5r-h33m
Severity MODERATE
CVSS v3.1 Base Score 9.9
CWE Classification CWE-693: Protection Mechanism Failure
Affected Product Plone
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2012-5493

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

Plone fixed: 4.2.3
pip install Plone>=4.2.3
Plone fixed: 4.3b1
pip install Plone>=4.3b1
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 Plone

How to Check if You Are Affected

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

pip show Plone

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In Plone, 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

`gtbn.py` in Plone before 4.2.3 and 4.3 before beta 1 allows remote authenticated users with certain permissions to bypass the Python sandbox and execute arbitrary Python code via unspecified vectors.

CVE-2012-5493 Affected Plone Versions

2 component(s)
Fixed Versions:
4.2.34.3b1
Product / Package Ecosystem Affected Versions Fixed Version
Plone
PyPI
< 4.2.3
4.2.3
Plone
PyPI
≥ 4.3a0
< 4.3b1
4.3b1

References

Frequently Asked Questions

What is CVE-2012-5493?
CVE-2012-5493 is a security vulnerability in Plone involving Plone Sandbox Bypass under CWE-693: Protection Mechanism Failure.
Which Plone versions are affected?
Affected versions include releases prior to 4.2.3, 4.3b1 across affected packages: Plone.
What version fixes CVE-2012-5493?
Upgrading to 4.2.3, 4.3b1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Plone affected?
Yes, Plone is affected in releases prior to 4.2.3, 4.3b1. Upgrade your dependency to 4.2.3, 4.3b1 or later.
What is the CVSS score of CVE-2012-5493?
CVE-2012-5493 has a CVSS v3.1 base score of 9.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2012-5493?
CVE-2012-5493 is classified under CWE-693: Protection Mechanism Failure (The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.).
How can I check PyPI dependencies for CVE-2012-5493?
Run the dependency tree command: 'pip show Plone'. 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-25jh-5h5r-h33m",
  "modified" : "2024-10-09T21:34:03Z",
  "published" : "2022-05-17T04:32:23Z",
  "aliases" : [ "CVE-2012-5493" ],
  "summary" : "Plone Sandbox Bypass",
  "details" : "`gtbn.py` in Plone before 4.2.3 and 4.3 before beta 1 allows remote authenticated users with certain permissions to bypass the Python sandbox and execute arbitrary Python code via unspecified vectors.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Plone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Plone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3a0"
      }, {
        "fixed" : "4.3b1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5493"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/plone/Plone"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plone/Products.CMFPlone/blob/4.2.3/docs/CHANGES.txt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/plone/PYSEC-2014-35.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://plone.org/products/plone-hotfix/releases/20121106"
  }, {
    "type" : "WEB",
    "url" : "https://plone.org/products/plone/security/advisories/20121106/09"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/10/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-693", "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-29T21:37:11Z",
    "nvd_published_at" : "2014-09-30T14:55:00Z"
  }
}