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
DASICS-CVE-2021-3156 — Exploit for CVE-2021-3156 (sudo heap-based buffer overflow) enabling local privilege escalation to root, with a reproducible QEMU-based testing environment for RISC-V Linux systems. | Kitploit
Tools/GitHubGitHub/dasics-ict/dasics-cve-2021-3156
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingBinary Exploitation
GitHubdasics-ict/dasics-cve-2021-3156

DASICS-CVE-2021-3156

Exploit for CVE-2021-3156 (sudo heap-based buffer overflow) enabling local privilege escalation to root, with a reproducible QEMU-based testing environment for RISC-V Linux systems.

Share
View Repository
1261 year agoNot yet reviewed

DASICS CVE-2021-3156

Version Requirements

sudo: 1.8.31

glibc: 2.31

Linux: 4.18 or 5.10.167-gee203559bc0b-dirty

Usage

For convenience, when compiling Linux, do not use the initramfs method. Instead, use the rootfs.img provided in this repository as the root filesystem to boot. It contains the necessary configuration files to support sudo and nss services, making it a very simple distribution.

Use the qemu provided by DASICS_QEMU to boot bbl with rootfs.img as the root filesystem. Alternatively, you can use OpenSBI to boot linux. Example command:

#!/bin/sh
qemu-system-riscv64 -M virt -m 1G \
        -cpu rv64 \
        -nographic \
        -kernel bbl \
        -drive file=rootfs.img,format=raw,id=hd0 \
        -device virtio-blk-device,drive=hd0 \
        -append "console=ttyS0 rw root=/dev/vda" \
        -bios none  -s

After entering the busybox command line interface, execute the following commands:

$ su wanghan
$ cd
$ whoami
$ ./expolit
$ whoami

Since the system boots directly into the command line interface with root privileges, you can easily change the password using passwd.

Demo

image-20231230223439990

As shown, expolit achieves privilege escalation and can be reliably reproduced.

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.

    911
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    548
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 4

    ARTEX

    baarai/artex

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

    362
  • 5

    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.

    311
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    287

Explore all tools

Browse our collection of tools

View all tools →