Skip to content

Commit a67a800

Browse files
KSchopmeyerkschopmeyerandy-maier
authored
Fix issues from Nov 2022 security issue changes (#1229)
* Security issues from Nov 2022 security issue changes wheel - Set issue 51499 ignore in Makefile. Cannot set min version to 0.38.0 since that release yanked because of circular reference issues safety - set issue 51499 ignore in Makefile. Set in version to 1.9.0 for pythyon == '3.5' and 2.2.0 for python >= '3.6'. Safety ver 2.2.0 also requires dparse >= 0.6.2. Update to click reqired also becacuse safety version 2.2.0 requires click >=8.0.2 py - No release to fix issue 51457. Fix is ver > 1.11.0. Marked ignore +============================+===========+==========================+==========+ | package | installed | affected | ID | +============================+===========+==========================+==========+ | wheel | 0.30.0 | <0.38.0 | 51499 | +==============================================================================+ | Wheel 0.38.0 fixes a potential DoS attack via the 'WHEEL_INFO_RE' regular | | expression. | +==============================================================================+ | wheel | 0.32.0 | <0.38.0 | 51499 | +==============================================================================+ | Wheel 0.38.0 fixes a potential DoS attack via the 'WHEEL_INFO_RE' regular | | expression. | +==============================================================================+ | wheel | 0.33.5 | <0.38.0 | 51499 | +==============================================================================+ | Wheel 0.38.0 fixes a potential DoS attack via the 'WHEEL_INFO_RE' regular | | expression. | +==============================================================================+ | safety | 1.8.7 | <2.2.0 | 51358 | +==============================================================================+ | Safety 2.2.0 updates its dependency 'dparse' to include a security fix. | +==============================================================================+ | safety | 1.9.0 | <2.2.0 | 51358 | +==============================================================================+ | Safety 2.2.0 updates its dependency 'dparse' to include a security fix. | +==============================================================================+ | py | 1.10.0 | <=1.11.0 | 51457 | +==============================================================================+ | Py throughout 1.11.0 allows remote attackers to conduct a ReDoS (Regular | | expression Denial of Service) attack via a Subversion repository with | | crafted info data, because the InfoSvnCommand argument is mishandled. | | pytest-dev/py#287 | +============================================================================== * WIP * Adjusted packaging min version to Python versions Signed-off-by: Andreas Maier <[email protected]> * Removed duplicate Click from dev-requirements.txt Signed-off-by: Andreas Maier <[email protected]> * Increased minimum pip version to 21.3 to solve duration issue Signed-off-by: Andreas Maier <[email protected]> Signed-off-by: Andreas Maier <[email protected]> Co-authored-by: kschopmeyer <[email protected]> Co-authored-by: Andreas Maier <[email protected]>
1 parent 1c51b68 commit a67a800

File tree

5 files changed

+45
-28
lines changed

5 files changed

+45
-28
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ test_log_file := test_$(python_version_fn).log
302302
# - 50571 dparse (user safety) 0.4.1 -> 0.5.2, 0.5.1 -> 0.5.2. ReDos issue
303303
# - 50885 Pygments 2.7.4 cannot be used on Python 2.7
304304
# - 50886 Pygments 2.7.4 cannot be used on Python 2.7
305-
305+
# - 51499 Wheel CVE fix in version 0.38.0 yanked after release
306+
# - 51358 Safety, before 2.2.0 uses dparse with issue, python 2.7 max is 1.9.0
307+
# - 51457 py - Latest release has this safety issue i.e. <=1.11.0
306308
safety_ignore_opts := \
307309
-i 38100 \
308310
-i 38834 \
@@ -346,6 +348,9 @@ safety_ignore_opts := \
346348
-i 50571 \
347349
-i 50885 \
348350
-i 50886 \
351+
-i 51499 \
352+
-i 51358 \
353+
-i 51457 \
349354

350355
ifdef TESTCASES
351356
pytest_opts := $(TESTOPTS) -k $(TESTCASES)

dev-requirements.txt

+5-7
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,14 @@ coveralls>=2.1.2,<3.0.0; python_version >= '3.5'
4545
# Safety CI by pyup.io
4646
# safety 1.9.0 removed support for Python 2.7 (and now also enforces that)
4747
safety>=1.8.7,<1.9.0; python_version == '2.7'
48-
safety>=1.9.0; python_version >= '3.5'
48+
safety>=1.9.0,<2.0.0; python_version == '3.5'
49+
safety>=2.2.0; python_version >= '3.6'
4950
# dparse 0.5.0 has an infinite recursion issue on Python 2.7,
5051
# see https://github.com/pyupio/dparse/issues/46
5152
dparse>=0.4.1,<0.5.0; python_version == '2.7'
52-
dparse>=0.5.2; python_version >= '3.5'
53-
# Safety requires Click>6.0 and the upgrade strategy 'eager' causes Click to be
54-
# upgraded to 8.0.0, unless we repeat the Click requirements from
55-
# requirements.txt. Keep them in sync.
56-
Click>=7.1.1,<8.0; python_version <= '3.5'
57-
Click>=8.0.1; python_version >= '3.6'
53+
dparse>=0.5.2; python_version == '3.5'
54+
# ver 0.6.2 min requirement by safety 2.2.0
55+
dparse>=0.6.2; python_version >= '3.6'
5856

5957
# PyYAML is also pulled in by dparse and python-coveralls
6058
# PyYAML 5.3 fixed narrow build error on Python 2.7

docs/changes.rst

+13-10
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ Released: not yet
4949
* Increased minimum version of Click to 8.0.1 on Python >= 3.6 to prepare for
5050
new features. Adjusted testcases accordingly.
5151

52-
* Extended class and instance enumerate/get/associators/references to allow
53-
getting the objects from multiple namespaces with a single request. This
54-
extends the command option --namespace to allow multiple namespaces for
55-
these commands using either comma-separated format
56-
(ex. --namespace root/cimv2,root/cimv3) or multiple definitions of the option
57-
(ex. --namespace root/cimv2 --namespace root/cimv3) The display of results
58-
have been extended to include the namespace name for the objects in all
59-
of the output formats if multiple namespaces are used. As before, the
60-
namespaces are not shown if only a single or the default namespace is
61-
requested.(see issues #1058 and #1059)
52+
* Extended class/instance enumerate/get/associators/references and qualifier
53+
enumerate to allow getting the objects from multiple namespaces with a single
54+
request. This extends the command option --namespace to allow multiple
55+
namespaces for these commands using either comma-separated format (ex.
56+
--namespace root/cimv2,root/cimv3) or multiple definitions of the option (ex.
57+
--namespace root/cimv2 --namespace root/cimv3) The display of results have
58+
been extended to include the namespace name for the objects in all of the
59+
output formats if multiple namespaces are used. As before, the namespaces are
60+
not shown if only a single or the default namespace is requested.(see issues
61+
#1058 and #1059)
6262

6363
* Add a new option (--object-order) to class and instance
6464
enumerate/get/associators/references and qualifier enumerate/get to reorder
@@ -113,6 +113,9 @@ Released: not yet
113113
* Clean up issues in the docs where items in bullet lists do not show the
114114
bullets Changes rtd-requirements to avoid suspect versions. (see issue #1218)
115115

116+
* Update to requirements files for new Nov 2022 security issues with wheel,
117+
safety, and py. (see PR # 1627)
118+
116119
**Known issues:**
117120

118121
* See `list of open issues`_.

minimum-constraints.txt

+15-7
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,12 @@
8484
# * pip 20.2 introduced a new resolver whose backtracking had issues that were resolved only in 21.2.2.
8585
# * pip>=21.0 is needed for the cryptography package on Windows on GitHub Actions.
8686
pip==10.0.1; python_version <= '3.5'
87-
pip==21.2.2; python_version >= '3.6'
87+
pip==21.3; python_version >= '3.6'
8888
setuptools==39.0.1; python_version <= '3.6'
8989
setuptools==40.6.0; python_version == '3.7'
9090
setuptools==41.5.0; python_version >= '3.8' and python_version <= '3.9'
9191
setuptools==49.0.0; python_version >= '3.10'
92+
# Minimum should be set to 0.38.0 when that version released. Issue #1228
9293
wheel==0.30.0; python_version <= '3.6'
9394
wheel==0.32.0; python_version == '3.7'
9495
wheel==0.33.5; python_version >= '3.8'
@@ -107,7 +108,8 @@ nocasedict==1.0.1
107108
six==1.14.0; python_version <= '3.9'
108109
six==1.16.0; python_version >= '3.10'
109110
Click==7.1.1; python_version <= '3.5'
110-
Click==8.0.1; python_version >= '3.6'
111+
# Safety package requires click 8.0.2 minimum
112+
Click==8.0.2; python_version >= '3.6'
111113
click-spinner==0.1.8
112114
click-repl==0.1.6; python_version <= '3.5'
113115
click-repl==0.2; python_version >= '3.6'
@@ -171,10 +173,13 @@ coveralls==2.1.2; python_version >= '3.5'
171173

172174
# Safety CI by pyup.io
173175
safety==1.8.7; python_version == '2.7'
174-
safety==1.9.0; python_version >= '3.5'
176+
# version 2. not compatible with python 3.5
177+
safety==1.9.0; python_version == '3.5'
178+
safety==2.2.0; python_version >= '3.6'
175179
dparse==0.4.1; python_version == '2.7'
176-
dparse==0.5.2; python_version >= '3.5'
177-
180+
dparse==0.5.2; python_version == '3.5'
181+
# version 0.6.2 required by safety 2.2.0
182+
dparse==0.6.2; python_version >= '3.6'
178183
# Tox
179184
tox==2.5.0
180185
# tox 3.17 requires six>=1.14.0
@@ -247,6 +252,10 @@ pkginfo==1.4.2
247252
# Address issue that pyparsing 3.0.0b2 gets installed on py27 (used by packaging)
248253
pyparsing==2.3.1
249254

255+
packaging==17.0; python_version == '2.7'
256+
packaging==17.0; python_version == '3.5'
257+
packaging==21.0; python_version >= '3.6'
258+
250259
# Indirect dependencies for develop (not in dev-requirements.txt)
251260

252261
bleach==3.3.0; python_version == '2.7'
@@ -283,14 +292,13 @@ linecache2==1.0.0
283292
MarkupSafe==1.1.0
284293
mistune==0.8.1
285294
more-itertools==5.0.0
286-
packaging==17.0
287295
pandocfilters==1.4.1
288296
pathlib2==2.2.1
289297
pbr==1.8.0
290298
pexpect==4.2.1
291299
pickleshare==0.7.4
292300
ptyprocess==0.5.1
293-
py==1.10.0
301+
py==1.11.0
294302
pytz==2016.10; python_version <= '3.9'
295303
pytz==2019.1; python_version >= '3.10'
296304
pyzmq==16.0.4

requirements.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ six>=1.14.0; python_version <= '3.9'
2222
six>=1.16.0; python_version >= '3.10'
2323
# Click 7.0 has issue #1231 on Windows which we circumvent in the test code
2424
# Click 7.1 has a bug with output capturing
25-
# Click 8.0 is incompatible with pywbemcli. See issues #816 (python 2.7 not
25+
# Click 8.0 is incompatible with python <3.0. See issues #816 (python 2.7 not
2626
# supported) and #819 (click-repl incompatible)
2727
# The Click requirements were copied into dev-requirements.txt in order not to
2828
# have the safety package upgrade it. Keep them in sync.
2929
Click>=7.1.1,<8.0; python_version <= '3.5'
30-
Click>=8.0.1; python_version >= '3.6'
30+
# Safety package requires click 8.0.2 minimum
31+
Click>=8.0.2; python_version >= '3.6'
3132
click-spinner>=0.1.8
3233
# click-repl 0.2 is needed for compatibility with Click 8.0.
3334
click-repl>=0.1.6; python_version <= '3.5'
@@ -57,7 +58,9 @@ PyYAML>=5.3.1; python_version == '2.7'
5758
PyYAML>=5.3.1; python_version >= '3.5'
5859

5960
yamlloader>=0.5.5
60-
packaging>=17.0
61+
packaging>=17.0; python_version == '2.7'
62+
packaging>=17.0; python_version == '3.5'
63+
packaging>=21.0; python_version >= '3.6'
6164

6265
# See issue #822 about issue in mock 4.0.3.
6366
mock>=3.0.0,<4.0.0; python_version < '3.6'

0 commit comments

Comments
 (0)