(release-3008.6)=
Salt 3008.6 release notes#
Changelog#
Fixed#
Fixed
pkg.installed/pkg.installsilently skipping GPG signature verification for packages installed via thesourcesparameter on RPM-based systems (yum/dnf/dnf5 and zypper), even with the defaultskip_verify: False. Package-managergpgcheck/--nogpgcheckhandling only governs repository-based installs; installing a package by literal file path (thesourcescase) is not covered by that setting and was never independently checked.yumpkg.install()andzypperpkg.install()now verify eachsourcespackage's RPM signature directly (equivalent torpm -K -v, via the newlowpkg.verify_signature) whenskip_verifyisFalse, and refuse to install any package that is unsigned or fails verification. (CVE-2026-59325) #69905
Security#
Require
@eventsin 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_authaccount that accesses the event stream but does not have@eventsin its ACL will lose access after upgrading.If you are affected and cannot immediately update your
external_authACLs, setevents_insecure_auth: Truein 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@eventsto the affected accounts' ACLs as soon as possible rather than leavingevents_insecure_authset long-term. #69505Validate 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). #69506Fix two issues:
clean_path()calledos.path.normpathbefore resolving symlinks, allowing a symlink gadget to survive string-folding and bypass the jail boundary check; andvirtualenv.get_distribution_path()used a keyword blocklist (safe_py_code) to guard thedistributionparameter against code injection, which was trivially bypassed — replaced with an allowlist of PEP 508 distribution name characters. #69507Reject absolute paths in
minionfsfile serving, and validate full path containment.os.path.joinwould silently discard the cache-root prefix when a path component began with/, allowing requests likesalt://minionfs/minion1//etc/shadowto 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//barbecomessalt://foo/bar) before dispatching to a backend, rather than rejecting such paths outright. This closes the same class of bug forhgfs,svnfs,s3fs, andazurefs, 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. #69508Validate the
ipparameter withipaddress.ip_address()innetwork.get_route()and restrict theifaceparameter to legal interface-name characters innetwork.get_bufsize()andnetwork.mod_bufsize(). All three functions previously interpolated caller-supplied values directly into shell commands, enabling arbitrary command injection.In addition,
network.get_route()now invokescmd.runwith an argv list andpython_shell=Falseon 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. #69509Wrap
package_pathandpatharguments withshlex.quote()inrpm_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. #69510Enforce mode
0700on 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. #69511Strip leading
..components from non-root parts insalt.utils.path.join(). Without this, an attacker-controlled relative path such as../../etc/shadowjoined against a cache root would silently escape that root. #69512Replace the ad-hoc regex loop in
masterapi.minion_runner()with a call tockminions.runner_check(), which applies argument-level ACL constraints. Previously,peer_runentries were matched only by function name, so a minion grantedmy_runner.*could call any function in that runner with any arguments regardless of further ACL restrictions. #69513Validate the
bankandcachedirparameters in thecacherunner (store,fetch,list,flush). Abankvalue containing..components could traverse outside the cache root, and a caller-suppliedcachedircould redirect cache operations to an arbitrary filesystem path. Both are now rejected if they resolve outside the configured cache directory.Additionally, the
tokensbank is now always blocked: with the defaultcachedir,bank='tokens'required no traversal at all to list, read, or forge live eauth session tokens. Userunner.auth.list_tokens/runner.auth.del_tokento manage tokens instead.This release also blocks the
minions,minions_pre,minions_rejected, andminions_deniedbanks by default, which is a breaking change for anyone usingcache.fetch/cache.flushdirectly against minion data (e.g. inspecting a minion's cached grains, or purging a decommissioned minion's cache). If you rely on this, setcache_runner_allow_minions_bank: Truein the master config to restore the previous behavior. #69514Pass both positional and keyword arguments to
runner_check()andwheel_check()in the master worker. Previously onlykwargwas forwarded, sospec_checknever 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_authentries that already useargs:/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. #69515Validate the
keydirparameter inwheel.key.gen_keys()against the masterpki_dirusingclean_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. #69516Fix two issues in the CherryPy REST API
cors_tool(): theAccess-Control-Allow-Originheader reflected anyOriginverbatim alongsideAccess-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 thecors_originallowlist; and theOPTIONSpreflight 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 forrest_tornado.This is a breaking change for browser-based clients that rely on the session cookie across origins. Clients using the
X-Auth-Tokenheader (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 toX-Auth-Tokenheader authentication, or configurecors_originwith the trusted origin(s):.. code-block:: yaml
rest_cherrypy: cors_origin: - https://salt.yourcompany.comThere 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
ProxyCommandfilter inSSHClient.sanitize_kwargs()case-insensitive. The previous exact-case check could be bypassed with variants such asproxycommandorPROXYCOMMAND, allowing injection of an arbitrary SSHProxyCommand. #69518SSDP 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
discoveryenabled and nomaster_fingerconfigured will now refuse to start, raisingSaltConfigurationErrorat config-load time, before any discovery network activity begins.If you are affected and cannot immediately configure
master_finger, setdiscovery_insecure_auth: Truein the minion config to temporarily restore the previous (insecure) behavior while you address this. The recommended fix is to setmaster_fingerto the fingerprint of your master's public key (salt-key -F masteron the master) as soon as possible, rather than leavingdiscovery_insecure_authset long-term. #69519Validate queued function names before dispatch in
runners.queue.process_runner(). Any authenticated user who could callqueue.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 themodule.functionidentifier pattern.Breaking change:
queue_runner_allowlistis 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: withqueue_runner_allowlistunset (the default, an empty list),process_runner()dispatches nothing and logs an error for every queued job. To keep usingqueue.process_runner(), explicitly list every function it should be allowed to dispatch:.. code-block:: yaml
queue_runner_allowlist: - test.stdout_print - event.sendThere 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/kwargsfrom any principal permitted to callqueue.insert_runner-- the allowlist narrows which functions can be queued, it does not re-authorize the original caller against that function's own ACL. #69520Enforce 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 allUnpackerinstances in the TCP transport pass the same ceiling viamax_buffer_size.Also enforce explicit
max_str_len,max_bin_len,max_array_len, andmax_map_lenlimits 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 tofile_buffer_size(1 MiB by default) well below these limits, so this does not affect normal file transfers or other existing workflows. #69521Validate the
tokenparameter inrunners.auth.del_token()against a hex-only pattern before constructing the file path. A value such as../../etc/passwdwould escape the token directory and allow an authenticated runner caller to delete arbitrary files. #69522Refuse to proceed in
ssh.set_auth_key()when the resolvedauthorized_keyspath is a symlink. A local user could pre-stage~/.ssh/authorized_keysas a dangling symlink to an arbitrary path; when root ranset_auth_keyfor that user, the minion would create the target through the link and transfer ownership to the unprivileged user viaos.chown, enabling deterministic local privilege escalation. #69523Reject 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 injectmanage_scheduleevents to add and execute jobs as the minion service account (typicallyLocalSystem). A per-startup write token is now generated and embedded in all internally-fired events;handle_event()dropsmanage_schedule,manage_beacons, andmodule_refreshevents that arrive without the correct token. #69524Fixed 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