CVE-2009-5145: Zope2 Cross-Site Scripting Vulnerability
MODERATECVE-2009-5145 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Zope2 libraries in the PyPI ecosystem. The issue involves zope cross-site scripting (xss) vulnerability in zmi pages. Remediation is available by upgrading affected packages to version 2.12.5.
CVE-2009-5145 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2009-5145
To remediate this vulnerability, upgrade all affected Zope2 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 Zope2>=2.12.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Zope2
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2009-5145, inspect your installed packages using pip:
pip show Zope2
Analyze the terminal output to locate any version of Zope2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.12.5), your application is affected.
Note: The pip show Zope2 command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Zope2, 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-2009-5145 Affected Zope2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Zope2
|
PyPI |
< 2.12.5
|
2.12.5
|
References
Frequently Asked Questions
What is CVE-2009-5145?
Which Zope2 versions are affected?
What version fixes CVE-2009-5145?
Is Zope2 affected?
What is the CVSS score of CVE-2009-5145?
What CWE is associated with CVE-2009-5145?
How can I check PyPI dependencies for CVE-2009-5145?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5r4x-qc7q-vj27",
"modified" : "2024-11-21T23:19:39Z",
"published" : "2022-05-02T04:01:39Z",
"aliases" : [ "CVE-2009-5145" ],
"summary" : "Zope Cross-site scripting (XSS) vulnerability in ZMI pages",
"details" : "Cross-site scripting (XSS) vulnerability in ZMI pages that use the manage_tabs_message in Zope 2.11.4, 2.11.2, 2.10.9, 2.10.7, 2.10.6, 2.10.5, 2.10.4, 2.10.2, 2.10.1, 2.12.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Zope2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.12.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2009-5145"
}, {
"type" : "WEB",
"url" : "https://github.com/zopefoundation/Zope/commit/2abdf14620f146857dc8e3ffd2b6a754884c331d"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/zope2/+bug/490514"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2017-148.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zopefoundation/Zope"
}, {
"type" : "WEB",
"url" : "https://security-tracker.debian.org/tracker/CVE-2009-5145"
}, {
"type" : "WEB",
"url" : "http://cve.killedkenny.io/cve/CVE-2009-5145"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/03/02/7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-21T23:19:39Z",
"nvd_published_at" : "2017-08-07T17:29:00Z"
}
}