RUSTSEC-2026-0545: AES entries returned without checking their authentication code when the data ends early or is empty

Aperta
#15,339 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend, security

Direzione di ricerca

The report describes a vulnerability in the zip crate’s AES entry reader, but names no Wasmtime file or test. Start by locating the code that reads encrypted ZIP entries and checking existing tests for truncated and empty AES entries. Done means early end-of-stream returns an error and empty entries have their authentication code checked.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

AES entries returned without checking their authentication code when the data ends early or is empty

Details
Package zip
Version 0.6.6
URL https://github.com/zip-rs/zip2/commit/ec265db0b0602f8ffb9479327397bddefb7e2216
Date 2026-10-22
Patched versions >=9.0.0
Unaffected versions <0.6.0

For WinZip AES (AE-1 and AE-2) entries, the 10-byte HMAC authentication code was read and checked only after the reader had consumed exactly the entry's declared compressed size. If the archive ended before that size was reached, the read returned end-of-stream and the truncated plaintext was accepted without the check. The authentication code of an entry with no encrypted data was never checked.

AES-CTR ciphertext can be changed bit by bit without the password, and AE-2 entries carry no CRC-32, so an attacker who can modify an archive can alter the decrypted contents of such an entry without any error being reported.

This affects reading AES-encrypted entries with a password (for example ZipArchive::by_name_decrypt) with the aes-crypto feature.

The fix returns an error when the data ends before the declared size, and checks the authentication code of empty entries.

See advisory page for additional details.

Lingua principale
Rust
Stelle
18.9k
Fork
2k
Merge medio
1g 6h
PR unite (30g)
238

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bytecodealliance/wasmtime

Tutte le issue di bytecodealliance/wasmtime

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.