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
copy-fail-tiny-elf-CVE-2026-31431 — Minimal no-libc Linux x86_64 ELF PoC build for Copy Fail (CVE-2026-31431) | Kitploit
Tools/GitHubGitHub/crihexe/copy-fail-tiny-elf-cve-2026-31431
Exploit FrameworksVulnerability AnalysisExploitationBinary Exploitation
GitHubcrihexe/copy-fail-tiny-elf-cve-2026-31431

copy-fail-tiny-elf-CVE-2026-31431

Minimal no-libc Linux x86_64 ELF PoC build for Copy Fail (CVE-2026-31431)

View Repository
Website
63103 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Copy Fail Tiny ELF - CVE-2026-31431

Minimal 436-bytes exploit for Copy Fail, thanks to the power of golfing

Magic

This ELF ultra golfs the exploit by being totally unmapped, rwx, and by using itself conditionally as the ELF payload to use to poison the cache. More cursed ELF internals golfs coming soon

Have a better idea? Compete at https://copy.golf/

=== BEGIN SLOPPED PORTION ===

References

  • Technical writeup: https://copy.fail/
  • Upstream PoC repository: https://github.com/theori-io/copy-fail-CVE-2026-31431
  • NVD entry: https://nvd.nist.gov/vuln/detail/CVE-2026-31431

Requirements

  • Linux x86_64
  • gcc
  • ld
  • strip

On Debian/Ubuntu:

root@kitploit:~
sudo apt install build-essential binutils

Nix Environment

The repository includes a pinned shell.nix and .envrc.

With nix-shell:

root@kitploit:~
nix-shell

With direnv:

root@kitploit:~
direnv allow

This provides the reproducible toolchain used here:

root@kitploit:~
gcc 15.2.1
GNU ld / strip from llvmPackages_19.bintools
python3

Build

root@kitploit:~
make

If you are using Nix or direnv, make will use the toolchain from the shell automatically.

Quick VM Test

You can also try the exploit inside a quick Ubuntu Server 24.04 LTS VM

root@kitploit:~
cd test-vm
./quick-test.sh

Check size

root@kitploit:~
make size

Clean

root@kitploit:~
make clean

Tested toolchain

root@kitploit:~
gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1)
GNU ld (GNU Binutils for Ubuntu) 2.42
GNU strip (GNU Binutils for Ubuntu) 2.42

Reproducible smaller build:

root@kitploit:~
gcc 15.2.1
GNU ld 2.46
GNU strip with --strip-section-headers

Final size varies with GCC, binutils, and the strip implementation.

Download Tool