ADVISORIES

Vulnerability

CVE-2024-3220

There is a defect in the CPython standard library module “mimetypes” where on Windows the default list of known file locations are writable meaning other users can create invalid files to cause MemoryError to be raised on Python runtime startup or have file extensions be interpreted as the incorrect file type. This defect is caused by the default locations of Linux and macOS platforms (such as “/etc/mime.types”) also being used on Windows, where they are user-writable locations (“C:\etc\mime.types”). To work-around this issue a user can call mimetypes.init() with an empty list (“[]”) on Windows platforms to avoid using the default list of known file locations.

15 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • ALPINE-CVE-2024-3220

    There is a defect in the CPython standard library module “mimetypes” where on Windows the default list of known file locations are writable meaning other users can create invalid files to cause MemoryError to be…

    CVE-2024-3220 Alpine Updated 2 November 2026
  • AZL-84266

    CVE-2024-3220 affecting package docbook5-style-xsl 1.79.2-11

    CVE-2024-3220 Azure Linux Updated 23 November 2026
  • CGA-39v7-whgm-gr76
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-5v83-464h-3vcf
    CVE-2024-3220 Chainguard Updated 5 November 2026
  • CGA-625h-7724-3c4v
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-86gr-8vwf-6gvw
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-hj9w-gw2f-9p6p
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-hx5r-x682-9hw8
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-m25w-783f-97jw
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-p9mj-cj76-gp7v
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-prhm-5jjf-mx6j
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-q3wh-9xpc-hjfq
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-wjg3-vhgr-6mw6
    CVE-2024-3220 ChainguardWolfi Updated 5 November 2026
  • CGA-xr5h-863h-w4m6
    CVE-2024-3220 Chainguard Updated 5 November 2026
  • CNA-CVE-2024-3220

    Default mimetype known files writeable on Windows

    CVE-2024-3220 Python Updated 26 October 2026

References