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-4034 — Golang implementation of CVE-2021-4034, a local privilege escalation exploit for polkit's pkexec, with mitigation instructions and educational notes. | Kitploit
Tools/GitHubGitHub/an00brektn/cve-2021-4034
Privilege EscalationExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHuban00brektn/cve-2021-4034

CVE-2021-4034

Golang implementation of CVE-2021-4034, a local privilege escalation exploit for polkit's pkexec, with mitigation instructions and educational notes.

View Repository
113244 years agoNot yet reviewed
Share

CVE-2021-4034

January 25, 2022 | An00bRektn

This is a golang implementation of CVE-2021-4034 based on (read as: blatantly stolen from) clubby789's implementation of the vulnerability discovered by Qualys.

I made a blog post going into further detail about the vulnerability, mainly for myself, but for anyone who wants a more drawn out explanation, which you can find here.

Mitigation

Canonical has already released a patched version in the APT package manager, so all Ubuntu distros that are not EOL that are up-to-date (sudo apt update && sudo apt upgrade), should be good. If your distro does not have a patch yet, the current "band-aid" solution is to remove the SUID bit like so: sudo chmod 0755 $(which pkexec).

FAQ

How are you doing?

Good, thanks for asking 😊

Did you discover this vulnerability?

No. This was from Qualys. Did you not read the first part?

Why clubby789?

Saw them create a new repository in my GitHub feed and decided I'd try to recreate it in another language (yes I have nothing better to do).

Why Golang? Shouldn't you just use C?

I just wanted to get some more Golang practice in. Also, currently not smart enough to figure out the exact details of the vuln without looking at a PoC. I get it now, but I needed to copy the code to understand the code. Also, golang compiles statically, which is neat :)

Who asked?

idk

Advisory

This code should be used for authorized penetration testing and/or educational purposes only. Any misuse of the program will not be the responsibility of the author. Only run this exploit against machines that you have express permission to run it against.

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    647
  • 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.

    421
  • 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.

    389
  • 5

    ARTEX

    baarai/artex

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

    333
  • 6

    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.

    331

Explore all tools

Browse our collection of tools

View all tools →