CVE-2021-40323
cobbler: Arbitrary File Disclosure/Template Injection via generate_script RPC method
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Red Hat (high), Ubuntu (high).
Description
Cobbler before 3.3.0 allows log poisoning, and resultant Remote Code Execution, via an XMLRPC method that logs to the logfile for template injection.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | cobbler | 3.3.0 |
| ubuntu 16.04-ESM | cobbler | 2.4.1-0ubuntu2+esm1 |
References
- https://access.redhat.com/security/cve/CVE-2021-40323
- https://github.com/advisories/GHSA-cpqf-3c3r-c9g2
- https://github.com/cobbler/cobbler
- https://github.com/cobbler/cobbler/commit/d8f60bbf14a838c8c8a1dba98086b223e35fe70a
- https://github.com/cobbler/cobbler/pull/2794
- https://github.com/cobbler/cobbler/releases/tag/v3.3.0
- https://github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2021-373.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2021-40323