CVE-2010-2235: Cobbler Cobbler Is Vulnerable To Code Vulnerability

HIGH
Advisory Identifier: GHSA-jhm7-38xj-pvm8
CWE-94
Published
Advisory Summary

CVE-2010-2235 is a HIGH cobbler is vulnerable to code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Cobbler libraries in the PyPI ecosystem. The issue involves cobbler is vulnerable to code injection. Remediation is available by upgrading affected packages to version 2.0.7.

CVE-2010-2235 at a Glance

CVE Identifier CVE-2010-2235
GHSA Identifier GHSA-jhm7-38xj-pvm8
Severity HIGH
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-2010-2235

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.0.7
pip install cobbler>=2.0.7
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-2010-2235, 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.0.7), 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

template_api.py in Cobbler before 2.0.7, as used in Red Hat Network Satellite Server and other products, does not disable the ability of the Cheetah template engine to execute Python statements contained in templates, which allows remote authenticated administrators to execute arbitrary code via a crafted kickstart template file, a different vulnerability than CVE-2008-6954.

CVE-2010-2235 Affected Cobbler Versions

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

References

Frequently Asked Questions

What is CVE-2010-2235?
CVE-2010-2235 is a security vulnerability in Cobbler involving Cobbler is vulnerable to code injection under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Cobbler versions are affected?
Affected versions include releases prior to 2.0.7 across affected packages: cobbler.
What version fixes CVE-2010-2235?
Upgrading to 2.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cobbler affected?
Yes, cobbler is affected in releases prior to 2.0.7. Upgrade your dependency to 2.0.7 or later.
What CWE is associated with CVE-2010-2235?
CVE-2010-2235 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-2010-2235?
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-jhm7-38xj-pvm8",
  "modified" : "2023-02-07T18:24:03Z",
  "published" : "2022-05-17T05:45:48Z",
  "aliases" : [ "CVE-2010-2235" ],
  "summary" : "Cobbler is vulnerable to code injection ",
  "details" : "template_api.py in Cobbler before 2.0.7, as used in Red Hat Network Satellite Server and other products, does not disable the ability of the Cheetah template engine to execute Python statements contained in templates, which allows remote authenticated administrators to execute arbitrary code via a crafted kickstart template file, a different vulnerability than CVE-2008-6954.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cobbler"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2235"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2010:0775"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2010-2235"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=607662"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cobbler/cobbler"
  }, {
    "type" : "WEB",
    "url" : "https://people.fedoraproject.org/~shenson/cobbler/cobbler-2.0.8.tar.gz"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/support/errata/RHSA-2010-0775.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-07T18:24:03Z",
    "nvd_published_at" : "2010-12-09T20:00:00Z"
  }
}