Exploit database

Vulnerability

CVE-2021-3493

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · canonical

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Description

The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of file capabilities on files in an underlying file system. Due to the combination of unprivileged user namespaces along with a patch carried in the Ubuntu kernel to allow unprivileged overlay mounts, an attacker could use this to gain elevated privileges.

CVE Program

Exploit source choices

24 sources
2021 Ubuntu Overlayfs LPE
MSF-linux--local--cve_2021_3493_overlayfsMetasploitLinux / remotePreferred

This module exploits a vulnerability in Ubuntu's implementation of overlayfs. The vulnerability is the result of failing to verify the ability of a user to set the attributes in a running executable. Specifically, when Overlayfs sends the set attributes data to the underlying file system via `vfs_setxattr`, it fails to first verify the data by calling `cap_convert_nscap`. This vulnerability was patched by moving the call to `cap_convert_nscap` into the `vfs_setxattr` function that sets the attribute, forcing verification every time the `vfs_setxattr` is called rather than trusting the data was already verified.

2021-04-12cve_2021_3493_overlayfs.rb
0xsyr0/oscp
GH-1e9613ea0d155c33d16520580dbed873GitHubUnofficial GitHub source

OSCP Cheat Sheet

2021-10-2262 files · 3,887 stars
briskets/cve-2021-3493
GH-a0c29f3b6947e8b76405f1c5631b4a6dGitHubUnofficial GitHub source

Ubuntu OverlayFS Local Privesc

2021-04-192 files · 447 stars
al1ex/linuxeelvation
GH-82dd0da071ea66f05194b9f200dbcaeeGitHubUnofficial GitHub source

Linux Eelvation(持续更新)

2021-03-30302 files · 412 stars
ctrsploit/ctrsploit
GH-9a0531415465a45cdfdcbe664b81ee2cGitHubUnofficial GitHub source

A penetration toolkit for container environment

2021-08-031,072 files · 163 stars
bepb/tryhackme
GH-6c7f6b5161826fb28a0b3cb179ef98feGitHubUnofficial GitHub source

bepb/tryhackme source repository

2024-05-29417 files · 158 stars
inspiringz/cve-2021-3493
GH-2c4f3f0047952ea2efb4611a1ad2d2afGitHubUnofficial GitHub source

CVE-2021-3493 Ubuntu OverlayFS Local Privesc (Interactive Bash Shell & Execute Command Entered)

2021-07-075 files · 42 stars
0xabdoulaye/ctfs-journey
GH-b98d41dc379aad1c429f52ad55e1bfa4GitHubUnofficial GitHub source

Embark on my CTFs Journey, where I document my conquests and lessons learned while navigating the dynamic challenges of Capture The Flag contests. From cracking codes to outsmarting puzzles, join me in exploring the diverse landscape of cybersecurity challenges.

2023-08-27296 files · 10 stars
cvedb/awesome-cve-repo
GH-5d2d5bc79e38467342aae25328e8c9d0GitHubUnofficial GitHub source

cvedb/awesome-cve-repo source repository

2023-03-237 files · 9 stars
oneoy/cve-2021-3493
GH-db5438b27747f0b31651905598e42b7eGitHubUnofficial GitHub source

oneoy/cve-2021-3493 source repository

2021-04-222 files · 3 stars
anekant-singhai/exploits
GH-fb68669de66becb84d772d022a7f86faGitHubUnofficial GitHub source

Exploits working {tested my me} for various scenarios

2023-10-2649 files · 2 stars
cerodah/overlayfs-cve-2021-3493
GH-b5243300d2abee2139547f1d439c5ae7GitHubUnofficial GitHub source

2021 kernel vulnerability in Ubuntu.

2021-09-122 files · 2 stars
cvedb/top
GH-2e626f612a2d87f79d1d9385117cfa16GitHubUnofficial GitHub source

cvedb/top source repository

2023-03-1911 files · 2 stars
puckiestyle/cve-2021-3493
GH-81119b5464e6b4782814921ccc55d5d7GitHubUnofficial GitHub source

puckiestyle/cve-2021-3493 source repository

2021-10-022 files · 2 stars
fei9747/cve-2021-3493
GH-3c4278dadd086e7c8a2dff3d758540ceGitHubUnofficial GitHub source

fei9747/cve-2021-3493 source repository

2022-11-292 files · 1 stars
0xlane/cve-2021-3493
GH-7a2250454c6b18667507fcae14f1ff87GitHubUnofficial GitHub source

0xlane/cve-2021-3493 source repository

2026-07-235 files · 0 stars
0xwhoami35/root-kernel
GH-0d87544043c48ee2ae3b2f585f525613GitHubUnofficial GitHub source

This is not my tools i just taken from google and github

2023-12-0824 files · 0 stars
7imbitz/xcalate
GH-dc85c5e4ac8c61fbba536264a7de1d7aGitHubUnofficial GitHub source

A privilege escalation tools based on Top 10 TryHackMe.

2025-02-2521 files · 0 stars
abdennour-py/cve-2021-3493
GH-f2afd4f8c42ddb6325c3ece58ee23382GitHubUnofficial GitHub source

abdennour-py/cve-2021-3493 source repository

2021-05-022 files · 0 stars
azazhe1/ransomware_cve_2021_3493
GH-e321a5281a9a5af897f8aca1c5f5ad4cGitHubUnofficial GitHub source

azazhe1/ransomware_cve_2021_3493 source repository

2025-03-2516 files · 0 stars
d4n-sec/d4n-sec.github.io
GH-a977c770ad0cb70a8725a440ce0aeba7GitHubUnofficial GitHub source

Generated personal blog

2026-11-06385 files · 0 stars