Skip to content

python:3.11-slim-bookworm CVE-2023-5752 #889

Closed

Description

@trottomv
Library Vulnerability Severity Status Installed Version Fixed Version Title
pip (METADATA) CVE-2023-5752 MEDIUM fixed 23.2.1 23.3 pip: Mercurial configuration injectable in repo revision when installing via pip Link

Activity

  1. changed the title [-]CVE-2023-5752[/-] [+]python:3.11-slim-bookworm CVE-2023-5752[/+] on Dec 2, 2023
  2. LaurentGoderre commented on Dec 4, 2023

    @LaurentGoderre
    Member
  3. LaurentGoderre commented on Dec 4, 2023

    @LaurentGoderre
    Member
  4. trottomv commented on Dec 5, 2023

    @trottomv
    Author

    Hi @LaurentGoderre

    Is it not necessary to modify the pip version here as well?

    ENV PYTHON_PIP_VERSION 23.2.1

    (and in the "not slim" bookworm also)

    ENV PYTHON_PIP_VERSION 23.2.1

  5. LaurentGoderre commented on Dec 5, 2023

    @LaurentGoderre
    Member

    @trottomv that version is derived from the location I pointed to in the update script.

  6. rv0lt commented on Jan 12, 2024

    @rv0lt

    As far as I am aware, that issue is only going to be fixed in python 3.13 (currently in alpha). The maintainers decided against back porting to previous versions

    python/cpython#112719

  7. edmorley commented on Aug 24, 2024

    @edmorley
    Contributor

    As filed, this issue is now resolved since the Python 3.11 images now ship with pip 24.0:

    python/versions.json

    Lines 24 to 32 in cc2cf19

    "3.11": {
    "get-pip": {
    "sha256": "6fb7b781206356f45ad79efbb19322caa6c2a5ad39092d0d44d0fec94117e118",
    "url": "https://github.com/pypa/get-pip/raw/66d8a0f637083e2c3ddffc0cb1e65ce126afb856/public/get-pip.py",
    "version": "https://github.com/pypa/get-pip/commit/66d8a0f637083e2c3ddffc0cb1e65ce126afb856"
    },
    "pip": {
    "version": "24.0"
    },

    $ docker run -q --rm python:3.11-slim-bookworm pip --version
    pip 24.0 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)
    

    Images for older Python versions do still include older pip, but that's by design (since these Docker images intentionally ship with the same pip version that is bundled with the ensurepip module for that Python version).

    As such, this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions