CVE-2011-4953: Cobbler Cobbler Vulnerable To Code Injection Vulnerability
MODERATECVE-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
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.
pip install cobbler>=2.6.0
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
CVE-2011-4953 Affected Cobbler Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cobbler
|
PyPI |
< 2.6.0
|
2.6.0
|
References
Frequently Asked Questions
What is CVE-2011-4953?
Which Cobbler versions are affected?
What version fixes CVE-2011-4953?
Is cobbler affected?
What CWE is associated with CVE-2011-4953?
How can I check PyPI dependencies for CVE-2011-4953?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}