Vulnerability record · CVE-2021-40323 · published 4 October 2021
CVE-2021-40323: Cobbler XMLRPC log poisoning leads to remote code execution
Cobbler Project · Cobbler
Cobbler before 3.3.0 allows log poisoning through an XMLRPC method that writes attacker-controlled input into the logfile, which is then processed as a template. This template injection lets an unauthenticated network attacker turn logged content into code execution.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8 with no authentication or interaction required and very high EPSS make this a top remediation priority.
What it is
Cobbler before 3.3.0 allows log poisoning through an XMLRPC method that writes attacker-controlled input into the logfile, which is then processed as a template. This template injection lets an unauthenticated network attacker turn logged content into code execution.
Impact
An attacker can execute arbitrary code on the Cobbler server, gaining full control of the provisioning host and any systems it manages.
Attack surface
Reached over the network through the XMLRPC interface; the CVSS vector shows no privileges or user interaction required.
Exploitation
Not listed in CISA KEV, but EPSS is very high (0.868, 99.7th percentile), indicating elevated likelihood of exploitation; references are patch and release links only, with no public exploit tag.
What to do
- Upgrade Cobbler to 3.3.0 or later, applying commit d8f60bbf14a838c8c8a1dba98086b223e35fe70a.
- Restrict network access to the Cobbler XMLRPC endpoint to trusted management hosts only.
- Disable or firewall XMLRPC if it is not required in your deployment.
- Audit and sanitize any template or logfile processing paths that consume externally supplied data.
- Monitor Cobbler logs for injected template or code-like content.
Detection
- Review Cobbler logfiles for unexpected template syntax or code fragments.
- Alert on XMLRPC requests from untrusted or unusual source addresses.
- Monitor for unexpected child processes or command execution spawned by the Cobbler service.
- Track Cobbler version inventory to confirm hosts are on 3.3.0 or later.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/cobbler/cobbler/commit/d8f60bbf14a838c8c8a1dba98086b223e35fe70a | PatchThird Party Advisory |
| https://github.com/cobbler/cobbler/releases/tag/v3.3.0 | ProductThird Party Advisory |
| https://github.com/cobbler/cobbler/commit/d8f60bbf14a838c8c8a1dba98086b223e35fe70a | PatchThird Party Advisory |
| https://github.com/cobbler/cobbler/releases/tag/v3.3.0 | ProductThird Party Advisory |
Track CVE-2021-40323 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-40323), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.