CVE-2021-45082
Command Injection in Cobbler
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.)
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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.)
- Record
CVE-2021-45082- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-77
- Updated
- 2026-11-02
CVE List No score
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.)
- Record
CVE-2021-45082- Updated
- 2026-11-02
EUVDEUVD-2022-0040 No score
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.)
- Record
EUVD-2022-0040- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6cm4-gm85-972c
8.5
Command Injection in Cobbler
An issue was discovered in Cobbler through 3.3.0. 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.)
- Record
GHSA-6cm4-gm85-972c- CVSS 4.0
- 8.5 High
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
OSV
7.8
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.)
- Record
CVE-2021-45082- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-6cm4-gm85-972c
8.5
Command Injection in Cobbler
An issue was discovered in Cobbler through 3.3.0. 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.)
- Record
GHSA-6cm4-gm85-972c- CVSS 4.0
- 8.5 High
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
Show 10 moreShow less
OSVOESA-2025-1467
9.8
cobbler security update
Cobbler is a network install server. Cobbler supports PXE, ISO virtualized installs, and re-installing existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a XML-RPC API for integration with other applications.
Security Fix(es):
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.(CVE-2021-40323)
Cobbler before 3.3.0 allows arbitrary file write operations via upload_log_data.(CVE-2021-40324)
An issue was discovered in Cobbler through 3.3.1. Routines in several files use the HTTP protocol instead of the more secure HTTPS.(CVE-2021-45081)
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.)(CVE-2021-45082)
An issue was discovered in Cobbler before 3.3.1. Files in /etc/cobbler are world readable. Two of those files contain some sensitive information that can be exposed to a local user who has non-privileged access to the server. The users.digest file contains the sha2-512 digest of users in a Cobbler local installation. In the case of an easy-to-guess password, it's trivial to obtain the plaintext string. The settings.yaml file contains secrets such as the hashed default password.(CVE-2021-45083)
- Record
OESA-2025-1467- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-1468
9.8
cobbler security update
Cobbler is a network install server. Cobbler supports PXE, ISO virtualized installs, and re-installing existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a XML-RPC API for integration with other applications.
Security Fix(es):
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.(CVE-2021-40323)
Cobbler before 3.3.0 allows arbitrary file write operations via upload_log_data.(CVE-2021-40324)
An issue was discovered in Cobbler through 3.3.1. Routines in several files use the HTTP protocol instead of the more secure HTTPS.(CVE-2021-45081)
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.)(CVE-2021-45082)
An issue was discovered in Cobbler before 3.3.1. Files in /etc/cobbler are world readable. Two of those files contain some sensitive information that can be exposed to a local user who has non-privileged access to the server. The users.digest file contains the sha2-512 digest of users in a Cobbler local installation. In the case of an easy-to-guess password, it's trivial to obtain the plaintext string. The settings.yaml file contains secrets such as the hashed default password.(CVE-2021-45083)
- Record
OESA-2025-1468- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-1469
9.8
cobbler security update
Cobbler is a network install server. Cobbler supports PXE, ISO virtualized installs, and re-installing existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a XML-RPC API for integration with other applications.
Security Fix(es):
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.(CVE-2021-40323)
Cobbler before 3.3.0 allows arbitrary file write operations via upload_log_data.(CVE-2021-40324)
An issue was discovered in Cobbler through 3.3.1. Routines in several files use the HTTP protocol instead of the more secure HTTPS.(CVE-2021-45081)
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.)(CVE-2021-45082)
An issue was discovered in Cobbler before 3.3.1. Files in /etc/cobbler are world readable. Two of those files contain some sensitive information that can be exposed to a local user who has non-privileged access to the server. The users.digest file contains the sha2-512 digest of users in a Cobbler local installation. In the case of an easy-to-guess password, it's trivial to obtain the plaintext string. The settings.yaml file contains secrets such as the hashed default password.(CVE-2021-45083)
- Record
OESA-2025-1469- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-1527
9.8
cobbler security update
Cobbler is a network install server. Cobbler supports PXE, ISO virtualized installs, and re-installing existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a XML-RPC API for integration with other applications.
Security Fix(es):
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.(CVE-2021-40323)
Cobbler before 3.3.0 allows arbitrary file write operations via upload_log_data.(CVE-2021-40324)
An issue was discovered in Cobbler through 3.3.1. Routines in several files use the HTTP protocol instead of the more secure HTTPS.(CVE-2021-45081)
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.)(CVE-2021-45082)
An issue was discovered in Cobbler before 3.3.1. Files in /etc/cobbler are world readable. Two of those files contain some sensitive information that can be exposed to a local user who has non-privileged access to the server. The users.digest file contains the sha2-512 digest of users in a Cobbler local installation. In the case of an easy-to-guess password, it's trivial to obtain the plaintext string. The settings.yaml file contains secrets such as the hashed default password.(CVE-2021-45083)
- Record
OESA-2025-1527- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-45082
7.8
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.)
- Record
UBUNTU-CVE-2021-45082- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11853-1 No score
cobbler-3.3.1.0+git.f5b0599a-1.1 on GA media
These are all security issues fixed in the cobbler-3.3.1.0+git.f5b0599a-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11853-1- Updated
- 2026-11-02
OSVPYSEC-2022-37 No score
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.)
- Record
PYSEC-2022-37- Updated
- 2026-11-02
OSVSUSE-SU-2022:0509-1 No score
Security update for cobbler
This update for cobbler fixes the following issues:
- CVE-2021-45083: Fixed unsafe permissions on sensitive files (bsc#1193671).
- CVE-2021-45082: Fixed incomplete template sanitation (bsc#1193678).
The following non-security bugs were fixed:
- Fix issues with installation module logging and validation (bsc#1195918)
- Move configuration files ownership to apache (bsc#1195906)
- Remove hardcoded test credentials (bsc#1193673)
- Prevent log pollution (bsc#1193675)
- Missing sanity check on MongoDB configuration file (bsc#1193676)
- Record
SUSE-SU-2022:0509-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:0510-1 No score
Security update for cobbler
This update for cobbler fixes the following issues:
- CVE-2021-45083: Fixed unsafe permissions on sensitive files (bsc#1193671).
- CVE-2021-45082: Fixed incomplete template sanitation (bsc#1193678).
The following non-security bugs were fixed:
- Fix issues with installation module logging and validation (bsc#1195918)
- Move configuration files ownership to apache (bsc#1195906)
- Remove hardcoded test credentials (bsc#1193673)
- Prevent log pollution (bsc#1193675)
- Missing sanity check on MongoDB configuration file (bsc#1193676)
- Record
SUSE-SU-2022:0510-1- Updated
- 2026-11-02
OSVUSN-6475-1 No score
cobbler vulnerabilities
It was discovered that Cobbler did not properly handle user input, which could result in an absolute path traversal. An attacker could possibly use this issue to read arbitrary files. (CVE-2014-3225)
It was discovered that Cobbler did not properly handle user input, which could result in command injection. An attacker could possibly use this issue to execute arbitrary code with high privileges. (CVE-2017-1000469, CVE-2021-45082)
It was discovered that Cobbler did not properly hide private functions in a class. A remote attacker could possibly use this issue to gain high privileges and upload files to an arbitrary location. (CVE-2018-10931, CVE-2018-1000225, CVE-2018-1000226)
Nicolas Chatelain discovered that Cobbler did not properly handle user input, which could result in log poisoning. A remote attacker could possibly use this issue to bypass authorization, write in an arbitrary file, or execute arbitrary code. (CVE-2021-40323, CVE-2021-40324, CVE-2021-40325)
It was discovered that Cobbler did not properly handle file permissions during package install or update operations. An attacker could possibly use this issue to perform a privilege escalation attack. (CVE-2021-45083)
It was discovered that Cobbler did not properly process credentials for expired accounts. An attacker could possibly use this issue to login to the platform with an expired account or password. (CVE-2022-0860)
- Record
USN-6475-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cobblerPyPI |
before 3.3.1 | 3.3.1 |
cobblerPyPI |
before 3.3.1, plus listed versions 0.6.3-23.1.23.2.13.2.23.2.33.3.0 |
3.3.1 |
cobbleropenEuler:22.03-LTS-SP3 From an advisory covering 5 CVEs |
before 3.2.3-2.oe2203sp3 | 3.2.3-2.oe2203sp3 |
cobbleropenEuler:22.03-LTS-SP4 From an advisory covering 5 CVEs |
before 3.2.3-2.oe2203sp4 | 3.2.3-2.oe2203sp4 |
cobbleropenEuler:24.03-LTS-SP1 From an advisory covering 5 CVEs |
before 3.2.3-2.oe2403sp1 | 3.2.3-2.oe2403sp1 |
cobbleropenEuler:24.03-LTS From an advisory covering 5 CVEs |
before 3.2.3-2.oe2403 | 3.2.3-2.oe2403 |
cobblerPyPI |
before 3.3.1, plus listed versions 0.6.3-23.1.23.2.13.2.23.3.03.2.3 |
3.3.1 |
cobblerSUSE:Manager Server Module 4.2 From an advisory covering 2 CVEs |
before 3.1.2-150300.5.14.1 | 3.1.2-150300.5.14.1 |
cobblerSUSE:Manager Server Module 4.1 From an advisory covering 2 CVEs |
before 3.0.0+git20190806.32c4bae0-8.22.9.1 | 3.0.0+git20190806.32c4bae0-8.22.9.1 |
cobblerUbuntu:Pro:16.04:LTS |
before 2.4.1-0ubuntu2+esm1, plus listed versions 2.4.1-0ubuntu2 |
2.4.1-0ubuntu2+esm1 |
cobblerUbuntu:Pro:16.04:LTS From an advisory covering 11 CVEs |
before 2.4.1-0ubuntu2+esm1, plus listed versions 2.4.1-0ubuntu2 |
2.4.1-0ubuntu2+esm1 |
cobbleropenSUSE:Tumbleweed |
before 3.3.1.0+git.f5b0599a-1.1 | 3.3.1.0+git.f5b0599a-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-45082 is a high vulnerability (CVSS 7.8) in Cobbler Project Cobbler, published February 18, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.50%, the 42nd percentile. Fixed in cobbler 3.3.1.
References
github.com/cobbler/cobbler/releases
bugzilla.suse.com/show_bug.cgi?id=1193678
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE
nvd.nist.gov/vuln/detail/CVE-2021-45082
Show 40 moreShow less
github.com/cobbler/cobbler/pull/2945
github.com/cobbler/cobbler/releases/tag/v3.3.1
github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2022-37.yaml
lists.fedoraproject.org/archives/list/[email protected]/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW
lists.fedoraproject.org/archives/list/[email protected]/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR
lists.fedoraproject.org/archives/list/[email protected]/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE
github.com/advisories/GHSA-6cm4-gm85-972c
github.com/cobbler/cobbler
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1467
nvd.nist.gov/vuln/detail/CVE-2021-40323
nvd.nist.gov/vuln/detail/CVE-2021-40324
nvd.nist.gov/vuln/detail/CVE-2021-45081
nvd.nist.gov/vuln/detail/CVE-2021-45083
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1468
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1469
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1527
suse.com/support/update/announcement/2022/suse-su-20220509-1
bugzilla.suse.com/1193671
bugzilla.suse.com/1193673
bugzilla.suse.com/1193675
bugzilla.suse.com/1193676
bugzilla.suse.com/1193678
bugzilla.suse.com/1195906
bugzilla.suse.com/1195918
suse.com/security/cve/CVE-2021-45082
suse.com/security/cve/CVE-2021-45083
suse.com/support/update/announcement/2022/suse-su-20220510-1
ubuntu.com/security/CVE-2021-45082
ubuntu.com/security/notices/USN-6475-1
cve.org/CVERecord?id=CVE-2021-45082
ubuntu.com/security/CVE-2014-3225
ubuntu.com/security/CVE-2017-1000469
ubuntu.com/security/CVE-2018-10931
ubuntu.com/security/CVE-2018-1000225
ubuntu.com/security/CVE-2018-1000226
ubuntu.com/security/CVE-2021-40323
ubuntu.com/security/CVE-2021-40324
ubuntu.com/security/CVE-2021-40325
ubuntu.com/security/CVE-2021-45083
ubuntu.com/security/CVE-2022-0860