Skip to content
Memory corruption Advisory Advanced

GHSL-2026-115–GHSL-2026-122: Various memory access violations in 7-Zip

7-Zip 26.00 contained several memory-safety flaws across its archive handlers, including a 32-bit integer overflow in the SquashFS fragment reader, an unchecked short read in the UEFI capsule parser, and off-by-one or post-check out-of-bounds reads in the UDF and WIM handlers. An attacker could craft a malicious archive that, when opened or extracted, discloses heap memory into the extracted file or reads slightly past a buffer.

jarlob Follow

Originally disclosed on GitHub Security Lab

The 7-Zip project, version 26.00, contains various memory access violations, out-of-bounds (OOB) read issues, uninitialized memory vulnerabilities, integer overflow flaws in various archive formats (e.g., 7z, SquashFS, UDF, UEFI, WIM, and Ar), and path traversal in sample app, which could potentially lead to…

jarlob, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely missing or misplaced bounds validation on attacker-controlled sizes and offsets, plus a discarded short-read return value, in several archive format handlers.

Impact

Heap memory could be disclosed into extracted files, and the UDF and WIM issues give only a small read past a buffer; the SquashFS disclosure is limited to 32-bit builds, while 64-bit builds reject the input.

What the attacker needed

Victim opens or extracts a crafted archive; 32-bit build for the SquashFS issue

The fix

The issues were fixed in version 26.01, released after the report.

How it was found

  1. Create a crafted archive for the affected format using the supplied generator.
  2. Open or extract it with the 32-bit 7-Zip build.
  3. Observe the out-of-bounds read or uninitialised bytes appearing in the extracted file.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An archive program reads file formats and copies data into memory buffers. In several of these formats the program trusted a size or offset written in the file, so a crafted archive made it read memory outside the buffer it had allocated. That stray memory could then end up inside the file the user extracts, leaking data the program was holding.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.