Low, CVSS 1.0crates.ioPublished
maxminddb's Reader::open_mmap unsoundly marks unsafe memmap operation as safe
GHSA-mj73-j457-8x9q
- Affected
- crates.io maxminddb >= 0.11.0, < 0.27.0
- Fixed in
- 0.27.0· Vendor fix available
- Issue
- maxminddb prior to version 0.27 declared Reader::openmmap 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.
Recommended action: Upgrade to 0.27.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.