CVE-2011-4953: Cobbler Cobbler Vulnerable To Code Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-hpj3-5p46-g87w
CWE-94 CWE-20
Published
Advisory Summary

CVE-2011-4953 is a MODERATE cobbler vulnerable to code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Cobbler libraries in the PyPI ecosystem. The issue involves cobbler vulnerable to code injection via unsafe yaml loading. Remediation is available by upgrading affected packages to version 2.6.0.

CVE-2011-4953 at a Glance

CVE Identifier CVE-2011-4953
GHSA Identifier GHSA-hpj3-5p46-g87w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Cobbler
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2011-4953

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

cobbler fixed: 2.6.0
pip install cobbler>=2.6.0
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 cobbler

How to Check if You Are Affected

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

pip show cobbler

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

Note: The pip show cobbler 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 Cobbler, 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

The `set_mgmt_parameters` function in item.py in cobbler before 2.2.2 allows context-dependent attackers to execute arbitrary code via vectors related to the use of the `yaml.load` function instead of the `yaml.safe_load function`, as demonstrated using Puppet.

CVE-2011-4953 Affected Cobbler Versions

1 component(s)
Fixed Versions:
2.6.0
Product / Package Ecosystem Affected Versions Fixed Version
cobbler
PyPI
< 2.6.0
2.6.0

References

Frequently Asked Questions

What is CVE-2011-4953?
CVE-2011-4953 is a security vulnerability in Cobbler involving Cobbler vulnerable to code injection via unsafe YAML loading under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Cobbler versions are affected?
Affected versions include releases prior to 2.6.0 across affected packages: cobbler.
What version fixes CVE-2011-4953?
Upgrading to 2.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cobbler affected?
Yes, cobbler is affected in releases prior to 2.6.0. Upgrade your dependency to 2.6.0 or later.
What CWE is associated with CVE-2011-4953?
CVE-2011-4953 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check PyPI dependencies for CVE-2011-4953?
Run the dependency tree command: 'pip show cobbler'. 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-hpj3-5p46-g87w",
  "modified" : "2024-01-15T20:50:34Z",
  "published" : "2022-05-17T04:30:25Z",
  "aliases" : [ "CVE-2011-4953" ],
  "summary" : "Cobbler vulnerable to code injection via unsafe YAML loading",
  "details" : "The `set_mgmt_parameters` function in item.py in cobbler before 2.2.2 allows context-dependent attackers to execute arbitrary code via vectors related to the use of the `yaml.load` function instead of the `yaml.safe_load function`, as demonstrated using Puppet.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cobbler"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4953"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cobbler/cobbler/commit/1b4f9ecf051422eb8512794701900f6199651442"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ubuntu/oneiric/+source/cobbler/+bug/858883"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.novell.com/show_bug.cgi?id=757062"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cobbler/cobbler"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00019.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-15T20:50:34Z",
    "nvd_published_at" : "2014-10-27T01:55:00Z"
  }
}