Intel

AIKIDO-2026-327281

adm-zip is vulnerable to Privilege Escalation

Privilege EscalationGHSA-679w-jf3m-wh39 Published Today

71

High Risk

This Affects:

JSadm-zip
0.5.10 - 0.6.0
Fixed in 0.6.1
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

adm-zip is vulnerable to Privilege Escalation in versions 0.5.10 - 0.6.0.

How to fix this

Upgrade the adm-zip library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform