imageloadfont() accepts a crafted font file; using it with imagechar() reads out of bounds, causing a crash or information disclosure.
Affected versions
| Branch | Affected | Fixed in |
|---|---|---|
| PHP 8.1 | < 8.1.12 | 8.1.12 |
| PHP 8.0 | < 8.0.25 | 8.0.25 |
| PHP 7.4 | < 7.4.33 | 7.4.33 |
Older branches: not affected
Exploitation conditions
No special conditions are documented.
Remediation
Upgrade to 7.4.33, 8.0.25, 8.1.12 or a later release of your branch. If your branch is end-of-life, move to a supported branch. Distribution packages may carry a backported fix under an older version number; confirm with your vendor's security tracker.
A version number alone cannot prove patch status. Linux distributions and hosting providers often backport security fixes without changing the version. Check your vendor’s changelog.
Severity scores
| CVSS | Source | Vector |
|---|---|---|
| 7.1 v3.1 | NVD | — |
References
Data provenance
Secondary sources · pending primary verificationLast reviewed: Oct 24, 2026 · Source
Notes: PHP versions before 7.4 are reported as not affected.