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
Tools/GitHubGitHub/spongebob-369/cve-2025-32462
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationRed Teaming
GitHubspongebob-369/cve-2025-32462

cve-2025-32462

cve-2025-32462' demo

View Repository
391 year agoNot yet reviewed
Share

cve-2025-32462

sudo_description

sudo/NEWS at SUDO_1_8_8 · sudo-project/sudo · GitHub

The sudo -h (--host) documentation states that -h can only be used with -l. In later updates, sudo -h was allowed to be used with -e, -i, etc.

sudo --host(-h) <username> -l(--list)

/etc/sudoer.d is used to check what permissions a user has on a system. These permissions may be bypassed, allowing a user to escalate privileges from one system to those they might have on another system. This is especially impactful for systems that share a single sudoers configuration across multiple computers or use network-based user directories (such as LDAP) to provide system sudoers rules.

In summary: sudo's h/--host option does not adhere to the principle of least privilege, failing to validate host rule boundaries in non--l scenarios (such as command execution). An attacker can configure malicious rules in the /etc/sudoer.d file.

Impact

Mainly affects systems of administrators who use the same sudoers file across multiple machines.

Conditions

The vulnerability exploitation requires two conditions:

  • The attacker obtains an authenticated user
  • The system is not under default configuration, relying on additional rules present in the sudoers file

Example:

The sudoers file contains rules defining the user's privileges on different systems.

Alice hostA: some Privilege

Bob hostB: some Privilege

Bob logs into hostA, then runs the command sudo -h hostB commandA

Reproduction Steps

git clone https://github.com/SpongeBob-369/cve-2025-32462.git
cd cve-2025-32462
chmod +x run.sh
./run.sh
# after entering the contain Ubuntu
sudo -l
# then prompt you to enter your password, but "we" don't know.
sudo -l -h fakehost    # Check the permissions user ubuntu have in host named  fakehost
sudo -i -h fakehost    # get root
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.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

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

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

    329
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    287

Explore all tools

Browse our collection of tools

View all tools →