Narrowly Surviving the Dirty Pipe (CVE-2022-0847) Vulnerability
Key point
When the Dirty Pipe vulnerability emerged, Replit's defense layers blocked privilege escalation, but the team identified a risk via the shared page cache and patched it immediately.
Details
A serious Linux kernel vulnerability, Dirty Pipe (CVE-2022-0847), was discovered. This vulnerability allows users to temporarily overwrite any file on the filesystem even without write permission, and poses a particular risk of root privilege takeover by manipulating a setuid binary.
Replit had already enabled the no new privs setting to block privilege escalation via setuid, and had built defense in depth by preventing additional system changes through the container's restricted capabilities.
However, the real threat lay elsewhere. In a Linux container (Docker) environment, the page cache is shared by all containers, so if an attacker modified a common binary such as /bin/sh, the data of every user running on the same machine could be stolen or altered.
Replit quickly resolved this issue through a kernel patch. Fortunately, the security advisory was well coordinated, allowing them to complete the response without significant damage.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.