Oh Snap! More Lemmings: Local Privilege Escalation Vulnerability Discovered in snap-confine (CVE-2021-44731)
A local privilege escalation vulnerability was found in snap-confine, a program used by snapd to set up snap execution environments. An unprivileged user could exploit it to gain root privileges on default Ubuntu installations.
blog.qualys.com
Published on blog.qualys.com
The Qualys Research Team has discovered multiple vulnerabilities in the snap-confine function on Linux operating systems, the most important of which can be exploited to escalate privilege to gain root privileges. Qualys recommends security teams apply patches for these vulnerabilities as soon as possible.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The text does not state the underlying mistake; it only says multiple vulnerabilities exist in snap-confine.
What the attacker needed
Local login as any unprivileged user
The fix
Patches were released by Ubuntu and should be applied.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Snap-confine is a helper program that runs with high privileges to prepare the sandbox for snap applications. A flaw in it means a normal user could trick it into giving them full control of the system (root). This is serious because any logged-in user could become the administrator.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.