The Patching Friars' AlmanacA calendar of CVE saints

June 5

Zip SlipHoly card for zip-slip, generated with AI (Claude, Anthropic) for the Lunario dei Frati Patchatori.CC BY-NC-SA 4.0 ../ ../ Zip Slip PER PUNCTA AD ROOT
🤖 Image and text generated with AI

⬇ Download holy card: ·

Embed on your site

Saint Zip Slip, Who Slipped Out of the Folder

Patron of compressed archives, paths with too many dots, and developers who extract without looking.

Life

On 5 June 2018 Snyk revealed that thousands of projects, Java ones above all, extracted ZIP, TAR and similar archives while blindly trusting the file names inside. An entry like ../../etc/something slipped out of the destination folder and overwrote whatever it liked, all the way to code execution. Apache Storm was among the many, and got the CVE.

Prayer

O Saint Zip Slip, who escapes every fence with two dots and a slash, let our extractors normalise their paths. Amen.

How to celebrate

Celebrated by checking that every extracted file stays inside the intended folder, and distrusting archives from strangers.

Dot, dot, slash: the archive makes a dash.

Technical record

Disclosed on
June 5 2018
CVE
CVE-2018-8008
Product
Apache Software Foundation · Apache Storm

Apache Storm version 1.0.6 and earlier, 1.2.1 and earlier, and version 1.1.2 and earlier expose an arbitrary file write vulnerability, that can be achieved using a specially crafted zip archive (affects other archives as well, bzip2, tar, xz, war, cpio, 7z), that holds path traversal filenames. So when the filename gets concatenated to the target extraction directory, the final path ends up outside of the target folder.

Sources: security.snyk.io

Also remembered today

Shortcuts: ← → to move, D day, W week, M month, T today.

📅 Add to your calendar

SaintsGoogle CalendarApple, Outlook (.ics)

Observances (feasts, scourges and miracles)Google CalendarApple, Outlook (.ics)

In Google Calendar you can also paste the URL in Settings → Add calendar → From URL. The first sync can take a few hours.