CVE-2012-5495: Plone Plone Python Code Injection Vulnerability
CRITICALCVE-2012-5495 is a CRITICAL (CVSS 9.8) plone python code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Plone libraries in the PyPI ecosystem. The issue involves plone python code injection. Remediation is available by upgrading affected packages to version 4.2.3, 4.3b1.
CVE-2012-5495 at a Glance
Security Impact
CVSS: 9.8
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:H/A:H).
How to Fix CVE-2012-5495
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.
pip install Plone>=4.2.3
pip install Plone>=4.3b1
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-5495, 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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
CVE-2012-5495 Affected Plone Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Plone
|
PyPI |
< 4.2.3
|
4.2.3
|
|
Plone
|
PyPI |
≥ 4.3a1
< 4.3b1
|
4.3b1
|
References
Frequently Asked Questions
What is CVE-2012-5495?
Which Plone versions are affected?
What version fixes CVE-2012-5495?
Is Plone affected?
What is the CVSS score of CVE-2012-5495?
What CWE is associated with CVE-2012-5495?
How can I check PyPI dependencies for CVE-2012-5495?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w6pw-5gh5-4952",
"modified" : "2024-10-14T21:20:03Z",
"published" : "2022-05-17T04:32:00Z",
"aliases" : [ "CVE-2012-5495" ],
"summary" : "Plone python code injection",
"details" : "python_scripts.py in Plone before 4.2.3 and 4.3 before beta 1 allows remote attackers to execute Python code via a crafted URL, related to \"go_back.\"",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"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.3a1"
}, {
"fixed" : "4.3b1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5495"
}, {
"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-37.yaml"
}, {
"type" : "WEB",
"url" : "https://plone.org/products/plone-hotfix/releases/20121106"
}, {
"type" : "WEB",
"url" : "https://plone.org/products/plone/security/advisories/20121106/11"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/11/10/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-29T21:30:16Z",
"nvd_published_at" : "2014-09-30T14:55:00Z"
}
}