GHSA-mj73-j457-8x9q
JSON

low

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

Severity
low CVSS:4.0 by GitHub
Published
Last changed
Also known as
RUSTSEC-2025-0132

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

Product or packageVersionsReported by
maxminddb (crates.io)from 0.11.0 before 0.27.0GitHub Advisory Database, RustSec Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-mj73-j457-8x9q changed 2025-12-11CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2025-0132 changed 2025-12-02CC0-1.0