Important: PHP Security Update - Buffer Overflow Leading to RCE

php Updated 02 Oct 2025

Summary

04/08/2022
N/A
Yes i
Unrated
Not published

ALSA-2022:5904: Important: php security update. Affects php versions < 8.0.13-2.el9_0. Fixed in 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 Your last release was probably never penetration tested 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. The PHP package in AlmaLinux 9 is vulnerable to a buffer overflow issue that can be triggered by a password of excessive length. This vulnerability can lead to remote code execution (RCE) on the affected system.

Vulnerability Detail

The vulnerability (CVE-2022-31626) in PHP arises from a buffer overflow when processing passwords of excessive length. An attacker can exploit this issue by providing a specially crafted password, causing the buffer to overflow and potentially execute arbitrary code. The impact of this vulnerability can be severe, as it allows an attacker to gain unauthorized access to the affected system and potentially perform malicious actions.

How To Fix

Minimum fixed version

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 essential to apply the security update as soon as possible to mitigate the risk of exploitation.

Conclusion

The PHP package in AlmaLinux 9 is vulnerable to a buffer overflow issue that can lead to remote code execution. It is crucial to update the PHP package to version 8.0.13-2.el9_0 or later to mitigate the risk of exploitation. For further assistance or support 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. It allows developers to create dynamic web pages and applications.

A buffer overflow occurs when a program writes data beyond the boundaries of a fixed-size buffer, potentially overwriting adjacent memory. This can lead to various security vulnerabilities, including remote code execution.

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

Remote code execution refers to the ability of an attacker to execute arbitrary code on a target system from a remote location. In the context of this vulnerability, it means that an attacker can execute malicious code on the affected system by exploiting the buffer overflow issue.

To update the PHP package, you can use the package manager of your AlmaLinux system. Run the appropriate command to update the package, such as 'yum update php'. Alternatively, you can download the updated package from the official AlmaLinux repositories and install it manually.

Related vulnerabilities

Recent vulnerabilities recorded for php.

How To Fix

Minimum fixed version

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