-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Master running 2019.2.4 or 3000.2 unable to synchronize files using saltutil.sync_all to 2017.7.1 minion due to CVE fix #57027
Labels
Bug
broken, incorrect, or confusing behavior
Core
relates to code central or existential to Salt
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
v2019.2.5
unsupported version
v3000.3
vulnerable version
Milestone
Comments
Similar issue here, though a different method: #57016 |
twangboy
added
Core
relates to code central or existential to Salt
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
labels
Apr 30, 2020
Tried this, and only # salt-run manage.versions
Master:
3000.2
Minion requires update:
----------
ubuntu16-1.local:
2016.11.10
ubuntu16-2.local:
2017.7.0
ubuntu16-3.local:
2017.7.1
ubuntu16-4.local:
2017.7.2
# salt '*' saltutil.sync_all
ubuntu16-1.local:
----------
beacons:
engines:
grains:
log_handlers:
modules:
output:
proxymodules:
renderers:
returners:
sdb:
states:
utils:
ubuntu16-2.local:
The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1466, in _thread_return
return_data = executor.execute()
File "/usr/lib/python2.7/dist-packages/salt/executors/direct_call.py", line 28, in execute
return self.func(*self.args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 850, in sync_all
ret['clouds'] = sync_clouds(saltenv, False, extmod_whitelist, extmod_blacklist)
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 652, in sync_clouds
ret = _sync('clouds', saltenv, extmod_whitelist, extmod_blacklist)
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 99, in _sync
saltenv = _get_top_file_envs()
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 81, in _get_top_file_envs
top = st_.get_top()
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 3089, in get_top
tops = self.get_tops()
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2787, in get_tops
saltenv
File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 189, in cache_file
return self.get_url(path, '', True, saltenv, cachedir=cachedir)
File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 495, in get_url
result = self.get_file(url, dest, makedirs, saltenv, cachedir=cachedir)
File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 1044, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
ValueError: need more than 0 values to unpack
ubuntu16-3.local:
The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1468, in _thread_return
return_data = executor.execute()
File "/usr/lib/python2.7/dist-packages/salt/executors/direct_call.py", line 28, in execute
return self.func(*self.args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 850, in sync_all
ret['clouds'] = sync_clouds(saltenv, False, extmod_whitelist, extmod_blacklist)
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 652, in sync_clouds
ret = _sync('clouds', saltenv, extmod_whitelist, extmod_blacklist)
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 99, in _sync
saltenv = _get_top_file_envs()
File "/usr/lib/python2.7/dist-packages/salt/modules/saltutil.py", line 81, in _get_top_file_envs
top = st_.get_top()
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 3089, in get_top
tops = self.get_tops()
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2787, in get_tops
saltenv
File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 189, in cache_file
return self.get_url(path, '', True, saltenv, cachedir=cachedir)
File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 495, in get_url
result = self.get_file(url, dest, makedirs, saltenv, cachedir=cachedir)
File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 1044, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
ValueError: need more than 0 values to unpack
ubuntu16-4.local:
----------
beacons:
clouds:
engines:
grains:
log_handlers:
modules:
output:
proxymodules:
renderers:
returners:
sdb:
states:
utils: |
dwoz
added a commit
to dwoz/salt
that referenced
this issue
May 5, 2020
- Fix saltstack#57016 - Fix saltstack#57027 - Add tests for exposed methods on AESFuncs and ClearFuncs - Add response validation for patched ClearFuncs.wheel - Add release notes template for 2019.2.5
dwoz
added a commit
to dwoz/salt
that referenced
this issue
May 6, 2020
- Fix saltstack#57016 - Fix saltstack#57027 - Add tests for exposed methods on AESFuncs and ClearFuncs - Add response validation for patched ClearFuncs.wheel - Add release notes template for 2019.2.5
Please incldue the CVE ID(s) being referenced. |
sagetherage
added
v2019.2.5
unsupported version
v3000.3
vulnerable version
and removed
ZRelease-Sodium
retired label
labels
May 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
broken, incorrect, or confusing behavior
Core
relates to code central or existential to Salt
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
v2019.2.5
unsupported version
v3000.3
vulnerable version
Description
Master running 2019.2.4 or 3000.2 unable to synchronize files using saltutil.sync_all to 2017.7.1 minion due to CVE fix.
Setup
Master version (from Centos 7 py2 package):
Master config
Minion version (from Centos 7 public repos):
Minion config:
Steps to Reproduce the behavior
Setup a minion with 2017.7.1 communicating with a master running 2019.2.4 or 3000.2 with the recent CVE vulnerability fixes. Accept the key on the master and then issue a "saltutil.sync_all":
Master logs inidicated the issue:
Expected behavior
The file synchronization mechanism should be able to work for masters communicating with older minions.
Screenshots
n/a
Versions Report
Additional context
After discussing on Slack Dwoz suggested the following patch which was able to resolve this for us when patched locally:
The text was updated successfully, but these errors were encountered: