CVE-2024-2961

HIGH EXPLOITED NUCLEI

GNU C Library <2.39 - Buffer Overflow

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2024-2961 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 20 public exploits from researchers including ambionics, kyotozx, rvzsec, including a Metasploit module exploits/linux/http/magento_xxe_to_glibc_buf_overflow. A Nuclei detection template is also available.

AI-analyzed exploit summary This repository contains multiple exploits for CVE-2024-2961, a buffer overflow in glibc's iconv() function, targeting PHP engines and applications like Roundcube and Magento. The exploits leverage PHP filters and direct iconv() calls to achieve remote code execution (RCE).

Description

The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4 bytes when converting strings to the ISO-2022-CN-EXT character set, which may be used to crash an application or overwrite a neighbouring variable.

Exploits (20)

nomisec WORKING POC 504 stars
by ambionics · remote
https://github.com/ambionics/cnext-exploits

This repository contains multiple exploits for CVE-2024-2961, a buffer overflow in glibc's iconv() function, targeting PHP engines and applications like Roundcube and Magento. The exploits leverage PHP filters and direct iconv() calls to achieve remote code execution (RCE).

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: PHP (with glibc iconv), Roundcube, Magento <= 2.4.7
No auth needed
Prerequisites: Vulnerable version of glibc with iconv() buffer overflow · PHP environment with specific configurations
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 5 stars
by kyotozx · infoleak
https://github.com/kyotozx/CVE-2024-2961-Remote-File-Read

This PoC exploits CVE-2024-2961, a vulnerability in the `iconv` library's handling of character encoding conversions, to achieve arbitrary file read via PHP filter chains. It automates payload creation, upload, and retrieval to exfiltrate file contents.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: PHP with vulnerable `iconv` library
No auth needed
Prerequisites: Vulnerable PHP `iconv` library · Access to `admin-ajax.php` endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER 5 stars
by rvzsec · poc
https://github.com/rvzsec/CVE-2024-2961

This repository contains a Bash script to detect and mitigate the buffer overflow vulnerability in GNU libc (glibc) versions 2.39 and older, known as CVE-2024-2961. The script checks for vulnerable encodings and disables them to prevent exploitation.

Classification
Scanner 90%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: GNU libc (glibc) versions 2.39 and older
Auth required
Prerequisites: necessary permissions to modify system configuration files · basic utilities such as ldd, iconv, grep, and find
devstral-2 · analyzed Jun 01, 2026 Full analysis →
nomisec WORKING POC 5 stars
by rvizx · poc
https://github.com/rvizx/CVE-2024-2961

This repository provides a Bash script to mitigate CVE-2024-2961, a buffer overflow vulnerability in GNU libc (glibc) versions 2.39 and older, affecting PHP's iconv function with certain Chinese Extended encodings. The script checks for vulnerable encodings, disables them, and verifies the mitigation.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: GNU libc (glibc) versions 2.39 and older
Auth required
Prerequisites: System with vulnerable glibc versions · PHP with iconv function usage · Root or sudo privileges
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC 4 stars
by suce0155 · pythonpoc
https://github.com/suce0155/CVE-2024-2961

This repository contains a functional exploit for CVE-2024-2961, leveraging a file-read primitive in PHP to achieve remote code execution (RCE) on Buddyforms 2.7.7. The exploit chains multiple iconv filters to manipulate memory and execute arbitrary commands via a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: Buddyforms 2.7.7
Auth required
Prerequisites: Access to wp-admin/admin-ajax.php · PHP with vulnerable iconv implementation · zlib extension enabled
devstral-2 · analyzed May 14, 2026 Full analysis →
nomisec WORKING POC 4 stars
by suce0155 · remote
https://github.com/suce0155/CVE-2024-2961_buddyforms_2.7.7

This repository contains a Python-based exploit for CVE-2024-2961, targeting Buddyforms 2.7.7. The exploit chains CVE-2024-2961 (iconv LFI) with CVE-2023-26326 to achieve remote code execution (RCE) via a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: Buddyforms 2.7.7
No auth needed
Prerequisites: PHP with vulnerable iconv configurations · Access to the target's wp-admin/admin-ajax.php endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 2 stars
by kjdfklha · local
https://github.com/kjdfklha/CVE-2024-2961_poc

