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.)
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-45082
- https://bugzilla.suse.com/show_bug.cgi?id=1193678
- https://github.com/cobbler/cobbler/releases
- https://github.com/cobbler/cobbler/pull/2945
- https://github.com/cobbler/cobbler/releases/tag/v3.3.1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR/
- https://github.com/advisories/GHSA-6cm4-gm85-972c