CVE-2021-45082
JSON

7.8high

Command Injection in Cobbler

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.48% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-6cm4-gm85-972cPYSEC-2022-37

Description

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
cobbler (PyPI)before 3.3.1GitHub Advisory Database, PyPA Advisory Database
cobbler_project cobblerbefore 3.3.1NVD
opensuse factoryNot specifiedNVD
opensuse backportssle-15NVD
suse linux_enterprise_server11, 12, 15NVD
fedoraproject fedora34, 35, 36NVD

All scores

GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.6medium CVSS:2.0AV:L/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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

GitHub Advisory Database

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

NVD (es)

Se ha detectado un problema en Cobbler versiones hasta 3.3.0. En el archivo templar.py, la función check_for_invalid_imports puede permitir que el código Cheetah importe módulos de Python por medio de la subcadena "#from MODULE import". (Sólo son bloqueadas las líneas que comienzan con #import)

References

https://github.com/cobbler/cobbler/releasesrelease-notes, third-party-advisory, web
https://bugzilla.suse.com/show_bug.cgi?id=1193678exploit, issue-tracking, patch, report, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE/vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-45082advisory
https://github.com/cobbler/cobbler/pull/2945web
https://github.com/cobbler/cobblerpackage
https://github.com/cobbler/cobbler/releases/tag/v3.3.1web
https://github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2022-37.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIWweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLARweb

Sources

SourceRecordLicence
CVE ListCVE-2021-45082 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-6cm4-gm85-972c changed 2026-09-10CC-BY-4.0
NVDCVE-2021-45082 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-37 changed 2025-10-09CC-BY-4.0