{"id":"CVE-2021-45082","published":"2022-02-18T23:23:30Z","modified":"2024-08-04T04:32:13Z","title":"An issue was discovered in Cobbler before 3.3.1","vendor":null,"product":null,"tier":"tail","description":{"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.)","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00495,"percentile":0.35355,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/cobbler/cobbler/releases","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1193678","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":7.07}]},"affected":[{"ecosystem":"PyPI","package":"cobbler","vulnerableRanges":["<3.3.1"],"patched":["3.3.1"],"from":["GHSA-6cm4-gm85-972c","PYSEC-2022-37"],"provenance":"source"}],"summary":{"text":"The flaw lies in the templar.py file of Cobbler, affecting versions before 3.3.1. The check_for_invalid_imports function fails to block Cheetah template code that imports Python modules through the \"#from MODULE import\" syntax, since only lines beginning with \"#import\" are filtered. An attacker able to supply Cheetah template content processed by Cobbler could use this bypass to import Python modules.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:14Z"},"euvd":{"id":"EUVD-2022-0040","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-40323","published":"2021-10-04","fixed":"3.3.0","kev":false},{"cve":"CVE-2021-40324","published":"2021-10-04","fixed":"3.3.0","kev":false,"link":{"from":"CVE-2021-40324","to":"CVE-2021-45082","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:cobbler","fromFixed":"3.3.0","toFixed":"3.3.1","daysApart":137}]}},{"cve":"CVE-2021-40325","published":"2021-10-04","fixed":"3.3.0","kev":false},{"cve":"CVE-2021-45082","published":"2022-02-18","fixed":"3.3.1","kev":false},{"cve":"CVE-2021-45083","published":"2022-02-20","fixed":"3.3.1","kev":false},{"cve":"CVE-2022-0860","published":"2022-03-11","fixed":"3.3.2","kev":false},{"cve":"CVE-2024-47533","published":"2024-11-18","fixed":"3.3.7","kev":false}],"package":"PyPI:cobbler"}}