mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.unearth: fix CVE-2026-73030
Apply upstream path normalization and symlink target validation to prevent tar archives from writing outside the extraction directory.6c78164e7bAssisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol) (cherry picked from commita34877a5d6)
This commit is contained in:
@@ -32,6 +32,12 @@ buildPythonPackage rec {
|
||||
hash = "sha256-t/Ubv9qC1Fvh4JsnfVgOZO/O7ZpCGHugBUt9qAjnH8c=";
|
||||
excludes = [ "pdm.lock" ];
|
||||
})
|
||||
# Remove when updating to the first release containing this fix.
|
||||
(fetchpatch {
|
||||
name = "CVE-2026-73030.patch";
|
||||
url = "https://github.com/frostming/unearth/commit/6c78164e7bfa28b8b3d6f247b87e560692e3c8ba.patch";
|
||||
hash = "sha256-OEf4YnpNhZcIWaFMSXQP0SA7kRV9FqKIpnkLbUrQj+4=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [ pdm-backend ];
|
||||
|
||||
Reference in New Issue
Block a user