Advisory

GHSA-mj73-j457-8x9q

Also known as: RUSTSEC-2025-0132

Summary

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

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-12-02 00:29 UTC
Modified
2025-12-11 17:44 UTC

Affected packages and fixes

maxminddb

crates.io · All systems

Affected

  • introduced 0.11.0, fixed 0.27.0 (semver)

Fixed versions

0.27.0

Fix

  • Fixed version 0.27.0
    cargo update -p maxminddb --precise 0.27.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences