Skip to content

Critical CVE in distroless python3 #1003

Description

@stjasink

The version of python included in the distroless python3 image is 3.9.2 which is quite old now and contains a critical CVE. Reported by a trivy scan:

2022-03-30T13:58:56.875+0100	INFO	Detected OS: debian
2022-03-30T13:58:56.875+0100	INFO	Detecting Debian vulnerabilities...
2022-03-30T13:58:56.884+0100	INFO	Number of language-specific files: 0

gcr.io/distroless/python3-debian11:latest (debian 11.3)
=======================================================
Total: 1 (CRITICAL: 1)

+----------------------+------------------+----------+-------------------+---------------+---------------------------------------+
|       LIBRARY        | VULNERABILITY ID | SEVERITY | INSTALLED VERSION | FIXED VERSION |                 TITLE                 |
+----------------------+------------------+----------+-------------------+---------------+---------------------------------------+
| libpython3.9-minimal | CVE-2021-29921   | CRITICAL | 3.9.2-1           |               | python-ipaddress: Improper input      |
|                      |                  |          |                   |               | validation of octal strings           |
|                      |                  |          |                   |               | -->avd.aquasec.com/nvd/cve-2021-29921 |
+----------------------+------------------+----------+-------------------+---------------+---------------------------------------+

This is fixed in Python 3.9.5 and later: https://nvd.nist.gov/vuln/detail/CVE-2021-29921

Could the version of Python in the distroless-python3 image be updated please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions