containerbuildsystem / atomic-reactor

Simple python library for building docker images.
BSD 3-Clause "New" or "Revised" License
133 stars 61 forks source link

Update setuptools and packaging version #2102

Closed mkosiarc closed 3 months ago

mkosiarc commented 3 months ago

The setuptools update addresses a vulnerability alert by dependabot: A vulnerability in the package_index module of pypa/setuptools versions up to 69.1.1 allows for remote code execution via its download functions. These functions, which are used to download packages from URLs provided by users or retrieved from package index servers, are susceptible to code injection. If these functions are exposed to user-controlled inputs, such as package URLs, they can execute arbitrary commands on the system. The issue is fixed in version 70.0.

The packaging update is necessary for the setuptools update (or we could freeze it to version 70.x). But if version > 71 is used, we have to update the packaging version to 22 or higher. Otherwise the build process fails with

TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero' More information in https://github.com/pypa/setuptools/issues/4483

STONEBLD-2636

Maintainers will complete the following section