This PoC exploits a memory corruption vulnerability in PHP (CVE-2024-2961) by manipulating heap structures and achieving arbitrary code execution through a series of crafted PHP filter chains and heap spraying techniques.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: PHP (specific version not explicitly stated, but likely PHP 8.x)
No auth needed
Prerequisites: Access to a vulnerable PHP installation · Ability to send crafted HTTP requests to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 2 stars
by mattaperkins · poc
https://github.com/mattaperkins/FIX-CVE-2024-2961

This repository contains a shell script to mitigate CVE-2024-2961 by removing specific Chinese font configurations from the gconv-modules-extra.conf file. The script checks for the presence of GLIBC and vulnerable font configurations before applying the fix.

Classification
Working Poc 90%
Attack Type
Other
Complexity
Trivial
Reliability
Reliable
Target: GLIBC (specific version not specified)
Auth required
Prerequisites: Access to the target system with sufficient privileges to modify system files
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by omarelshopky · remote
https://github.com/omarelshopky/exploit_cve-2023-26326_using_cve-2024-2961

This repository contains a functional exploit for CVE-2023-26326 (BuddyForms unauthenticated insecure deserialization) chained with CVE-2024-2961 (glibc iconv vulnerability) to achieve RCE on PHP 8.3.x systems. The exploit leverages `php://filter` to bypass deserialization gadget chain limitations and delivers a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: WordPress BuddyForms Plugin < 2.7.8 on PHP 8.3.x
No auth needed
Prerequisites: Target running WordPress with BuddyForms < 2.7.8 · PHP 8.3.x with vulnerable glibc (CVE-2024-2961) · Network access to target's `/wp-admin/admin-ajax.php`
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by whyuhurtz · poc
https://github.com/whyuhurtz/wongpress

This repository contains a functional exploit for CVE-2024-2961, a PHP file-read vulnerability leading to RCE. The exploit leverages a chain of PHP filters and a heap manipulation technique to achieve arbitrary code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: WordPress with vulnerable PHP configuration
No auth needed
Prerequisites: PHP with specific filters enabled · WordPress installation with vulnerable endpoint
devstral-2 · analyzed May 29, 2026 Full analysis →
nomisec WORKING POC
by rcribelar-nucleus · poc
https://github.com/rcribelar-nucleus/my-cool-demo-php-code

This repository contains a functional PHP exploit demonstrating arbitrary file read via user-controlled input in the `file` POST parameter. The `index.php` script directly passes user input to `file_get_contents`, enabling path traversal and local file inclusion attacks.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: PHP (8.3.4-apache)
No auth needed
Prerequisites: access to the web application · ability to send POST requests
devstral-2 · analyzed May 14, 2026 Full analysis →
nomisec WORKING POC
by rcribelar-nucleus · poc
https://github.com/rcribelar-nucleus/demo-php-cve-2024-2961

This repository demonstrates a file disclosure vulnerability in PHP via the `file_get_contents` function, which reads arbitrary files based on user-controlled input (`$_POST['file']`). This can lead to sensitive information leakage or remote code execution if combined with file upload functionality.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: PHP (8.3.4-apache in the provided Docker setup)
No auth needed
Prerequisites: Ability to send POST requests to the target endpoint
devstral-2 · analyzed May 14, 2026 Full analysis →
nomisec WORKING POC
by Clarissss · remote-auth
https://github.com/Clarissss/osTicketFileReadIntoRCE

This repository contains a functional exploit for CVE-2026-22200, chaining PHP filter injection with CVE-2024-2961 (CNEXT) to achieve unauthenticated RCE on osTicket installations. The exploit includes automated file exfiltration, libc fingerprinting, and reverse shell capabilities.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: osTicket ≤ 1.18.2
No auth needed
Prerequisites: Python 3.8+ · requests · PyMuPDF · Pillow · pwntools
devstral-2 · analyzed Mar 03, 2026 Full analysis →
nomisec SUSPICIOUS
by scriptSails · poc
https://github.com/scriptSails/glibcs

The repository claims to be a PoC for CVE-2024-2961 but contains no exploit code. Instead, it is a trading bot for EVM chains, which is unrelated to the CVE. The presence of wallet and private key configurations suggests potential malicious intent.

Classification
Suspicious 80%
Attack Type
Other
Complexity
Moderate
Reliability
Theoretical
Target: N/A
No auth needed
Prerequisites: N/A
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by 4wayhandshake · poc
https://github.com/4wayhandshake/CVE-2024-2961

