Moderate: php security, bug fix, and enhancement update

php Updated 02 Oct 2025

Summary

15/11/2022
N/A
Yes i
Critical
9.8

RLSA-2022:8197: Moderate: php security, bug fix, and enhancement update. Affects php versions < 0:8.0.20-3.el9. Fixed in 0: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 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 vulnerability affects the php package in Rocky Linux 9. PHP version 8.0.20 has been upgraded to address security issues, bugs, and enhancements.

Vulnerability Detail

The vulnerability identified as CVE-2021-21708 is a use-after-free vulnerability caused by the php_filter_float() function failing for integers. This vulnerability could be exploited by an attacker to execute arbitrary code or cause a denial of service. The second vulnerability, CVE-2022-31625, involves an uninitialized array in the pg_query_params() function, which could lead to remote code execution. Both vulnerabilities have a CVSS score of 9.8, indicating a critical severity level.

How To Fix

Minimum fixed version

0: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 →

Workaround

There are no mentioned workarounds for these vulnerabilities.

Conclusion

In conclusion, the php package in Rocky Linux 9 is affected by two critical vulnerabilities (CVE-2021-21708 and CVE-2022-31625). It is crucial to update the package to version 8.0.20-3.el9 to mitigate these vulnerabilities. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for php →

Share this vulnerability

FAQ

The vulnerabilities could allow an attacker to execute arbitrary code or cause a denial of service.

There are no known exploits at the time of this report.

Yes, it is recommended to restart the Apache HTTP Server after updating the php package to ensure the changes take effect.

Yes, both vulnerabilities can be exploited remotely.

For more details about the vulnerabilities, including the impact, CVSS score, and related information, refer to the CVE pages listed in the References section.

Related vulnerabilities

Recent vulnerabilities recorded for php.

How To Fix

Minimum fixed version

0: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