IzPack
IzPack: Path Traversal in UnpackerBase allows writing files outside the installation directory via malicious pack entries
IzPack is a widely used tool for packaging applications on the Java platform as cross-platform installers. In 5.2.6 and earlier, UnpackerBase.unpack() in izpack-installer/src/main/java/com/izforge/izpack/installer/unpacker/UnpackerBase.java obtains an attacker-controlled PackFile targetPath, passes it through IoHelper.translatePath(), which only converts separators, and constructs a File without normalizing parent-directory segments or enforcing destination containment. A malicious installer pack entry containing ../ sequences can therefore write outside the intended installation directory to startup folders, executable search paths, or other locations accessible with the victim's privileges when the victim runs the installer.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 5.2.6
- < 5.2.7
Fixed in 5.2.7
from GitHub Security Advisory GHSA-f63g-88cj-hjf9
Mitigation
Upgrade org.codehaus.izpack:izpack-installer to 5.2.7 or later.
References
- Vendor advisory github.com/izpack/izpack/security/advisories/G…
- Patch github.com/izpack/izpack/pull/1193
- Patch github.com/izpack/izpack/commit/4233ba38d0f182…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.