CVE-2014-3622
PHP vulnerability analysis and mitigation

Overview

Use-after-free vulnerability in the add_post_var function in the Posthandler component in PHP 5.6.x before 5.6.1 might allow remote attackers to execute arbitrary code by leveraging a third-party filter extension that accesses a certain ksep value. The vulnerability was assigned CVE-2014-3622 and was discovered in September 2014 (PHP Bug Report).

Technical details

The vulnerability exists in the add_post_var() function where input filters are allowed to change values passed as char** parameters. The code gives &ksep to the input filter without performing estrndup() before calling the input filter, which is potentially unsafe. If a third-party filter extension modifies or frees the value supplied, it could result in an illegal efree() that could be exploitable for remote code execution. The issue was introduced when the estrndup() call was removed and was later fixed by re-introducing estrndup() before passing values to input filters (PHP Bug Report, RedHat Bug).

Impact

While the vulnerability could potentially lead to remote code execution, the actual impact was considered low because exploitation required a third-party filter extension that modifies values in a specific way. At the time of discovery, only ext/filter and suhosin were known to use input filters, and neither modified values in a way that would trigger the vulnerability (PHP Bug Report, RedHat Bug).

Mitigation and workarounds

The vulnerability was fixed in PHP version 5.6.1 by re-introducing the estrndup() call before passing values to input filters. Users were advised to upgrade to PHP 5.6.1 or later versions. Only PHP 5.6.0 was affected; earlier versions were not vulnerable to this issue (RedHat Bug).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2025-14894HIGH7.5
  • PHPPHP
  • livewire-filemanager/filemanager
NoNoJan 16, 2026
CVE-2026-23626MEDIUM6.8
  • PHPPHP
  • kimai/kimai
NoYesJan 18, 2026
CVE-2025-69198MEDIUM6
  • PHPPHP
  • pterodactyl/panel
NoYesJan 19, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management