(release-3008.6)=

Salt 3008.6 release notes#

Changelog#

Fixed#

  • Fixed pkg.installed/pkg.install silently skipping GPG signature verification for packages installed via the sources parameter on RPM-based systems (yum/dnf/dnf5 and zypper), even with the default skip_verify: False. Package-manager gpgcheck/--nogpgcheck handling only governs repository-based installs; installing a package by literal file path (the sources case) is not covered by that setting and was never independently checked. yumpkg.install() and zypperpkg.install() now verify each sources package's RPM signature directly (equivalent to rpm -K -v, via the new lowpkg.verify_signature) when skip_verify is False, and refuse to install any package that is unsigned or fails verification. (CVE-2026-59325) #69905

Security#

  • Require @events in external_auth before allowing access to the salt-api event stream (/events, websocket endpoints). Previously any valid eauth token could subscribe to the full master event bus regardless of ACL.

    This is a breaking change. Any existing external_auth account that accesses the event stream but does not have @events in its ACL will lose access after upgrading.

    If you are affected and cannot immediately update your external_auth ACLs, set events_insecure_auth: True in the master config to temporarily restore the previous (insecure) behavior. This re-opens the event stream to any valid, non-expired token regardless of ACL, reintroducing the original vulnerability -- add @events to the affected accounts' ACLs as soon as possible rather than leaving events_insecure_auth set long-term. #69505

  • Validate symlink targets in archive.unzip() against the extraction directory before creating them. A crafted ZIP archive could use ../ path components in entry names to create symlinks outside the destination, enabling arbitrary file read or write (zip-slip via symlink, CWE-22/CWE-59). #69506

  • Fix two issues: clean_path() called os.path.normpath before resolving symlinks, allowing a symlink gadget to survive string-folding and bypass the jail boundary check; and virtualenv.get_distribution_path() used a keyword blocklist (safe_py_code) to guard the distribution parameter against code injection, which was trivially bypassed — replaced with an allowlist of PEP 508 distribution name characters. #69507

  • Reject absolute paths in minionfs file serving, and validate full path containment. os.path.join would silently discard the cache-root prefix when a path component began with /, allowing requests like salt://minionfs/minion1//etc/shadow to escape the minion cache directory and read arbitrary files.

    The shared fileserver dispatcher (used by every backend: roots, gitfs, minionfs, hgfs, svnfs, s3fs, azurefs) now also normalizes repeated path separators (salt://foo//bar becomes salt://foo/bar) before dispatching to a backend, rather than rejecting such paths outright. This closes the same class of bug for hgfs, svnfs, s3fs, and azurefs, none of which had any containment check of their own and relied entirely on this dispatcher. Unlike an outright rejection, normalizing is not a breaking change: a path with an accidental double separator (e.g. from a templated path with a trailing slash) now resolves as intended instead of failing. #69508

  • Validate the ip parameter with ipaddress.ip_address() in network.get_route() and restrict the iface parameter to legal interface-name characters in network.get_bufsize() and network.mod_bufsize(). All three functions previously interpolated caller-supplied values directly into shell commands, enabling arbitrary command injection.

    In addition, network.get_route() now invokes cmd.run with an argv list and python_shell=False on all supported platforms so shell metacharacters in an IPv6 scope-id (e.g. fe80::1%eth0;id) cannot be interpreted by a shell, closing the CVE-2026-47796 follow-up bypass. #69509

  • Wrap package_path and path arguments with shlex.quote() in rpm_lowpkg.diff(). Both values were interpolated directly into a shell command, allowing an attacker-controlled argument to execute arbitrary commands as the minion process user. #69510

  • Enforce mode 0700 on the eauth token directory. Previously it was created world-listable (0755), allowing any local user on the master to enumerate valid bearer tokens by reading the directory listing. #69511

  • Strip leading .. components from non-root parts in salt.utils.path.join(). Without this, an attacker-controlled relative path such as ../../etc/shadow joined against a cache root would silently escape that root. #69512

  • Replace the ad-hoc regex loop in masterapi.minion_runner() with a call to ckminions.runner_check(), which applies argument-level ACL constraints. Previously, peer_run entries were matched only by function name, so a minion granted my_runner.* could call any function in that runner with any arguments regardless of further ACL restrictions. #69513

  • Validate the bank and cachedir parameters in the cache runner (store, fetch, list, flush). A bank value containing .. components could traverse outside the cache root, and a caller-supplied cachedir could redirect cache operations to an arbitrary filesystem path. Both are now rejected if they resolve outside the configured cache directory.

    Additionally, the tokens bank is now always blocked: with the default cachedir, bank='tokens' required no traversal at all to list, read, or forge live eauth session tokens. Use runner.auth.list_tokens/runner.auth.del_token to manage tokens instead.

    This release also blocks the minions, minions_pre, minions_rejected, and minions_denied banks by default, which is a breaking change for anyone using cache.fetch/cache.flush directly against minion data (e.g. inspecting a minion's cached grains, or purging a decommissioned minion's cache). If you rely on this, set cache_runner_allow_minions_bank: True in the master config to restore the previous behavior. #69514

  • Pass both positional and keyword arguments to runner_check() and wheel_check() in the master worker. Previously only kwarg was forwarded, so spec_check never evaluated positional argument constraints defined in the eauth ACL, allowing a caller to bypass argument-level restrictions on runner and wheel functions.

    This closes an existing ACL bypass rather than adding a new restriction: it only changes behavior for external_auth entries that already use args:/kwargs: restrictions on a runner or wheel function (see "Limiting by function arguments" in the eauth documentation). If you use this feature, review those restrictions before upgrading and confirm your existing automation's positional arguments actually match the configured patterns -- calls that were previously (incorrectly) allowed through will now be rejected as your ACL specifies. #69515

  • Validate the keydir parameter in wheel.key.gen_keys() against the master pki_dir using clean_path(). An authenticated wheel caller could previously supply an arbitrary path and cause RSA key material to be written to any location writable by the master process. #69516

  • Fix two issues in the CherryPy REST API cors_tool(): the Access-Control-Allow-Origin header reflected any Origin verbatim alongside Access-Control-Allow-Credentials: true, enabling any website's JavaScript to make a credentialed cross-origin request (using a logged-in user's session cookie) and read the authenticated response — origins are now restricted to the cors_origin allowlist; and the OPTIONS preflight handler set a session token without any credential check, bypassing authentication — that assignment has been removed.

    Also add explicit support for cors_origin: '*' (allow any origin, never combined with credentials), matching the convention already documented for rest_tornado.

    This is a breaking change for browser-based clients that rely on the session cookie across origins. Clients using the X-Auth-Token header (recommended, and already documented for this API) are unaffected and need no configuration change, since they never send credentials cross-origin. If you have a cookie-based cross-origin client, either switch it to X-Auth-Token header authentication, or configure cors_origin with the trusted origin(s):

    .. code-block:: yaml

      rest_cherrypy:
        cors_origin:
          - https://salt.yourcompany.com
    

    There is no option to restore the previous (insecure) reflect-any-origin behavior -- it allowed any website to read authenticated salt-api data via a logged-in user's browser session, which is a materially different and more severe exposure than the other breaking changes in this release. #69517

  • Make the ProxyCommand filter in SSHClient.sanitize_kwargs() case-insensitive. The previous exact-case check could be bypassed with variants such as proxycommand or PROXYCOMMAND, allowing injection of an arbitrary SSH ProxyCommand. #69518

  • SSDP master discovery accepted masters via unauthenticated UDP broadcast with no mandatory fingerprint check (TOFU), allowing an attacker on the same broadcast domain to redirect a minion to a rogue master.

    This is a breaking change. A minion with discovery enabled and no master_finger configured will now refuse to start, raising SaltConfigurationError at config-load time, before any discovery network activity begins.

    If you are affected and cannot immediately configure master_finger, set discovery_insecure_auth: True in the minion config to temporarily restore the previous (insecure) behavior while you address this. The recommended fix is to set master_finger to the fingerprint of your master's public key (salt-key -F master on the master) as soon as possible, rather than leaving discovery_insecure_auth set long-term. #69519

  • Validate queued function names before dispatch in runners.queue.process_runner(). Any authenticated user who could call queue.insert_runner() could previously queue arbitrary runner calls to run later under the master's full privileges, with no re-check of the inserting user's permissions (confused deputy, CVE-2026-47817). Jobs are now rejected if the function name does not match the module.function identifier pattern.

    Breaking change: queue_runner_allowlist is now required. Previously, if this master config option was left unset, process_runner() would dispatch any syntactically-valid queued function name. It is now fail-closed: with queue_runner_allowlist unset (the default, an empty list), process_runner() dispatches nothing and logs an error for every queued job. To keep using queue.process_runner(), explicitly list every function it should be allowed to dispatch:

    .. code-block:: yaml

      queue_runner_allowlist:
        - test.stdout_print
        - event.send
    

    There is no wildcard/opt-out to restore the old behavior wholesale, since that would simply reintroduce the vulnerability. Only add functions here that are safe to trigger with attacker-influenced args/kwargs from any principal permitted to call queue.insert_runner -- the allowlist narrows which functions can be queued, it does not re-authorize the original caller against that function's own ACL. #69520

  • Enforce a 100 MiB size limit on msgpack deserialization. A pre-authenticated attacker could send an arbitrarily large payload over the TCP transport, causing unbounded memory allocation until OOM. salt.payload.loads() now rejects oversized messages before parsing, and all Unpacker instances in the TCP transport pass the same ceiling via max_buffer_size.

    Also enforce explicit max_str_len, max_bin_len, max_array_len, and max_map_len limits on every msgpack decode path. Capping the raw message size alone does not cap the memory used by the decoded Python structure: a message that is almost entirely framing (e.g. an array of millions of tiny elements) can still stay under the 100 MiB wire-size limit while decoding into a Python object graph many times larger, due to per-object interpreter overhead. These limits (50 MiB per string/binary value, 1,000,000 elements per array/map) close that gap and are well above any legitimate Salt payload shape -- file transfers are already chunked to file_buffer_size (1 MiB by default) well below these limits, so this does not affect normal file transfers or other existing workflows. #69521

  • Validate the token parameter in runners.auth.del_token() against a hex-only pattern before constructing the file path. A value such as ../../etc/passwd would escape the token directory and allow an authenticated runner caller to delete arbitrary files. #69522

  • Refuse to proceed in ssh.set_auth_key() when the resolved authorized_keys path is a symlink. A local user could pre-stage ~/.ssh/authorized_keys as a dangling symlink to an arbitrary path; when root ran set_auth_key for that user, the minion would create the target through the link and transfer ownership to the unprivileged user via os.chown, enabling deterministic local privilege escalation. #69523

  • Reject unauthenticated control-plane events on the Windows TCP IPC event bus. Any local process could connect to the minion's loopback pull socket (127.0.0.1:4511) and inject manage_schedule events to add and execute jobs as the minion service account (typically LocalSystem). A per-startup write token is now generated and embedded in all internally-fired events; handle_event() drops manage_schedule, manage_beacons, and module_refresh events that arrive without the correct token. #69524

  • Fixed arbitrary code execution vulnerability in __context__ pickling during parallel state execution. Malicious objects with __reduce__ or __getstate__ methods could execute code when pickled. Added validation to ensure only safe builtin types are pickled. (CVE-2026-59384) #70333