What PHP’s Session Handler Teaches Us About Atomicity

· Amit Merchant · Nov. 26, 2026, 7:41 a.m.
Summary
This blog post discusses a PHP security vulnerability (CVE-2026-126714) related to session handling and atomicity. It explains how file locks prevent concurrent writes but do not guarantee that updates are atomic, potentially leading to code execution issues. The author emphasizes the importance of understanding separate guarantees of concurrency and atomicity when dealing with persistent storage, using PHP's changes in session handling as a case study.