Apache Ivy does not verify target path when extracting the archive
Critical severity
GitHub Reviewed
Published
Nov 7, 2022
to the GitHub Advisory Database
•
Updated Jul 5, 2023
Description
Published by the National Vulnerability Database
Nov 7, 2022
Published to the GitHub Advisory Database
Nov 7, 2022
Reviewed
Nov 7, 2022
Last updated
Jul 5, 2023
With Apache Ivy 2.4.0 an optional packaging attribute has been introduced that allows artifacts to be unpacked on the fly if they used
pack200 or zip packaging.
For artifacts using the "zip", "jar" or "war" packaging Ivy prior to version 2.5.1 doesn't verify the target path when extracting the archive. An archive containing absolute paths or paths that try to traverse "upwards" using ".." sequences can then write files to any location on
the local fie system that the user executing Ivy has write access to.
Ivy users of version 2.4.0 to 2.5.0 should upgrade to Ivy version 2.5.1.
References