We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8f187 commit 920a1c3Copy full SHA for 920a1c3
1 file changed
Doc/whatsnew/3.9.rst
@@ -1670,9 +1670,10 @@ Notable changes in 3.9.23
1670
os.path
1671
-------
1672
1673
-* The *strict* parameter to :func:`os.path.realpath` accepts a new value,
1674
- :data:`os.path.ALLOW_MISSING`.
1675
- If used, errors other than :exc:`FileNotFoundError` will be re-raised;
+* The *strict* parameter was backported to :func:`os.path.realpath` to
+ allow for ``tarfile`` to use it for security vulnerability mitigation.
+ In particular, when *strict* is set to :data:`os.path.ALLOW_MISSING`,
1676
+ errors other than :exc:`FileNotFoundError` will be re-raised;
1677
the resulting path can be missing but it will be free of symlinks.
1678
(Contributed by Petr Viktorin for CVE 2025-4517.)
1679
0 commit comments