Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/gbonacini/cve-2026-31431
Privilege EscalationExploitationShellcodePenetration TestingLearning & EducationBinary Exploitation
GitHubgbonacini/cve-2026-31431

CVE-2026-31431

Standalone C++/x86-64 assembly implementation of CVE-2026-31431 (Copyfail) for local privilege escalation. Compiles to a dependency-free binary that opens a root shell on vulnerable Linux systems. Includes an ASCII bootstrap script for transfer.

View Repository
123 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Description:

Cfail is my implementation in C++ x86-64 Assembly of CVE-2026-31431 (aka Copyfail), with no dependecy required at all, included libc. In fact, you obtain am universal executable able to run stand-alone on every Linux x86-64 distribution, thanks to a minimal implementation of the standard libs. That makes this program is 'copile once deploy everywhere' type, where for 'everywhere' is intended a random vulnerable Linux x86-64 distribution.

Running the program as unprivileged user on a vulnerable system, will open a root shell.

The makefile also create a "bootstrap" shell script called 'cfail.sh' able to create the binary executable, byte by byte, used the embedded data, so the program can be distributed as ASCII bash script too, in case it's required by the specific testing constrains.

DISCLAIMER:

This code has been posted for information and educational purposes. The intrusion in systems and services without the owner's authorisation is illegal. The misuse of the information and the software in this repo can result in criminal charges brought against the perpetrator of the crime. Any actions and or activities related to the material contained within this Git Repository is solely your responsibility. The author will not be held responsible in the event any criminal charges be brought against any individuals misusing the information or the software in this website to break the law.

Prerequisites:

  • A CVE-2026-31431 vulnerable system.

  • The program was successfully used with:

  • Ubuntu 22.04.2 LTS, x86-64
  • Ubuntu 24.04.4 LTS, x86-64
  • Red Hat Enterprise Linux 9.6 (Plow), x86-64
  • Red Hat Enterprise Linux 8.10 (Ootpa), x86-64

and compiled with:

  • gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0;

Installation:

  • Compile the program:
root@kitploit:~
  make
  • Start the program:
root@kitploit:~
  ./cfail

Compact Version (experimental):

  • makefile has an option permitting to create a more compact executable that, at the moment, I consider experimental:
root@kitploit:~
  make compact
  • The size of the generated binary is only 8 KB;

Transfer the Executable from Bash Script:

  • Compiling the project you also obtain the 'cfail.sh' script, that can be used to transfer the executaable via ASCII encoded script:
root@kitploit:~
  ./cfail.sh > cfail
Download Tool