Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-45082

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.)

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-45082
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:23 UTC · Revision 1

Source evidence

CVE-2021-45082

core-osv · Original source

Published 19 Feb 2022, 00:15 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.)

osv:CVE-2021-45082
Complete source record
{
  "id": "5e32b6c25b4fd378a7ffc9bef5a4aadfa4228bf30c064b73c3579fba3610350f",
  "url": "https://osv.dev/vulnerability/CVE-2021-45082",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-45082",
    "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.)",
    "evidence": "osv:CVE-2021-45082",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-45082",
      "aliases": [
        "CVE-2021-45082",
        "GHSA-6cm4-gm85-972c",
        "PYSEC-2022-37"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cobbler/cobbler",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f5b0599acce32de4288c76e4f601aece0c664fed"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cobbler_project:cobbler:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.3.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.3.0",
            "v3.2.1",
            "v3.2.0",
            "v3.1.1",
            "v3.1.0",
            "v3.0.1",
            "v3.0.0",
            "v2.2.1-1",
            "cobbler-2.2.1-1",
            "v2.2.0-1",
            "cobbler-2.2.0-1",
            "v2.1.0",
            "v2.0.3.2-1",
            "cobbler-2.0.3.2-1",
            "v2.0.3.1",
            "v2.0.3",
            "v2.0.2-1",
            "v1.4.0-2",
            "v1.2.9",
            "v1.2.8-1",
            "v1.2.6",
            "v1.2.5",
            "v1.2.2",
            "v1.2.1-1",
            "v1.2.0",
            "v1.0.1",
            "v1.0.0",
            "v0.8.3-3",
            "v0.8.3-2",
            "v0.8.2",
            "v0.8.1",
            "v0.6.5",
            "0.6.5",
            "v0.6.4",
            "v0.6.3-2",
            "v0.6.2-2",
            "v0.6.1-2",
            "v0.6.0",
            "0.6.0",
            "v0.5.1",
            "v0.4.8",
            "v0.4.7",
            "v0.4.6",
            "v0.4.5",
            "v0.4.4",
            "v0.4.3",
            "v0.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45082.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:11.110907368Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEJN7CPW6YCHBFQPFZKGA6AVA6T5NPIW/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z5CSXQE7Q4TVDQJKFYBO4XDH3BZ7BLAR/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZCXMOUW4DH4DYWIJN44SMSU6R3CZDZBE/",
        "https://github.com/cobbler/cobbler/releases",
        "https://bugzilla.suse.com/show_bug.cgi?id=1193678"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  },
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  },
                  {
                    "introduced": "36"
                  },
                  {
                    "last_affected": "36"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:opensuse:backports:sle-15:sp3:*:*:*:*:*:*",
              "cpe:2.3:o:opensuse:backports:sle-15:sp4:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:backports",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "sle-15-sp3"
                  },
                  {
                    "last_affected": "sle-15-sp3"
                  },
                  {
                    "introduced": "sle-15-sp4"
                  },
                  {
                    "last_affected": "sle-15-sp4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:suse:linux_enterprise_server:11:sp3:*:*:*:*:*:*",
              "cpe:2.3:o:suse:linux_enterprise_server:12:-:*:*:*:*:*:*",
              "cpe:2.3:o:suse:linux_enterprise_server:15:sp2:*:*:*:*:*:*",
              "cpe:2.3:o:suse:linux_enterprise_server:15:sp3:*:*:*:*:*:*"
            ],
            "vendor_product": "suse:linux_enterprise_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "11-sp3"
                  },
                  {
                    "last_affected": "11-sp3"
                  },
                  {
                    "introduced": "12-NA"
                  },
                  {
                    "last_affected": "12-NA"
                  },
                  {
                    "introduced": "15-sp2"
                  },
                  {
                    "last_affected": "15-sp2"
                  },
                  {
                    "introduced": "15-sp3"
                  },
                  {
                    "last_affected": "15-sp3"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-45082",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384928,
  "published_at": "2022-02-19T00:15:17.013+00:00"
}