Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2021-3156 — cve-2021-3156;sudo堆溢出漏洞;漏洞检测 | Kitploit
Tools/GitHubGitHub/yaunsky/cve-2021-3156
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHubyaunsky/cve-2021-3156

cve-2021-3156

cve-2021-3156;sudo堆溢出漏洞;漏洞检测

View Repository
52325 years agoNot yet reviewed
Share

sudo Heap Overflow Vulnerability (CVE-2021-3156)

Vulnerability Overview

A foreign research team discovered a sudo heap overflow vulnerability (CVE-2021-3156), which had been hidden for a decade. An ordinary user can exploit this vulnerability to gain root privileges on a sudo host with default configuration. Vulnerability details have been publicly disclosed on the internet.

Vulnerability ID

CVE-2021-3156

Comprehensive Vulnerability Rating

High

Vulnerability Scope

All versions from 1.8.2 to 1.8.31p2

All stable versions from 1.9.0 to 1.9.5p1

Fixed Version:

Sudo 1.9.5p2 or later

Vulnerability Impact:

Local privilege escalation

Security Recommendations

Redhat and other Linux distributions have urgently released fix patches. Users are advised to upgrade as soon as possible:

CentOS system users:

  1. CentOS 6: Default sudo is within the affected range. CentOS official support has been discontinued;

  2. CentOS 7: Upgrade to sudo-1.8.23-10.el7_9.1 or later;

  3. CentOS 8: Upgrade to sudo-1.8.29-6.el8_3.1 or later.

Ubuntu system users:

  1. Ubuntu 20.04 LTS users are advised to upgrade to the following version:

sudo - 1.8.31-1ubuntu1.2

sudo-ldap - 1.8.31-1ubuntu1.2

  1. Ubuntu 18.04 LTS users are advised to upgrade to the following version:

sudo - 1.8.21p2-3ubuntu1.4

sudo-ldap - 1.8.21p2-3ubuntu1.4

  1. Ubuntu 16.04 LTS users are advised to upgrade to the following version:

sudo - 1.8.16-0ubuntu1.10

sudo-ldap - 1.8.16-0ubuntu1.10

It is recommended to back up your data before upgrading to avoid any unexpected issues.

Script Function

This bash script is the detection script officially provided by Red Hat!

If you came here looking for an exploit, there isn't one. Give it a star and let's learn together!

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    916
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    707
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    430
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    402
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    349
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    341

Explore all tools

Browse our collection of tools

View all tools →