This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate meilisearch

Dependencies

(61 total, 7 outdated)

CrateRequiredLatestStatus
 actix-cors^0.7.10.7.2up to date
 actix-http^3.13.33.22.0up to date
 actix-web^4.14.14.20.0up to date
 anyhow^1.0.1041.0.105up to date
 bstr^1.13.11.14.0up to date
 byte-unit^5.2.55.2.6up to date
 bytes^1.12.11.12.2up to date
 bumpalo^3.20.33.20.4up to date
 clap^4.6.64.6.9up to date
 crossbeam-channel^0.5.160.5.17up to date
 deserr^0.6.40.6.4up to date
 either^1.17.01.19.0up to date
 flate2^1.1.91.1.11up to date
 futures^0.3.340.3.34up to date
 futures-util^0.3.340.3.34up to date
 indexmap^2.14.02.14.2up to date
 is-terminal^0.4.170.4.17up to date
 itertools^0.14.00.15.0out of date
 jsonwebtoken^10.4.012.0.0out of date
 lazy_static^1.5.01.5.1up to date
 liquid^0.26.110.26.11up to date
 memmap2^0.9.110.9.12up to date
 mime^0.3.170.3.18up to date
 num_cpus^1.17.01.17.0up to date
 obkv^0.3.00.3.0up to date
 pin-project-lite^0.2.170.2.18up to date
 platform-dirs^0.3.00.3.0up to date
 prometheus^0.14.00.14.0up to date
 rand^0.10.20.10.4up to date
 regex^1.13.11.13.2up to date
 rustls^0.23.430.23.46up to date
 rustls-pemfile^2.2.02.2.0up to date
 segment^0.2.60.2.6up to date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 static-files^0.3.10.3.1up to date
 sysinfo^0.38.40.40.4out of date
 tempfile^3.27.03.27.0up to date
 thiserror^2.0.202.0.21up to date
 time^0.3.550.3.55up to date
 tokio^1.53.11.54.1up to date
 toml^1.1.41.2.2+spec-1.1.0up to date
 uuid^1.24.01.29.3up to date
 serde_urlencoded^0.7.10.7.1up to date
 termcolor^1.4.11.4.1up to date
 url^2.5.82.5.9up to date
 tracing^0.1.440.1.44up to date
 tracing-subscriber^0.3.230.3.23up to date
 tracing-actix-web^0.7.220.7.26up to date
 roaring^0.11.50.12.0out of date
 mopa-maintained^0.2.30.2.3up to date
 utoipa^5.5.06.0.0out of date
 utoipa-scalar^0.3.00.4.0out of date
 secrecy^0.10.30.10.3up to date
 actix-web-lab^0.26.00.30.0out of date
 urlencoding^2.1.32.1.3up to date
 backoff^0.4.00.4.0up to date
 humantime^2.4.02.4.0up to date
 cidr^0.3.20.3.2up to date
 bumparaw-collections^0.2.00.2.0up to date
 fst^0.4.70.4.7up to date

Dev dependencies

(8 total, 2 outdated)

CrateRequiredLatestStatus
 actix-rt^2.11.02.16.0up to date
 brotli^8.0.49.1.3out of date
 insta=1.39.01.49.0out of date
 manifest-dir-macros^0.1.200.1.20up to date
 maplit^1.0.21.0.2up to date
 temp-env^0.3.60.3.6up to date
 wiremock^0.6.50.6.5up to date
 yaup^0.3.10.3.1up to date

Build dependencies

(7 total, 3 outdated, 1 insecure)

CrateRequiredLatestStatus
 anyhow^1.0.1041.0.105up to date
 cargo_toml^0.22.31.0.1out of date
 hex^0.4.30.4.3up to date
 reqwest^0.12.280.13.5out of date
 sha-1^0.10.10.10.1up to date
 static-files^0.3.10.3.1up to date
 zip ⚠️^6.0.09.8.2insecure

Crate meilitool

Dependencies

(8 total, all up-to-date)

CrateRequiredLatestStatus
 anyhow^1.0.1041.0.105up to date
 clap^4.6.64.6.9up to date
 indexmap^2.14.02.14.2up to date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 tempfile^3.27.03.27.0up to date
 time^0.3.550.3.55up to date
 uuid^1.24.01.29.3up to date

Crate meilisearch-types

Dependencies

(28 total, 5 outdated)

