{"id":"CVE-2021-45082","aliases":["CVE-2021-45082","GHSA-6cm4-gm85-972c","PYSEC-2022-37"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection in Cobbler","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.)","source":"cvelist"},{"lang":"en","text":"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.)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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)","source":"nvd"}],"published":"2022-02-18T23:23:30.000Z","modified":"2026-09-10T03:49:16.868Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.1"}],"ecosystem":"PyPI","package":"cobbler","purl":"pkg:pypi/cobbler","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.1"}],"vendor":"cobbler_project","product":"cobbler","cpe":"cpe:2.3:a:cobbler_project:cobbler:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"opensuse","product":"factory","cpe":"cpe:2.3:a:opensuse:factory:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"sle-15"},{"status":"affected","version":"sle-15"}],"vendor":"opensuse","product":"backports","cpe":"cpe:2.3:o:opensuse:backports:sle-15:sp3:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11"},{"status":"affected","version":"12"},{"status":"affected","version":"15"},{"status":"affected","version":"15"}],"vendor":"suse","product":"linux_enterprise_server","cpe":"cpe:2.3:o:suse:linux_enterprise_server:11:sp3:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.1"}],"ecosystem":"PyPI","package":"cobbler","purl":"pkg:pypi/cobbler","source":"pysec"}],"references":[{"url":"https://github.com/cobbler/cobbler/releases","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1193678","tags":["exploit","issue-tracking","patch","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45082","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cobbler/cobbler/pull/2945","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cobbler/cobbler","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/cobbler/cobbler/releases/tag/v3.3.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2022-37.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-6cm4-gm85-972c","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-45082","url":"https://www.cve.org/CVERecord?id=CVE-2021-45082","licence":"CVE Terms of Use","modified":"2024-08-04T04:32:13.626Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6cm4-gm85-972c","url":"https://github.com/advisories/GHSA-6cm4-gm85-972c","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:16.868Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-45082","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45082","licence":"Public domain","modified":"2026-06-17T04:13:08.527Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-37","url":"https://osv.dev/vulnerability/PYSEC-2022-37","licence":"CC-BY-4.0","modified":"2025-10-09T08:23:54.151Z"}],"updatedAt":"2026-11-25T22:58:07.044Z","epss":{"score":0.00484,"percentile":0.43332,"date":"2026-12-01T12:00:22.000Z"}}