PHP: Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding
In PHP versions 8.4.* before 8.4.21 and 8.5.* before 8.5.6, when an encoding name containing an embedded NUL byte is passed to mb_convert_encoding() or related mbstring functions, the code incorrectly assumes that when strncasecmp() returns 0 it means the strings have the same length. This can lead to out-of-bounds read of global memory, potentially causing a crash or information disclosure or crash. Affected functions include mb_convert_encoding(), mb_detect_encoding(), mb_convert_variables(), and mb_detect_order(), as well as the mbstring.detect_order and mbstring.http_output INI settings.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| PHP (Interpreter) | PHP | >= 8.4.0, < 8.4.21, >= 8.5.0, < 8.5.6 ext-mbstring: < 8.4.21; < 8.5.6 |
8.4.21, 8.5.6 |
Verweise
- CVSS-Vektor
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N- Schwäche (CWE)
CWE-125- Plattform
- PHP
- Paket
PHP- Veröffentlicht
- 07.05.2026
- Aktualisiert
- 03.11.2026 19:17
Quellen und Lizenzen
PHP Security Advisories - GHSA-74r9-qxhc-fx53 - CVE Terms of Use
Copyright 1999-2026 The MITRE Corporation
Copyright 1999-2026 The MITRE Corporation
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
https://www.cve.org/Legal/TermsOfUseSchwachstellenhistorie: PHP
Alle veröffentlichten Schwachstellen dieses Pakets (PHP (Interpreter)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 78
- Erste → letzte
- 02.2023 11.2026
- Ohne Fix
- 1
- In Angriffen ausgenutzt
- 3
Verteilung nach Schweregrad
- Kritisch 11
- Hoch 16
- Mittel 42
- Niedrig 9
Veröffentlichungen pro Jahr
- 2023: 5
- 2024: 17
- 2025: 12
- 2026: 44
-
PHP: Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.