CrateRequiredLatestStatus
 actix-web^4.14.14.20.0up to date
 anyhow^1.0.1041.0.105up to date
 base64^0.22.10.23.1out of date
 bumpalo^3.20.33.20.4up to date
 bumparaw-collections^0.2.00.2.0up to date
 byte-unit^5.2.55.2.6up to date
 convert_case^0.9.00.12.0out of date
 csv^1.4.01.4.0up to date
 deserr^0.6.40.6.4up to date
 enum-iterator^2.3.02.3.0up to date
 flate2^1.1.91.1.11up to date
 fst^0.4.70.4.7up to date
 itertools^0.14.00.15.0out of date
 memmap2^0.9.110.9.12up to date
 papaya^0.2.40.2.5up to date
 roaring^0.11.50.12.0out of date
 rustc-hash^2.1.32.1.3up to date
 serde^1.0.2291.0.229up to date
 serde-cs^0.2.40.2.4up to date
 serde_json^1.0.1511.0.154up to date
 tar^0.4.460.4.46up to date
 tempfile^3.27.03.27.0up to date
 thiserror^2.0.202.0.21up to date
 time^0.3.550.3.55up to date
 tracing^0.1.440.1.44up to date
 urlencoding^2.1.32.1.3up to date
 utoipa^5.5.06.0.0out of date
 uuid^1.24.01.29.3up to date

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 insta=1.39.01.49.0out of date

Crate meilisearch-auth

Dependencies

(12 total, 3 outdated)

CrateRequiredLatestStatus
 base64^0.22.10.23.1out of date
 enum-iterator^2.3.02.3.0up to date
 hex^0.4.30.4.3up to date
 hmac^0.12.10.13.0out of date
 maplit^1.0.21.0.2up to date
 rand^0.10.20.10.4up to date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 sha2^0.10.90.11.1out of date
 thiserror^2.0.202.0.21up to date
 time^0.3.550.3.55up to date
 uuid^1.24.01.29.3up to date

Crate meili-snap

Dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 insta=1.39.01.49.0out of date
 md5^0.8.10.8.1up to date
 regex-lite^0.1.90.1.9up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 uuid^1.24.01.29.3up to date

Crate index-scheduler

Dependencies

(25 total, 4 outdated)

CrateRequiredLatestStatus
 anyhow^1.0.1041.0.105up to date
 byte-unit^5.2.55.2.6up to date
 bytes^1.12.11.12.2up to date
 bumpalo^3.20.33.20.4up to date
 convert_case^0.9.00.12.0out of date
 enum-iterator^2.3.02.3.0up to date
 flate2^1.1.91.1.11up to date
 hashbrown^0.15.50.17.2out of date
 indexmap^2.14.02.14.2up to date
 memmap2^0.9.110.9.12up to date
 page_size^0.6.00.6.0up to date
 rayon^1.12.01.12.0up to date
 roaring^0.11.50.12.0out of date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 tar^0.4.460.4.46up to date
 tempfile^3.27.03.27.0up to date
 thiserror^2.0.202.0.21up to date
 either^1.17.01.19.0up to date
 time^0.3.550.3.55up to date
 tracing^0.1.440.1.44up to date
 uuid^1.24.01.29.3up to date
 backoff^0.4.00.4.0up to date
 rusty-s3^0.8.10.12.0out of date
 tokio^1.53.11.54.1up to date

Dev dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 big_s^1.0.21.0.2up to date
 crossbeam-channel^0.5.160.5.17up to date
 insta=1.39.01.49.0out of date
 maplit^1.0.21.0.2up to date

Crate dump

Dependencies

(12 total, 1 outdated)

CrateRequiredLatestStatus
 flate2^1.1.91.1.11up to date
 http^1.5.01.5.0up to date
 regex^1.13.11.13.2up to date
 roaring^0.11.50.12.0out of date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 tar^0.4.460.4.46up to date
 tempfile^3.27.03.27.0up to date
 thiserror^2.0.202.0.21up to date
 time^0.3.550.3.55up to date
 tracing^0.1.440.1.44up to date
 uuid^1.24.01.29.3up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 big_s^1.0.21.0.2up to date
 maplit^1.0.21.0.2up to date

Crate file-store

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 tempfile^3.27.03.27.0up to date
 thiserror^2.0.202.0.21up to date
 tracing^0.1.440.1.44up to date
 uuid^1.24.01.29.3up to date

Crate permissive-json-pointer

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 serde_json^1.01.0.154up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 big_s^1.01.0.2up to date

Crate milli

Dependencies

(68 total, 18 outdated)

