Advisory

RUSTSEC-2025-0132

Also known as: GHSA-mj73-j457-8x9q

Summary

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

Not rated by the source.

Dates

Published
2025-11-28 12:00 UTC
Modified
2025-12-02 06:12 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: RustSec Advisory Database · CC0-1.0

Sources & licences