Jenkins Pipeline Utility Steps Plugin provides the untar
and unzip
Pipeline steps to extract archives into job workspaces.
Pipeline Utility Steps Plugin 2.15.2 and earlier does not validate or limit file paths of files contained within these archives.
This allows attackers able to provide crafted archives as parameters to create or replace arbitrary files on the agent file system with attacker-specified content.
Pipeline Utility Steps Plugin 2.15.3 rejects extraction of files in tar
and zip
archives that would be placed outside the expected destination directory.
{ "nvd_published_at": "2023-05-16T16:15:10Z", "cwe_ids": [ "CWE-787" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2023-05-17T02:59:30Z" }