CrateRequiredLatestStatus
 big_s^1.0.21.0.2up to date
 bimap^0.6.30.6.3up to date
 bincode^1.3.33.0.0out of date
 bstr^1.13.11.14.0up to date
 bytemuck^1.25.21.25.2up to date
 byteorder^1.5.01.5.0up to date
 charabia^0.10.00.10.0up to date
 cellulite^0.4.00.4.0up to date
 concat-arrays^0.1.20.1.2up to date
 convert_case^0.9.00.12.0out of date
 crossbeam-channel^0.5.160.5.17up to date
 ureq^3.4.03.5.2up to date
 deserr^0.6.40.6.4up to date
 either^1.17.01.19.0up to date
 fst^0.4.70.4.7up to date
 fxhash^0.2.10.2.1up to date
 geojson^0.24.21.0.0out of date
 geoutils^0.5.10.5.1up to date
 grenad^0.5.00.5.0up to date
 heed^0.23.00.23.1up to date
 indexmap^2.14.02.14.2up to date
 levenshtein_automata^0.2.10.2.1up to date
 memchr^2.8.32.8.3up to date
 memmap2^0.9.110.9.12up to date
 obkv^0.3.00.3.0up to date
 ordered-float^5.3.05.5.1up to date
 rayon^1.12.01.12.0up to date
 roaring^0.11.50.12.0out of date
 rstar^0.12.20.14.0out of date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 slice-group-by^0.3.10.3.1up to date
 smallstr^0.3.10.3.1up to date
 smallvec^1.15.21.16.6up to date
 smartstring^1.0.12.0.0out of date
 tempfile^3.27.03.27.0up to date
 thiserror^2.0.202.0.21up to date
 time^0.3.550.3.55up to date
 uuid^1.24.01.29.3up to date
 itertools^0.14.00.15.0out of date
 csv^1.4.01.4.0up to date
 candle-core^0.9.20.11.1out of date
 candle-transformers^0.9.20.11.1out of date
 candle-nn^0.9.20.11.1out of date
 tokenizers^0.22.20.23.2out of date
 hf-hub^0.5.01.0.0out of date
 safetensors^0.6.20.8.0out of date
 tiktoken-rs^0.12.00.12.1up to date
 liquid^0.26.110.26.11up to date
 rhai^1.25.11.27.0up to date
 arroy^0.9.00.9.0up to date
 hannoy^0.3.00.3.0up to date
 rand^0.10.20.10.4up to date
 tracing^0.1.440.1.44up to date
 url^2.5.82.5.9up to date
 hashbrown^0.15.50.17.2out of date
 bumpalo^3.20.33.20.4up to date
 bumparaw-collections^0.2.00.2.0up to date
 steppe^0.40.4.1up to date
 thread_local^1.1.101.1.10up to date
 rustc-hash^2.1.32.1.3up to date
 enum-iterator^2.3.02.3.0up to date
 flume^0.11.10.12.0out of date
 utoipa^5.5.06.0.0out of date
 lru^0.18.40.19.2out of date
 twox-hash^2.1.32.1.5up to date
 geo-types=0.7.170.7.20out of date
 zerometry^0.3.00.3.0up to date

Dev dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 insta=1.39.01.49.0out of date
 maplit^1.0.21.0.2up to date
 md5^0.8.10.8.1up to date
 rand^0.10.20.10.4up to date

Crate filter-parser

Dependencies

(6 total, 4 outdated)

CrateRequiredLatestStatus
 nom^7.1.38.0.0out of date
 nom_locate^4.2.05.0.0out of date
 unescaper^0.1.100.2.0out of date
 levenshtein_automata^0.2.10.2.1up to date
 itertools^0.14.00.15.0out of date
 serde_json^1.0.1511.0.154up to date

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 insta=1.39.01.49.0out of date

Crate flatten-serde-json

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 serde_json^1.01.0.154up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 criterion^0.8.20.8.2up to date

Crate json-depth-checker

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 serde_json^1.01.0.154up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 criterion^0.8.20.8.2up to date

Crate fuzzers

Dependencies

(9 total, all up-to-date)

CrateRequiredLatestStatus
 arbitrary^1.4.21.5.0up to date
 bumpalo^3.20.33.20.4up to date
 clap^4.6.64.6.9up to date
 either^1.17.01.19.0up to date
 fastrand^2.5.02.5.0up to date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 tempfile^3.27.03.27.0up to date
 time^0.3.550.3.55up to date

Crate tracing-trace

Dependencies

(10 total, 2 outdated)

CrateRequiredLatestStatus
 color-spantrace^0.3.00.3.0up to date
 fxprof-processed-profile^0.7.00.8.1out of date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 tracing^0.1.440.1.44up to date
 tracing-error^0.2.10.2.1up to date
 tracing-subscriber^0.3.230.3.23up to date
 byte-unit^5.2.55.2.6up to date
 tokio^1.53.11.54.1up to date
 libproc^0.14.110.15.0out of date

Crate xtask

