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

Abierto
#15,339 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
backend, security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
18.9k
Forks
2k
Merge medio
1 d 6 h
PR fusionados (30 d)
238

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bytecodealliance/wasmtime

Todos los issues de bytecodealliance/wasmtime

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.