Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilityopen-source-dependency-vulnerabilityproof-of-concept-releaseinitial-access-method

glibc iconv Overflow Turns PHP File Read Bugs Into Remote Code Execution

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen May 25, 2026

glibc iconv Overflow Turns PHP File Read Bugs Into Remote Code Execution

Researchers detailed how CVE-2024-2961, a long-standing buffer overflow in glibc's iconv implementation for ISO-2022-CN-EXT, can be exploited to achieve remote code execution in PHP applications. The technique, dubbed CNEXT, builds on earlier work around PHP filter chains and error-based file-read oracles, showing how php://filter can be abused not just to read files but to manipulate PHP heap allocations and corrupt internal memory structures. By chaining filters such as convert.iconv, zlib.inflate, and dechunk, the exploit can steer allocator behavior and overwrite zend_mm_heap hooks so that PHP ultimately invokes system().

The write-up says the method is reliable across PHP 7.0.0 through 8.3.7 and can be delivered in a single GET request, significantly raising the impact of otherwise limited file-read primitives. A demonstrated attack used the WordPress BuddyForms flaw CVE-2023-26326 to gain file-read access and then escalate to code execution, while the researchers warned that the same path could affect other PHP file-read sinks, including XXE and SQL injection scenarios involving LOAD DATA LOCAL INFILE. The findings also revive attention on PHP filter-chain abuse first explored in prior research, showing that seemingly minor disclosure bugs can become full server compromise when combined with glibc and PHP internals.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Mar 21, 2023 – May 27, 2024
  1. May 27, 20242y ago

    Lexfo details CNEXT exploitation of glibc iconv bug for PHP RCE

    Lexfo published part 1 of its CNEXT research on exploiting CVE-2024-2961, a long-standing buffer overflow in glibc's iconv implementation for ISO-2022-CN-EXT conversions. The write-up showed how PHP's php://filter behavior and heap manipulation can turn a file-read primitive into reliable remote code execution across PHP 7.0.0 through 8.3.7.

  2. Mar 21, 20234y ago

    BuddyForms file-read flaw disclosed as CVE-2023-26326

    A vulnerability in the WordPress BuddyForms plugin, tracked as CVE-2023-26326, was disclosed and later used as an example file-read primitive for PHP exploitation. In the referenced material, it serves as the initial access point before escalation to code execution.

  3. Mar 21, 20234y ago

    Synacktiv publishes PHP filter-chain file-read technique

    Synacktiv published research describing PHP filter chains that enable file reads via an error-based oracle. This established a practical file-read primitive in PHP applications that later exploitation work could build on.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Affected products

1 linked
Php

Organizations

1 linked
PHP Group
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.