Trends/Home · Trends

Another PHP Security Vulnerability... Risk of Admin Privilege Hijacking via PHP-FPM Memory Flaw

Another critical security vulnerability has been discovered in PHP, a programming language widely used for website development around the world. It has been found that attackers can, under certain conditions, gain even server administrator privileges, prompting calls for operators of PHP-based websi

Wooil Shim
Staff Reporter
4 min read
Another PHP Security Vulnerability... Risk of Admin Privilege Hijacking via PHP-FPM Memory Flaw
CBC News

Another critical security vulnerability has been discovered in PHP, a programming language widely used for website development around the world. It has been found that attackers can, under certain conditions, gain even server administrator privileges, prompting calls for operators of PHP-based websites to exercise special caution. The PHP development team released a security advisory and updates on the 19th.

[PHP-FPM 'Memory Re-Reference' Flaw... Risk of Privilege Escalation to Administrator]

According to the published security advisory, a vulnerability in which already freed memory is referenced again (Use-After-Free) was identified in PHP-FPM's event handling process. If an attacker exploits this vulnerability in an environment where they can execute PHP code with restricted privileges, it is possible for them to execute commands with top-level administrator privileges.

In fact, it was reported that on a Linux-based PHP 8.5.12 environment, successfully executing commands with top-level administrator privileges through a regular user account was demonstrated.

[Vulnerable Code Introduced in 8.1.20 and 8.2.7... "Event Deregistration and File Handling Fixed"]

The code handling method related to this vulnerability was introduced in PHP versions 8.1.20 and 8.2.7. The PHP development team fixed problems occurring in the event deregistration and file handling processes.

[Not All PHP Sites Are Targets... "Version Checks and Update Application Should Be Hurried"]

However, this vulnerability does not occur unconditionally on all PHP-based websites. Specific settings and attack conditions must be met, and whether any actual hacking damage has occurred was not confirmed in the published advisory.

Companies and institutions operating PHP-based websites need to check the versions and security settings they are using and apply the latest security updates.

[Some assistance from AI was utilized.]

Wooil Shim
Staff Reporter

CBC Globe publishes verified stories with editorial review, source checks, and tenant-specific publication standards.