adm-zip is vulnerable to Privilege Escalation
71
High Risk
adm-zip preserves the setuid, setgid, and sticky permission bits from a zip entry's external attributes when extracting with keepOriginalPermission enabled. The fileAttr getter masks with 0xfff, so those special bits from archive metadata pass through to the filesystem. When a privileged user extracts a crafted archive, this plants a root owned setuid executable that any local user can run to gain root. The fix masks extracted permissions to the nine rwxrwxrwx bits with 0o777.
You are affected if you are using a version that falls within the vulnerable range and you extract untrusted archives with the keepOriginalPermission option enabled while running as a privileged user.
adm-zip is vulnerable to Privilege Escalation in versions 0.5.10 - 0.6.0.
Upgrade the adm-zip library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.