A vulnerability in PHP 8.5 versions before 8.5.13 causes incorrect URI serialization for oversized input. The Uri\Rfc3986\Uri class mishandles the output-size limit when converting a URI to a string, potentially returning truncated or invalid strings instead of errors for URIs around 2 GiB in size. This can lead to incorrect validation or routing decisions and memory exhaustion if attacker-controlled large URIs are processed.