CVE-2021-45082 json
Command Injection in Cobbler
published 4y ago modified last mo. also GHSA-6cm4-gm85-972c , PYSEC-2022-37 , EUVD-2022-0040
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
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.)
Patch / fix
- pypi cobbler 3.3.1
- cobbler_project cobbler 3.3.1
- cobbler Ubuntu Pro 16.04 LTS 2.4.1-0ubuntu2+esm1
ubuntu advisories UBUNTU-CVE-2021-45082
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- cobbler Manager Server Module 4.1 3.0.0+git20190806.32c4bae0-8.22.9.1
- cobbler Manager Server Module 4.2 3.1.2-150300.5.14.1
suse advisories SUSE-SU-2022:0510-1SUSE-SU-2022:0509-1
- cobbler openSUSE Tumbleweed 3.3.1.0+git.f5b0599a-1.1
opensuse advisories openSUSE-SU-2024:11853-1
- github.com/cobbler/cobbler#2945 pull request
- github.com/cobbler/cobbler/releases/tag/v3.3.1 release
- bugzilla.suse.com/show_bug.cgi?id=1193678 advisory
Is CVE-2021-45082 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-45082 updated cvss 7.8
cobbler: incomplete template sanitization
-
Red Hat Enterprise Linux 8 koan, python3-koannot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.50% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugzilla.suse.com https://bugzilla.suse.com/show_bug.cgi?id=1193678 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | cobbler | <3.3.1 |
3.3.1 |
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
bugzilla.suse.com
/show_bug.cgi?id=1193678
web, exploit, issue-tracking, patch, third-party-advisory, report
-
github.com
/cobbler/cobbler/pull/2945
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE/
vendor-advisory
-
github.com
/cobbler/cobbler/releases
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-45082
advisory
-
github.com
/cobbler/cobbler
package
-
github.com
/cobbler/cobbler/releases/tag/v3.3.1
web
-
github.com
/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2022-37.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE
web
-
github.com
/advisories/GHSA-6cm4-gm85-972c
advisory
Sources
- CVE List CVE-2021-45082
- GitHub Advisory GHSA-6cm4-gm85-972c
- NVD CVE-2021-45082
- OSV PYSEC-2022-37
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.