Null Byte Interaction Error (Poison Null Byte) Affecting php:8.2/php-gmp package, versions <0:8.2.25-1.module+el9.5.0+22477+5fdac06d


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.16% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL9-PHP-10119330
  • published13 May 2025
  • disclosed12 Apr 2024

Introduced: 12 Apr 2024

CVE-2024-3096  (opens in a new tab)
CWE-626  (opens in a new tab)

How to fix?

Upgrade RHEL:9 php:8.2/php-gmp to version 0:8.2.25-1.module+el9.5.0+22477+5fdac06d or higher.
This issue was patched in RHSA-2024:10949.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php:8.2/php-gmp package and not the php:8.2/php-gmp package as distributed by RHEL. See How to fix? for RHEL:9 relevant fixed versions and status.

In PHP  version 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, if a password stored with password_hash() starts with a null byte (\x00), testing a blank string as the password via password_verify() will incorrectly return true.

CVSS Base Scores

version 3.1