Security advisory Cybersecurity

PHP 8.5.7 (June 2026): a bug-fix release that also fixes two uriparser CVEs

PHP 8.5.7 was announced as a bug-fix release, but its ChangeLog lists two Low-rated uriparser CVEs in the 8.5 URI extension. 8.4.22 had none.

Published
Reading time
4 min read

Security advisory Vulnerability

Severity: Low Status: Patched
Status
Fixed upstream in PHP 8.5.7. Distribution packages carry the fixes under their own version numbers.
Affected
  • PHP 8.5 before 8.5.7
Published
Updated

What you should do

  • If you run PHP 8.5, update to the latest 8.5 release and restart PHP services.
  • Read ChangeLogs, not just the release label: a release announced as a bug-fix release can still carry CVE fixes.
  • If your code relies on URI comparison for security checks such as allow-lists, add tests for edge cases and keep the URI extension up to date.
  • For the critical October 2026 fixes, see our php2shell article.
Timeline
  1. The PHP project released PHP 8.5.7.
  2. Skyline published this summary.

On 4 June 2026 the PHP project released PHP 8.5.7 and 8.4.22. Both were announced as bug-fix releases, not security releases. The 8.5.7 ChangeLog nevertheless lists two CVE fixes in the URI extension, which PHP 8.5 introduced and which uses the bundled uriparser library. The 8.4.22 ChangeLog lists no security fixes.

At a glance

ItemDetails
ProductPHP 8.5 (URI extension, bundled uriparser)
Fixed version8.5.7 (4 June 2026)
CVEsCVE-2026-44927, CVE-2026-44928
SeverityLow (CVSS 3.1 2.9 in both CVE records)
Not affectedPHP 8.2, 8.3 and 8.4, which have no URI extension

What the vulnerabilities are

PHP 8.5 added an always-available URI extension that parses and normalises URLs according to RFC 3986 and the WHATWG URL standard. The RFC 3986 side is powered by uriparser, which php-src ships in ext/uri/uriparser. In the php-src tree, the bundled copy moved from uriparser 1.0.1 in the 8.5.6 tag to 1.0.2 in the 8.5.7 tag, picking up fixes for two upstream issues:

  • CVE-2026-44927: in uriparser before 1.0.2, pointer differences were truncated to int in several places.
  • CVE-2026-44928: in uriparser before 1.0.2, the EqualsUri family of functions can classify two different URIs as equal.

Both CVE records come from MITRE as the CNA and rate the issues CVSS 3.1 2.9 (Low), with a local attack vector and high attack complexity. The PHP project did not publish a separate GitHub security advisory or severity for them. For context, PHP's own Uri\Rfc3986\Uri::equals() method in 8.5.7 compares the serialised URI strings rather than calling uriparser's EqualsUri, according to the php-src source. Neither CVE is in CISA's Known Exploited Vulnerabilities catalog (30 October 2026 edition).

Are you affected?

Only PHP 8.5 builds older than 8.5.7 contain the older uriparser. Check your version:

php -v
php -r 'echo PHP_VERSION, PHP_EOL;'

Debian 13 (trixie) ships PHP 8.4 and has no php8.5 source package, so Debian's own PHP packages are not involved. Debian's separate uriparser library package is tracked for CVE-2026-44928 on the security tracker, where the security team marked it as a minor issue without a DSA for trixie and bookworm. If you install PHP 8.5 from another repository, a container image or a source build, the version check above is what counts.

How to update

Update PHP 8.5 to the newest release rather than to 8.5.7 itself. Later 8.5 releases contain further security fixes; as of 31 October 2026 the current version is 8.5.12. Use the channel you installed PHP from: your package repository, a rebuilt container image, or the source and Windows downloads on php.net/downloads.

Restart or reboot?

No reboot is needed. Restart PHP-FPM, Apache with mod_php, and long-running PHP workers so they load the new build.

Sources

SKYLINE Engineering

@skyline

The engineering team at SKYLINE Industrial Solutions. We publish field-tested guides drawn from real KSA and GCC deployments.

See author profile
SKYLINE engineering services

Need this implemented for you?

Reading is free — building it right takes a team. SKYLINE engineers ship Cybersecurity for Aramco vendors, banks, hospitals and government agencies across Saudi Arabia. Talk to us before you start.

Aramco Approved Contractor ISO 9001 · ISO 27001 SAMA CSF aligned NCA ECC ready 247+ KSA clients

Comments

0 total · 0 threads
Be the first to leave a comment.