Skip to content

← Actionable
Unratedamended

Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()

CVE-2026-7259GHSA-wm6j-2649-pv75

What to do

Vendor fix available. Upgrade each affected package to the fixed version on its release line (php 8.5.6, 8.4.21, 8.3.31, 8.2.31; libphp 8.5.6, 8.4.21, 8.3.31, 8.2.31; php-min 8.5.6, 8.4.21, 8.3.31, 8.2.31), redeploy, then verify what is actually installed.

This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.

Affected packages

  • Bitnami php

    Affected
    >= 8.2.0, < 8.2.31>= 8.3.0, < 8.3.31>= 8.4.0, < 8.4.21>= 8.5.0, < 8.5.6
    Fixed in
    8.2.31, 8.5.6, 8.4.21, 8.3.31
  • Bitnami libphp

    Affected
    >= 8.2.0, < 8.2.31>= 8.3.0, < 8.3.31>= 8.4.0, < 8.4.21>= 8.5.0, < 8.5.6
    Fixed in
    8.2.31, 8.5.6, 8.4.21, 8.3.31
  • Bitnami php-min

    Affected
    >= 8.2.0, < 8.2.31>= 8.3.0, < 8.3.31>= 8.4.0, < 8.4.21>= 8.5.0, < 8.5.6
    Fixed in
    8.2.31, 8.5.6, 8.4.21, 8.3.31

Sources

Severity and exploitation
Exploitation
No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
CVSS
not scored
EPSS
  • CVE-2026-7259: 0.19% estimated exploitation activity in the next 30 days; percentile 8.28 (FIRST EPSS, 2026-11-12). This is a model estimate, not proof of exploitation or customer exposure.
Source description

As published by the source; long descriptions are shortened.

In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().

Dates and revisions
Published by the source
Last modified by the source
Source last checked
  1. Revision 3 · amended ·

    Amended from osv record BIT-php-min-2026-7259

  2. Revision 2 · amended ·

    Amended from osv record BIT-php-2026-7259

  3. Revision 1 · created ·

    Published from osv record BIT-libphp-2026-7259

Agent brief

Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.

# Patch Next advisory brief: CVE-2026-7259

Advisory: Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()
IDs: CVE-2026-7259, GHSA-wm6j-2649-pv75
Record: https://patchnext.com/advisories/cve-2026-7259 (revision 3, source checked 11 Nov 2026, 07:55 UTC)
Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected.
Severity: Unrated
Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV.
Vendor response: Vendor fix available; fixed versions by package: php 8.5.6, 8.4.21, 8.3.31, 8.2.31; libphp 8.5.6, 8.4.21, 8.3.31, 8.2.31; php-min 8.5.6, 8.4.21, 8.3.31, 8.2.31. A vendor fix does not mean a deployment is fixed.

## Affected components
- Bitnami php: affected >= 8.2.0, < 8.2.31; >= 8.3.0, < 8.3.31; >= 8.4.0, < 8.4.21; >= 8.5.0, < 8.5.6; fixed in 8.2.31, 8.5.6, 8.4.21, 8.3.31
- Bitnami libphp: affected >= 8.2.0, < 8.2.31; >= 8.3.0, < 8.3.31; >= 8.4.0, < 8.4.21; >= 8.5.0, < 8.5.6; fixed in 8.2.31, 8.5.6, 8.4.21, 8.3.31
- Bitnami php-min: affected >= 8.2.0, < 8.2.31; >= 8.3.0, < 8.3.31; >= 8.4.0, < 8.4.21; >= 8.5.0, < 8.5.6; fixed in 8.2.31, 8.5.6, 8.4.21, 8.3.31

## Suggested inspection (read-only)
- Bitnami php: check the installed version with your package manager.
- Bitnami libphp: check the installed version with your package manager.
- Bitnami php-min: check the installed version with your package manager.

## Supported action
Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version.

## Required regression checks
- Run the test suite and a production build.
- Exercise the features that depend on php, libphp, php-min.
- Repeat the inspection and confirm that only fixed versions remain installed.

## Rollback considerations
- Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward.

## Unresolved questions
- Which deployments run an affected version?
- Exploitation status can change. Check again before lowering the priority.
- Mark the work resolved only after the fixed version is verified in production.

## Sources
- Verified: https://osv.dev/vulnerability/BIT-libphp-2026-7259 (OSV record BIT-libphp-2026-7259 lists affected ranges: Bitnami libphp >=8.2.0 =8.3.0 =8.4.0 =8.5.0 <8.5.6 (fixed))
- Verified: https://osv.dev/vulnerability/BIT-php-2026-7259 (OSV record BIT-php-2026-7259 lists affected ranges: Bitnami php >=8.2.0 =8.3.0 =8.4.0 =8.5.0 <8.5.6 (fixed))
- Verified: https://osv.dev/vulnerability/BIT-php-min-2026-7259 (OSV record BIT-php-min-2026-7259 lists affected ranges: Bitnami php-min >=8.2.0 =8.3.0 =8.4.0 =8.5.0 <8.5.6 (fixed))

Commands are suggestions: review each one before running it.

Loading voting…