CVE-2012-5486: Zope2 HTTP Header Injection Vulnerability

HIGH
Advisory Identifier: GHSA-77hv-8796-8ccp
CVSS 7.5
Published
Advisory Summary

CVE-2012-5486 is a HIGH (CVSS 7.5) http header injection vulnerability (General Security Weakness) affecting Zope2 libraries in the PyPI ecosystem. The issue involves http header injection in plone and zope2. Remediation is available by upgrading affected packages to version 2.13.19, 4.2.3, 4.3b1.

CVE-2012-5486 at a Glance

CVE Identifier CVE-2012-5486
GHSA Identifier GHSA-77hv-8796-8ccp
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification General Security Weakness
Affected Product Zope2
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:H/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 None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2012-5486

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.

Zope2 fixed: 2.13.19
pip install Zope2>=2.13.19
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 Zope2

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2012-5486, 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.13.19), 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 General Security Weakness. 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

ZPublisher.HTTPRequest._scrubHeader in Zope 2 before 2.13.19, as used in Plone before 4.3 beta 1, allows remote attackers to inject arbitrary HTTP headers via a linefeed (LF) character.

CVE-2012-5486 Affected Zope2 Versions

3 component(s)
Fixed Versions:
2.13.194.2.34.3b1
Product / Package Ecosystem Affected Versions Fixed Version
Zope2
PyPI
< 2.13.19
2.13.19
Plone
PyPI
≥ 3.3.2
< 4.2.3
4.2.3
Plone
PyPI
≥ 4.3a1
< 4.3b1
4.3b1

References

Frequently Asked Questions

What is CVE-2012-5486?
CVE-2012-5486 is a security vulnerability in Zope2 involving HTTP header injection in Plone and Zope2 under General Security Weakness.
Which Zope2 versions are affected?
Affected versions include releases prior to 2.13.19, 4.2.3, 4.3b1 across affected packages: Zope2, Plone.
What version fixes CVE-2012-5486?
Upgrading to 2.13.19, 4.2.3, 4.3b1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Zope2 affected?
Yes, Zope2 is affected in releases prior to 2.13.19. Upgrade your dependency to 2.13.19 or later.
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-5486?
CVE-2012-5486 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:H/A:N.
What CWE is associated with CVE-2012-5486?
CVE-2012-5486 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2012-5486?
Run the dependency tree command: 'pip show Zope2'. 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-77hv-8796-8ccp",
  "modified" : "2024-10-11T20:53:34Z",
  "published" : "2018-07-23T19:51:50Z",
  "aliases" : [ "CVE-2012-5486" ],
  "summary" : "HTTP header injection in Plone and Zope2",
  "details" : "ZPublisher.HTTPRequest._scrubHeader in Zope 2 before 2.13.19, as used in Plone before 4.3 beta 1, allows remote attackers to inject arbitrary HTTP headers via a linefeed (LF) character.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Zope2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.13.19"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Plone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.2"
      }, {
        "fixed" : "4.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Plone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3a1"
      }, {
        "fixed" : "4.3b1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.3a2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5486"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2014:1194"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2012-5486"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/zope2/+bug/930812"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=878939"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-77hv-8796-8ccp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/plone/PYSEC-2014-28.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/zope2/PYSEC-2014-73.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://plone.org/products/plone-hotfix/releases/20121106"
  }, {
    "type" : "WEB",
    "url" : "https://plone.org/products/plone/security/advisories/20121106/02"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2014-1194.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/10/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:21:53Z",
    "nvd_published_at" : "2014-09-30T14:55:00Z"
  }
}