The vulnerability in MongoDB's 2dsphere index handling isn't simply a crash — it's a state management failure where a GeoJSON document passes insertion validation but leaves an internal object in a partially initialized state that the index key generation path cannot safely process. When the index build runs (whether synchronously or as a background operation), it encounters a null pointer dereference attempting to use this corrupted geometry object.
The critical insight for defenders: MongoDB's acceptance of a GeoJSON document at insert time does not guarantee that document can be safely processed for 2dsphere indexing. The parsing layer validates syntactic well-formedness, while the index key generation layer performs semantic validation that the earlier stage didn't enforce. This creates a dangerous assumption gap — application developers commonly rely on 'insert succeeded' as proof of valid geometry, never exercising the index key generation path in their testing.
The practical exposure is broader than process termination. In replicated environments, the partially initialized geometry object propagates to secondaries before the crash occurs, silently corrupting spatial state that downstream analytics and cached queries may consume. The crash is the symptom that gets logged; data poisoning is the actual damage with wider blast radius.
For immediate action: audit any 2dsphere index deployments for documents inserted during the vulnerable window — not all will have triggered the crash, but some may carry corrupted geometry. Test GeoJSON handling in your CI pipeline by explicitly triggering index rebuilds, not just successful inserts. The architectural question worth raising with your MongoDB deployment team is whether validation should be enforced at a single choke point that both insertion and index paths depend on, eliminating the temporal gap where partially initialized objects circulate in the system.