Friday, November 13, 2026

PHP: updates prevent malicious code injection

Date:

IT security researcher Charles Fol found two bugs in PHP database modules that he was able to use to run his own code. Vulnerabilities affect everyone PHP-Versions from currently maintained version trees up to and including 7.4.29, 8.0.19 Y 8.1.6.

The first vulnerability (CVE-2022-31625) affects the connection to postgreSQL databases. With an improperly initialized array to store parameters of a database query, attackers could corrupt the heap and execute their own (malicious) code on the target system if certain types of data were cleverly combined. However, to exploit the vulnerability, they should also be able to run their own PHP code on the target system.

The second security bug can be found in the PHP to MySQL connection and has been assigned CVE ID CVE-2022-31626. Here, Fol exploits a buffer overflow in PHP’s own implementation of the MySQL protocol to execute injected code.

However, a condition must also be met here in order to be able to inject malicious code: The target server must establish a connection to a specially prepared MySQL server, which also uses a particularly long password of more than 4,000 characters.

Security service provider Tenable has assigned both bugs a CVSS score of 9.8 (critical) and believes they can be exploited remotely without authentication. Even with a more cautious assessment, the security gaps still catch up with you score of 7.8 points and therefore represent a high risk.

in the new PHP versions 7.4.30, 8.0.20 and 8.1.7 the PHP group fixed both problems. Above all, administrators who operate hosting servers need to be up-to-date quickly to reduce the risk of a server takeover. However, at the time of this writing, only Alpine Linux and Fedora have updated their PHP packages.


(DMK)

to the home page

Toni Morrison
Toni Morrison
Toni Morrison was a celebrated American author whose novels earned worldwide recognition for their depth, artistry, and cultural significance. Her influential works continue to inspire readers and writers across generations.

Share post:

Popular

More like this
Related

Elements Destiny Release Date Confirmed for December 8, 2026, Alongside New Trailer

Deck13 Spotlight and developer ShrooMoon have announced the official...

Exterminauts Closed Beta Launches on PC With New Weapons, Missions, and Alien Threats

Behaviour Interactive and publisher Level Infinite have announced the...

Edenfall: Legacy of the First Wardens Set for December 8 Steam Release With Shapeshifting Adventure

Edenfall: Legacy of the First Wardens, a single-player action-adventure...

Othercrown Announced for Steam, Bringing Slot Machine Combat and Monster Armies to PC in 2027

Independent game developer Eugene Maw, known for the action...