Bug 2370013 (CVE-2024-12718) - CVE-2024-12718 cpython: python: Bypass extraction filter to modify file metadata outside extraction directory
Summary: CVE-2024-12718 cpython: python: Bypass extraction filter to modify file metad...
Keywords:
Status: NEW
Alias: CVE-2024-12718
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2370022 2375574 2375575 2375576
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-03 14:01 UTC by OSIDB Bzimport
Modified: 2025-10-29 02:39 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2025:10198 0 None None None 2025-07-02 08:38:49 UTC
Red Hat Product Errata RHBA-2025:10245 0 None None None 2025-07-02 14:31:43 UTC
Red Hat Product Errata RHBA-2025:10247 0 None None None 2025-07-02 14:53:39 UTC
Red Hat Product Errata RHBA-2025:10249 0 None None None 2025-07-02 15:04:01 UTC
Red Hat Product Errata RHBA-2025:10261 0 None None None 2025-07-02 17:04:53 UTC
Red Hat Product Errata RHBA-2025:10262 0 None None None 2025-07-02 17:15:26 UTC
Red Hat Product Errata RHBA-2025:10263 0 None None None 2025-07-02 17:33:26 UTC
Red Hat Product Errata RHBA-2025:10338 0 None None None 2025-07-07 01:00:35 UTC
Red Hat Product Errata RHBA-2025:10339 0 None None None 2025-07-07 01:38:41 UTC
Red Hat Product Errata RHBA-2025:10340 0 None None None 2025-07-07 02:27:52 UTC
Red Hat Product Errata RHBA-2025:10365 0 None None None 2025-07-07 01:29:49 UTC
Red Hat Product Errata RHBA-2025:10366 0 None None None 2025-07-07 02:18:20 UTC
Red Hat Product Errata RHBA-2025:10367 0 None None None 2025-07-07 02:40:10 UTC
Red Hat Product Errata RHBA-2025:10417 0 None None None 2025-07-07 13:02:18 UTC
Red Hat Product Errata RHBA-2025:10420 0 None None None 2025-07-07 13:04:10 UTC
Red Hat Product Errata RHBA-2025:10421 0 None None None 2025-07-07 13:09:26 UTC
Red Hat Product Errata RHBA-2025:10422 0 None None None 2025-07-07 13:11:21 UTC
Red Hat Product Errata RHBA-2025:10423 0 None None None 2025-07-07 13:05:05 UTC
Red Hat Product Errata RHBA-2025:10424 0 None None None 2025-07-07 13:07:37 UTC
Red Hat Product Errata RHBA-2025:10425 0 None None None 2025-07-07 13:12:35 UTC
Red Hat Product Errata RHBA-2025:10426 0 None None None 2025-07-07 13:11:01 UTC
Red Hat Product Errata RHBA-2025:10427 0 None None None 2025-07-07 13:14:33 UTC
Red Hat Product Errata RHBA-2025:10598 0 None None None 2025-07-08 10:53:25 UTC
Red Hat Product Errata RHBA-2025:10841 0 None None None 2025-07-14 07:01:00 UTC
Red Hat Product Errata RHBA-2025:10843 0 None None None 2025-07-14 07:00:55 UTC
Red Hat Product Errata RHBA-2025:11346 0 None None None 2025-07-16 18:33:07 UTC
Red Hat Product Errata RHBA-2025:11347 0 None None None 2025-07-16 18:38:14 UTC
Red Hat Product Errata RHBA-2025:11895 0 None None None 2025-07-28 11:10:48 UTC
Red Hat Product Errata RHBA-2025:12137 0 None None None 2025-07-29 16:26:55 UTC
Red Hat Product Errata RHSA-2025:10026 0 None None None 2025-07-01 08:39:05 UTC
Red Hat Product Errata RHSA-2025:10028 0 None None None 2025-07-01 08:46:38 UTC
Red Hat Product Errata RHSA-2025:10031 0 None None None 2025-07-01 09:09:55 UTC
Red Hat Product Errata RHSA-2025:10128 0 None None None 2025-07-01 19:57:23 UTC
Red Hat Product Errata RHSA-2025:10136 0 None None None 2025-07-01 20:48:33 UTC
Red Hat Product Errata RHSA-2025:10140 0 None None None 2025-07-01 21:43:40 UTC
Red Hat Product Errata RHSA-2025:10148 0 None None None 2025-07-01 21:55:56 UTC
Red Hat Product Errata RHSA-2025:10189 0 None None None 2025-07-02 06:18:13 UTC
Red Hat Product Errata RHSA-2025:10399 0 None None None 2025-07-07 11:15:32 UTC
Red Hat Product Errata RHSA-2025:10484 0 None None None 2025-07-07 16:11:24 UTC
Red Hat Product Errata RHSA-2025:10602 0 None None None 2025-07-08 11:10:50 UTC
Red Hat Product Errata RHSA-2025:11386 0 None None None 2025-07-17 15:26:52 UTC
Red Hat Product Errata RHSA-2025:9918 0 None None None 2025-06-30 13:38:13 UTC

