Skip to content
OpenAdvisories
Low GHSA-mj73-j457-8x9q RUSTSEC-2025-0132

maxminddb's `Reader::open_mmap` unsoundly marks unsafe memmap operation as safe

Published Dec 2, 2025 · Updated Dec 11, 2025 · Assigned by GHSA

Description

maxminddb prior to version 0.27 declared `Reader::open_mmap` as safe despite wrapping an inherently unsafe memmap2 operation with no extra step done to guarantee safety. This could have led to undefined behaviour if the file were to be modified on disk while the memory map was still active.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io maxminddb >= 0.11.0, < 0.27.0 0.27.0 GHSA-mj73-j457-8x9q

References