# CVE-2021-45082: Command Injection in Cobbler

Source: https://junglewise.ai/threats/cve-2021-45082-command-injection-in-cobbler  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-02-19  
License: CC BY 4.0 with a link back

CVE-2021-45082 · Severity: low · CVSS 3.1 · Published 2022-02-19

An issue was discovered in Cobbler before 3.3.1. In the templar.py file, the function check_for_invalid_imports can allow Cheetah code to import Python modules via the "#from MODULE import" substring. (Only lines beginning with #import are blocked.)

Technologies: [cobbler (PyPI)](https://junglewise.ai/threats/technologies/cobbler). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-45082 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-45082 being exploited in the wild.

**How severe is CVE-2021-45082?** Low severity, with a CVSS score of 3.1, published 19 February 2022.

**Which products and versions are affected?** cobbler (PyPI) ECOSYSTEM:introduced=0,fixed=3.3.1.

**Is there a fix for CVE-2021-45082?** Yes. cobbler (PyPI): upgrade to 3.3.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-45082?** Check whether you run cobbler (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- cobbler (PyPI): upgrade to 3.3.1 or later

  ```sh
  pip install "cobbler>=3.3.1"
  ```


## Affected products

- cobbler (PyPI) ECOSYSTEM:introduced=0,fixed=3.3.1

## Identifiers

- CVE-2021-45082
- GHSA-6cm4-gm85-972c
- PYSEC-2022-37

## Related threats

- [PYSEC-2026-794 - Cobbler is vulnerable to code injection](https://junglewise.ai/threats/cve-2010-2235-cobbler-is-vulnerable-to-code-injection)
- [PYSEC-2026-792 - Cobbler subject to Command Injection](https://junglewise.ai/threats/cve-2012-2395-cobbler-subject-to-command-injection)
- [PYSEC-2026-793 - Cobbler vulnerable to code injection via unsafe YAML loading](https://junglewise.ai/threats/cve-2011-4953-cobbler-vulnerable-to-code-injection-via-unsafe-yaml-loading)
- [PYSEC-2026-795 - Cobbler Web Interface Kickstart Template Remote Privilege Escalation Vulnerability](https://junglewise.ai/threats/cve-2008-6954-cobbler-web-interface-kickstart-template-remote-privilege)
- [PYSEC-2026-797 - Cobbler Path Traversal vulnerability](https://junglewise.ai/threats/cve-2014-3225-cobbler-path-traversal-vulnerability)
