← Back to list

ZIP Bomb

ZIP files are not executable and therefore cannot be dangerous, right?

Siddhuachary · 2026-05-09 10:14 · 0 claps · 1.2 min read
#zip #life #extract-zip-files #compression #data-extraction
Open on Medium ↗
Wiki topics: 📰 · Journalism & News

ZIP Bomb

ZIP files are not executable and therefore cannot be dangerous, right?

But what if you compress “too much”?

Most of us think ZIP files are harmless. Just compress, send, extract, done.

But the internet created something cursed:

A tiny ZIP file that can turn into massive amounts of data after extraction.

Welcome to the world of ZIP Bombs

What is a ZIP Bomb?

A ZIP bomb is a highly compressed archive designed to explode in size when extracted.

Example:

  • Download size → few KBs
  • Extracted size → GBs, TBs, even PBs

Sounds fake? The famous [42.zip](https://unforgettable.dk/) is only around 42 KB, but expands insanely large.

The ZIP itself isn’t malware. No hacking. No virus code.

It just abuses compression.

First, How Compression Works

Suppose a file contains:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..........

Instead of storing every A, compression says: “Store: A repeated 20 times.”

Now imagine repeating this idea at a ridiculous scale.

That’s where things become dangerous.

How ZIP Bombs Are Made

  1. Create highly repetitive data
  2. Compress it aggressively
  3. Sometimes place compressed archives inside compressed archives
  4. Multiply extraction recursively

What Happens After Extraction?

On Servers

If servers auto-extract uploads: CPU spikes, RAM usage explodes, disk space dies, containers/services crash

Ek tiny file… aur pura server headache.

Final Thought

The next time someone says: “Relax bro, it’s just a ZIP file.”

Maybe don’t trust it instantly.


메타데이터
post_id
5d251e3db956
slug
zip-bomb-5d251e3db956
url
https://medium.com/@siddhuachary2005/zip-bomb-5d251e3db956
canonical_url
https://medium.com/@siddhuachary2005/zip-bomb-5d251e3db956
author_url
https://medium.com/@siddhuachary2005
status
ok
fetched_at
2026-06-20 20:29:01