Moderate: php security, bug fix, and enhancement update

php Updated 02 Oct 2025

Summary

15/11/2022
N/A
Yes i
Unrated
Not published

ALSA-2022:8197: Moderate: php security, bug fix, and enhancement update. Affects php versions < 8.0.20-3.el9. Fixed in 8.0.20-3.el9. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 is a core component of PHP and is responsible for executing PHP scripts. It is widely used in web development and powers numerous websites and applications.

Vulnerability Detail

This update addresses two security vulnerabilities in PHP:

  1. CVE-2021-21708: This vulnerability is a use-after-free issue caused by the php_filter_float() function failing for integers. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial of service.

  2. CVE-2022-31625: This vulnerability is an uninitialized array issue in the pg_query_params() function, which could lead to remote code execution. An attacker could exploit this vulnerability to execute arbitrary code on the server.

These vulnerabilities pose a moderate risk and could potentially allow an attacker to execute arbitrary code or cause a denial of service.

How To Fix

Minimum fixed version

8.0.20-3.el9

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 →

Conclusion

In conclusion, this update addresses two security vulnerabilities in PHP that could allow an attacker to execute arbitrary code or cause a denial of service. It is recommended to update the php package to the latest version to mitigate these vulnerabilities. For further support on 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.

The php package is a core component of PHP and is responsible for executing PHP scripts.

CVE-2021-21708 is a use-after-free vulnerability in PHP that could allow an attacker to execute arbitrary code or cause a denial of service.

CVE-2022-31625 is an uninitialized array vulnerability in PHP that could lead to remote code execution.

To fix these vulnerabilities, update the php package to version 8.0.20-3.el9 or later.

Related vulnerabilities

Recent vulnerabilities recorded for php.

How To Fix

Minimum fixed version

8.0.20-3.el9

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