Bug 2056388 (CVE-2021-45082) - CVE-2021-45082 cobbler: incomplete template sanitization
Summary: CVE-2021-45082 cobbler: incomplete template sanitization
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2021-45082
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2056391 2056392
Blocks: 2056398
TreeView+ depends on / blocked
 
Reported: 2022-02-21 06:47 UTC by Avinash Hanwate
Modified: 2022-03-10 15:59 UTC (History)
10 users (show)

Fixed In Version: cobbler 3.3.1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in cobbler. The vulnerability occurs due to incomplete template sanitization and leads to code injection. This flaw allows an attacker to interact and inject malicious codes and gain access to the system.
Clone Of:
Environment:
Last Closed: 2022-03-03 00:49:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2022-02-21 06:47:07 UTC
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.)

https://github.com/cobbler/cobbler/releases
https://bugzilla.suse.com/show_bug.cgi?id=1193678

Comment 1 Avinash Hanwate 2022-02-21 06:47:50 UTC
Created cobbler tracking bugs for this issue:

Affects: epel-all [bug 2056392]
Affects: fedora-all [bug 2056391]

Comment 3 Product Security DevOps Team 2022-03-03 00:49:45 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-45082


Note You need to log in before you can comment on or make changes to this bug.