Dependencies

(16 total, 4 outdated)

CrateRequiredLatestStatus
 anyhow^1.0.1041.0.105up to date
 cargo_metadata^0.23.10.23.1up to date
 clap^4.6.64.6.9up to date
 futures-util^0.3.340.3.34up to date
 reqwest^0.12.280.13.5out of date
 semver^1.0.281.0.28up to date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 sha2^0.10.90.11.1out of date
 sysinfo^0.38.40.40.4out of date
 time^0.3.550.3.55up to date
 tokio^1.53.11.54.1up to date
 tracing^0.1.440.1.44up to date
 tracing-subscriber^0.3.230.3.23up to date
 uuid^1.24.01.29.3up to date
 similar-asserts^1.7.02.0.0out of date

Crate build-info

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 time^0.3.550.3.55up to date

Build dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 anyhow^1.0.1041.0.105up to date
 vergen-gitcl^1.0.810.0.4out of date

Crate openapi-generator

Dependencies

(5 total, 1 outdated)

CrateRequiredLatestStatus
 serde_json^1.01.0.154up to date
 clap^4.6.64.6.9up to date
 anyhow^1.0.1041.0.105up to date
 utoipa^5.5.06.0.0out of date
 enum-iterator^2.3.02.3.0up to date

Crate http-client

Dependencies

(6 total, 1 outdated)

CrateRequiredLatestStatus
 ureq^3.4.03.5.2up to date
 reqwest^0.12.280.13.5out of date
 hyper-util^0.1.200.1.21up to date
 tower-service^0.3.30.3.3up to date
 cidr^0.3.20.3.2up to date
 url^2.5.82.5.9up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 tokio^1.53.11.54.1up to date

Crate routes-macros

Dependencies

(5 total, 3 outdated)

CrateRequiredLatestStatus
 utoipa^5.5.06.0.0out of date
 quote^1.01.0.47up to date
 proc-macro2^1.01.0.107up to date
 syn^2.03.0.10out of date
 proc-macro2-diagnostics^0.10.10.11.0out of date

Crate routes

Dependencies

(5 total, 1 outdated)

CrateRequiredLatestStatus
 actix-web^4.14.14.20.0up to date
 utoipa^5.5.06.0.0out of date
 serde_json^1.0.1511.0.154up to date
 time^0.3.550.3.55up to date
 uuid^1.24.01.29.3up to date

Crate async-openai

Dependencies

(16 total, 3 outdated)

CrateRequiredLatestStatus
 backoff^0.4.00.4.0up to date
 base64^0.22.10.23.1out of date
 futures^0.3.340.3.34up to date
 serde^1.0.2291.0.229up to date
 serde_json^1.0.1511.0.154up to date
 thiserror^2.0.202.0.21up to date
 tokio^1.53.11.54.1up to date
 tokio-stream^0.1.190.1.19up to date
 tokio-util^0.7.190.7.20up to date
 tracing^0.1.440.1.44up to date
 derive_builder^0.20.20.20.2up to date
 utoipa^5.5.06.0.0out of date
 secrecy^0.10.30.10.3up to date
 bytes^1.12.11.12.2up to date
 eventsource-stream^0.2.30.2.3up to date
 tokio-tungstenite^0.26.20.30.0out of date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 tokio-test^0.4.50.4.6up to date
 serde_json^1.01.0.154up to date

Crate async-openai-macros

Dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 syn^2.03.0.10out of date
 quote^1.01.0.47up to date
 proc-macro2^1.01.0.107up to date

Crate reqwest-eventsource

Dependencies

(8 total, 2 outdated)

CrateRequiredLatestStatus
 eventsource-stream^0.2.30.2.3up to date
 futures-core^0.3.340.3.34up to date
 futures-util^0.3.340.3.34up to date
 pin-project-lite^0.2.170.2.18up to date
 nom^7.1.38.0.0out of date
 mime^0.3.170.3.18up to date
 futures-timer^3.0.43.0.4up to date
 thiserror^1.0.692.0.21out of date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 futures^0.3.340.3.34up to date
 tokio^11.54.1up to date
 rocket^0.5.10.5.4up to date

Security Vulnerabilities

zip: Insecure Preservation of SUID/SGID Bits during ZIP Extraction Leading to Potential Privilege Escalation

RUSTSEC-2026-0367

The zip crate preserves privileged Unix permission bits (SUID, SGID, and sticky bits) from ZIP external_attributes during extraction, instead of masking them to safe permission bits. If a privileged process (for example, root in an installer, CI/CD pipeline, or container build) extracts an attacker-controlled ZIP archive using ZipArchive::extract() or the stream extraction API, files can be created as setuid-root or setgid. This behavior allows the creation of SUID/SGID files during extraction, which can lead to local privilege escalation depending on the execution environment.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-vv5m-jxxh-4627