This PoC exploits CVE-2024-2961 to perform arbitrary file reads on a vulnerable WordPress instance by leveraging a filter chain to bypass file upload restrictions. It interacts with the `/wp-admin/admin-ajax.php` endpoint to upload a malicious payload and retrieve the contents of arbitrary files.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: WordPress (specific version not specified)
Auth required
Prerequisites: Access to a vulnerable WordPress instance · Valid authentication credentials · Wrapwrap tool to generate filter chains
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER
by tnishiox · poc
https://github.com/tnishiox/cve-2024-2961

This repository contains a scanner for CVE-2024-2961, a vulnerability in the GNU C Library's iconv function. The code tests for the presence of the vulnerability by attempting to exploit a buffer overflow in the iconv conversion process.

Classification
Scanner 90%
Attack Type
Dos
Complexity
Trivial
Reliability
Reliable
Target: GNU C Library (glibc) with iconv
No auth needed
Prerequisites: System with vulnerable version of glibc
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by exfil0 · local
https://github.com/exfil0/test_iconv

This repository contains a C program designed to test for CVE-2024-2961, a buffer overflow vulnerability in the `iconv()` function of the GNU C Library (glibc). The PoC attempts to trigger the vulnerability by performing a specific character set conversion that could lead to a buffer overflow.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: GNU C Library (glibc) version 2.39 or older
No auth needed
Prerequisites: System with glibc version 2.39 or older · GCC installed · iconv library installed
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by absolutedesignltd · poc
https://github.com/absolutedesignltd/iconvfix

This repository contains a Bash script to patch CVE-2024-2961, a vulnerability in the GNU C Library's iconv functionality. The script checks for vulnerability using a PoC from Sansec, applies a patch by modifying gconv-modules, and verifies the fix.

Classification
Working Poc 90%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: GNU C Library (glibc) with iconv, specifically on CentOS 7
Auth required
Prerequisites: Access to a vulnerable CentOS 7 system · Sudo privileges to modify system files
devstral-2 · analyzed Feb 16, 2026 Full analysis →
vulncheck_xdb WORKING POC
remote
https://github.com/mesudmammad1/CVE-2023-26326_Buddyform_exploit

This repository contains a functional exploit for CVE-2023-26326 (BuddyForms unauthenticated insecure deserialization) chained with CVE-2024-2961 (iconv vulnerability) to achieve remote code execution via `php://filter` manipulation. The exploit bypasses PHP 8+ restrictions by leveraging filter chains and file upload mechanisms in WordPress.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: WordPress BuddyForms plugin < 2.7.8 with PHP 8.3.x
No auth needed
Prerequisites: WordPress with BuddyForms plugin < 2.7.8 · PHP 8.3.x · Access to `/wp-admin/admin-ajax.php`
devstral-2 · analyzed Feb 25, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by Sergey Temnikov, Charles Fol, Heyder, jheysel-r7 · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/magento_xxe_to_glibc_buf_overflow.rb

This Metasploit module exploits CVE-2024-34102 (Magento XXE) and CVE-2024-2961 (glibc buffer overflow) to achieve unauthenticated RCE on vulnerable Magento/Adobe Commerce installations. It chains arbitrary file read with a heap-based overflow in PHP's iconv() function.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: Magento 2.4.7 and earlier, Adobe Commerce 2.4.7 and earlier (with vulnerable PHP 7.0.0-8.3.7 and glibc <= 2.39)
No auth needed
Prerequisites: Target running vulnerable Magento/Adobe Commerce · Vulnerable PHP version (7.0.0-8.3.7) · Vulnerable glibc version (<= 2.39) · Access to /proc/self/maps
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

PHP - LFR to Remote Code Execution
HIGHby Kim Dongyoung (Kairos-hk),bolkv,n0ming,RoughBoy0723

References (20)

Core 20
Core References

Scores

CVSS v3 7.3
EPSS 0.8833
EPSS Percentile 99.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

VulnCheck KEV 2024-09-16
CWE
CWE-787
Status published
Products (14)
debian/debian_linux 10.0
gnu/glibc 2.1.93 - 2.40
netapp/active_iq_unified_manager
netapp/hci_compute_node
netapp/hci_h300s_firmware
netapp/hci_h410c_firmware
netapp/hci_h410s_firmware
netapp/hci_h500s_firmware
netapp/hci_h610c_firmware
netapp/hci_h610s_firmware
... and 4 more
Published Apr 17, 2024
Tracked Since Feb 18, 2026