# CVE-2021-40324: PYSEC-2021-374 - Cobbler before 3.3.0 allows arbitrary file write operations via upload_log_data.

Source: https://junglewise.ai/threats/cve-2021-40324-cobbler-before-3-3-0-allows-arbitrary-file-write-operations-via  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-10-04  
License: CC BY 4.0 with a link back

CVE-2021-40324 · Severity: low · CVSS 3.1 · Published 2021-10-04

Cobbler before 3.3.0 allows arbitrary file write operations via upload_log_data.

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

## Quick answers

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

**How severe is CVE-2021-40324?** Low severity, with a CVSS score of 3.1, published 4 October 2021.

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

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

**Am I affected by CVE-2021-40324?** 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.0 or later

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


## Affected products

- cobbler (PyPI) ECOSYSTEM:introduced=0,fixed=3.3.0, GIT:introduced=0,fixed=d8f60bbf14a838c8c8a1dba98086b223e35fe70a|ECOSYSTEM:introduced=0,fixed=3.3.0

## Identifiers

- CVE-2021-40324
- GHSA-4cfr-gjfx-fj3x
- PYSEC-2021-374

## 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)
