HistoryEditJSON (OSV)

RUSTSEC-2025-0132

Reader::open_mmap unsoundly marks unsafe memmap operation as safe

Reported
Issued
Package
maxminddb (crates.io)
Type
Vulnerability
Categories
Keywords
#mmap
References
Patched
  • >=0.27.0
Unaffected
  • <0.11.0
Affected Functions
Version
maxminddb::Reader::open
  • <0.12.0, >=0.11.0
maxminddb::Reader::open_mmap
  • <0.27.0, >=0.11.0

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.

Advisory available under CC0-1.0 license.