Werkzeug safe_join not safe on Windows
Description
Published to the GitHub Advisory Database
Oct 25, 2024
Reviewed
Oct 25, 2024
Published by the National Vulnerability Database
Oct 25, 2024
Last updated
Oct 26, 2024
On Python < 3.11 on Windows,
os.path.isabs()
does not catch UNC paths like//server/share
. Werkzeug'ssafe_join()
relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python >= 3.11, or not using Windows, are not vulnerable.References