NetSight
low1.0No CVE yet

GHSA-mj73-j457-8x9q

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

Impact

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.

An attacker can exploit this with local access to the system, with an administrator account, without any action by a user. If it succeeds: low risk of data or systems being changed.

Affected packages

EcosystemPackageAffectedFixed in
rustmaxminddb>= 0.11.0, < 0.27.00.27.0

Weakness classification

References