Description OSIDB Bzimport 2025-06-03 14:01:20 UTC
Allows modifying some file metadata (e.g. last modified) with filter="data" or file permissions (chmod) with filter="tar" of files outside the extraction directory.
You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "data" or "tar". See the tarfile  extraction filters documentation https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter  for more information. Only Python versions 3.12 or later are affected by these vulnerabilities, earlier versions don't include the extraction filter feature.

Note that for Python 3.14 or later the default value of filter= changed from "no filtering" to `"data", so if you are relying on this new default behavior then your usage is also affected.

Note that none of these vulnerabilities significantly affect the installation of source distributions which are tar archives as source distributions already allow arbitrary code execution during the build process. However when evaluating source distributions it's important to avoid installing source distributions with suspicious links.

Comment 3 errata-xmlrpc 2025-06-30 13:38:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:9918 https://access.redhat.com/errata/RHSA-2025:9918

Comment 4 errata-xmlrpc 2025-07-01 08:39:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:10026 https://access.redhat.com/errata/RHSA-2025:10026

Comment 5 errata-xmlrpc 2025-07-01 08:46:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:10028 https://access.redhat.com/errata/RHSA-2025:10028

Comment 6 errata-xmlrpc 2025-07-01 09:09:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:10031 https://access.redhat.com/errata/RHSA-2025:10031

Comment 7 errata-xmlrpc 2025-07-01 19:57:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:10128 https://access.redhat.com/errata/RHSA-2025:10128

Comment 8 errata-xmlrpc 2025-07-01 20:48:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:10136 https://access.redhat.com/errata/RHSA-2025:10136

Comment 9 errata-xmlrpc 2025-07-01 21:43:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:10140 https://access.redhat.com/errata/RHSA-2025:10140

Comment 10 errata-xmlrpc 2025-07-01 21:55:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:10148 https://access.redhat.com/errata/RHSA-2025:10148

Comment 12 errata-xmlrpc 2025-07-02 06:18:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:10189 https://access.redhat.com/errata/RHSA-2025:10189

Comment 14 errata-xmlrpc 2025-07-07 11:15:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:10399 https://access.redhat.com/errata/RHSA-2025:10399

Comment 15 errata-xmlrpc 2025-07-07 16:11:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service
  Red Hat Enterprise Linux 8.6 Extended Update Support EXTENSION

Via RHSA-2025:10484 https://access.redhat.com/errata/RHSA-2025:10484

Comment 16 errata-xmlrpc 2025-07-08 11:10:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service
  Red Hat Enterprise Linux 8.8 Extended Update Support EXTENSION

Via RHSA-2025:10602 https://access.redhat.com/errata/RHSA-2025:10602

Comment 22 errata-xmlrpc 2025-07-17 15:26:51 UTC
This issue has been addressed in the following products:

  RHEL-8 based Middleware Containers

Via RHSA-2025:11386 https://access.redhat.com/errata/RHSA-2025:11386


Note You need to log in before you can comment on or make changes to this bug.