Bug 2397852 (CVE-2025-8869)

Summary: CVE-2025-8869 pip: pip missing checks on symbolic link extraction
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abarbaro, adudiak, alinfoot, alizardo, anjoseph, anpicker, anthomas, aprice, bbrownin, bdettelb, bkabrda, bparees, brasmith, carogers, caswilli, cochase, crizzo, dfreiber, doconnor, dranck, drow, dtrifiro, eglynn, ehelms, erezende, ggainey, gtanzill, haoli, hasun, hkataria, jajackso, jburrell, jbuscemi, jcammara, jchui, jdobes, jfula, jhe, jjoyce, jkoehler, jmitchel, jneedle, jowilson, jprabhak, jsamir, juwatts, jwong, kaycoth, kegrant, kgaikwad, koliveir, kshier, ktsao, lball, ljawale, lphiri, luizcosta, mabashia, mburns, mgarciac, mhulan, mrunge, nboldt, ngough, nmoumoul, nweather, nyancey, oezr, omaciel, ometelka, orabin, osousa, pakotvan, pbohmill, pbraun, pcreech, psegedy, psrna, ptisnovs, rbobbitt, rbryant, rchan, sdawley, shvarugh, simaishi, smallamp, smcdonal, stcannon, sthirugn, syedriko, teagle, tfister, thavo, tmalecek, ttakamiy, veshanka, vimartin, vkumar, weaton, wtam, xdharmai, xiaoxwan, yguenane, zzhou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
When extracting a tar archive pip may not check symbolic links point into the extraction directory if the tarfile module doesn't implement PEP 706. Note that upgrading pip to a "fixed" version for this vulnerability doesn't fix all known vulnerabilities that are remediated by using a Python version that implements PEP 706.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2397929, 2397927, 2397928, 2397930    
Bug Blocks:    

Description OSIDB Bzimport 2025-09-24 16:02:23 UTC
When extracting a tar archive pip may not check symbolic links point into the extraction directory if the tarfile module doesn't implement PEP 706.
Note that upgrading pip to a "fixed" version for this vulnerability doesn't fix all known vulnerabilities that are remediated by using a Python version that implements PEP 706.

Note that this is a vulnerability in pip's fallback implementation of tar extraction for Python versions that don't implement PEP 706
and therefore are not secure to all vulnerabilities in the Python 'tarfile' module. If you're using a Python version that implements PEP 706
then pip doesn't use the "vulnerable" fallback code.

Mitigations include upgrading to a version of pip that includes the fix, upgrading to a Python version that implements PEP 706 (Python >=3.9.17, >=3.10.12, >=3.11.4, or >=3.12),
applying the linked patch, or inspecting source distributions (sdists) before installation as is already a best-practice.