zip: zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory

RUSTSEC-2026-0368

In zip 9.0.0-pre2, ZipArchive::extract creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an attacker-chosen path outside it. This behavior was verified on macOS and Linux. On either platform, a subsequent application read or write through that extracted entry accesses the external target with the extracting process's permissions.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26

zip: ZipStreamReader::extract() and ZipArchive::extract() apply Unix permissions through symlinks without confining the target

RUSTSEC-2026-0369

ZipStreamReader::extract() applies Unix permissions through extracted symlinks without validating the symlink target stays within the destination

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4684-h2q9-2vcp

zip: zip: `ZipArchive::extract` aborts the process on a symlink entry with a large declared size

RUSTSEC-2026-0429

ZipArchive::extract() sizes the symlink-target buffer from the uncompressed size declared in the central directory record, before reading a single byte of entry data:

let mut target = Vec::with_capacity(file.size() as usize);

Both inputs are attacker-controlled. ZipFile::size() returns uncompressed_size verbatim from the central directory, widened to a full u64 by a ZIP64 extended-information extra field, and is never cross-checked against the compressed size, the remaining archive length, or any platform-appropriate bound for a symlink target. ZipFile::is_symlink() is decided entirely by the S_IFLNK bit of the external-attributes field.

Vec::with_capacity() is infallible: when the reservation is refused it calls handle_alloc_error() and aborts the process. This is not a Rust panic. It is not caught by catch_unwind(), is unaffected by panic = "unwind", and is not contained by running the call on a worker thread.

A 112-byte archive is sufficient. One Stored entry flagged S_IFLNK with a ZIP64 field declaring uncompressed_size = 2^62 and a zero-byte payload makes extract() fail with:

memory allocation of 4611686018427387904 bytes failed
Aborted (core dumped)          # exit 134

The declared value only needs to exceed the host's address space, not its RAM: Vec::with_capacity() maps address space without touching pages, so resident memory stays flat and the abort happens on the refused reservation itself. Under a ulimit -v cap or a memory-constrained container the threshold drops far enough that a plain 32-bit uncompressed_size with no ZIP64 field suffices.

Applications that extract archives from untrusted input are affected on Unix and Windows targets with default features and no special configuration: upload handling, mail-attachment processing, package and artefact ingestion, backup restore and container-image layer extraction. No confidentiality or integrity property is affected: there is no memory unsafety, no out-of-bounds access, no disclosure and no data corruption.

The fix landed in zip-rs/zip2#984 and shipped in 9.0.0.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-q7v9-x93c-xqv3

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

RUSTSEC-2026-0545

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.

zip: Legacy Shrink, Reduce and Implode decoders preallocate the declared uncompressed size

RUSTSEC-2026-0547

With the legacy-zip feature, the decoders for the Shrink, Reduce and Implode compression methods reserved output capacity for the entry's declared uncompressed size before decoding anything. That size comes from the archive, and a ZIP64 entry can declare any 64-bit value, so reading or extracting a crafted entry of a few bytes panics with "capacity overflow" or fails a huge allocation.

An attacker who can supply an archive can stop a process that reads it, for example through ZipArchive::extract.

Only builds with the legacy-zip feature are affected; it is not enabled by default.

The fix caps the preallocation at 1 MiB, and such an entry now returns an error.

zip: `ZipStreamReader` extracts entries under local-header names that can differ from the central directory

RUSTSEC-2026-0548

A ZIP archive names each entry twice: in the local file header in front of the entry's data, and in the central directory at the end of the archive. ZipArchive lists and opens entries by their central-directory names. ZipStreamReader::visit and ZipStreamReader::extract, like read_zipfile_from_stream, read the local headers in order and use the local-header names without comparing them with the central directory.

An archive can therefore show one set of file names to code that inspects it with ZipArchive and write files under other names when it is extracted with ZipStreamReader. If an application checks an archive one way and extracts it the other way, an attacker can get files written or overwritten inside the destination directory that the check never saw.

The fix adds an opt-in check. ZipStreamReader::enforce_header_consistency(true) compares each local header with its central-directory entry (name, sizes, CRC-32, compression method, flags and modification time) and fails extraction on a mismatch; ZipReadOptions::enforce_header_consistency(true) and ZipArchive::validate_header_consistency() do the same for ZipArchive. The check is off by default, so upgrading alone does not change what ZipStreamReader::new(...) extracts: applications that extract untrusted archives with ZipStreamReader need to turn it on.