Important: PHP Security Update - Buffer Overflow Leading to RCE

php Updated 02 Oct 2025

Summary

04/08/2022
N/A
Yes i
High
8.8

RLSA-2022:5904: Important: php security update. Affects php versions < 0:8.0.13-2.el9_0. Fixed in 0:8.0.13-2.el9_0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

PHP is an HTML-embedded scripting language commonly used with the Apache HTTP Server. It allows developers to create dynamic web pages and applications. PHP is widely used in the web development community due to its simplicity and versatility. However, a vulnerability has been discovered in PHP that could lead to remote code execution (RCE) if exploited.

Vulnerability Detail

The vulnerability, identified as CVE-2022-31626, is a buffer overflow issue triggered by a password of excessive length. An attacker can exploit this vulnerability by providing a specially crafted password, causing a buffer overflow and potentially executing arbitrary code on the affected system. This could lead to unauthorized access, data breaches, and further compromise of the system.

How To Fix

Minimum fixed version

0:8.0.13-2.el9_0

This is the first release that contains the fix.

sudo dnf update php

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to apply the security update provided by the PHP package maintainers.

Conclusion

It is important to promptly update the PHP package to mitigate the risk of remote code execution. Failure to apply the security update could leave the system vulnerable to exploitation. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for php →

Share this vulnerability

FAQ

PHP is an HTML-embedded scripting language commonly used for web development.

Remote code execution refers to the ability of an attacker to execute arbitrary code on a target system remotely, without direct access to the system.

An attacker can exploit this vulnerability by providing a specially crafted password of excessive length, triggering a buffer overflow and potentially executing arbitrary code.

If exploited, this vulnerability could lead to unauthorized access, data breaches, and further compromise of the affected system.

To protect your system, it is crucial to update the PHP package to version 8.0.13-2.el9_0 or later, as it includes a patch that addresses the buffer overflow issue.

Related vulnerabilities

Recent vulnerabilities recorded for php.

How To Fix

Minimum fixed version

0:8.0.13-2.el9_0

This is the first release that contains the fix.

sudo dnf update php

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback