# CVE-2026-129438: Incorrect RFC 3986 URI serialization for oversized input

- Severity: Medium 6.3 (CVSS:4.0, scored by php) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-19T14:44:08.118Z
- Modified: 2026-11-27T06:56:03.093Z
- Also known as: BIT-LIBPHP-2026-129438, BIT-PHP-2026-129438, BIT-PHP-MIN-2026-129438, GHSA-mg3p-mxj9-g2mm
- Weaknesses: CWE-190, CWE-252
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: php

## Description

Incorrect RFC 3986 URI serialization for oversized input.

The Uri\Rfc3986\Uri class does not correctly handle the output-size limit and errors of the uriparser library when converting a URI back to a string. For a URI whose string representation reaches approximately 2 GiB, toString(), toRawString() and other serializing operations can return a truncated or invalid string instead of an error. An application that accepts attacker-controlled URI data of that size, has enough memory to process it and trusts the result may make incorrect validation or routing decisions, and the large allocations can exhaust memory. parse_url() and Uri\WhatWg\Url are not affected.

This issue affects PHP versions 8.5.* before 8.5.13.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.5.0 before 8.5.13
- libphp (Bitnami): from 8.5.0 before 8.5.13
- php (Bitnami): from 8.5.0 before 8.5.13
- php-min (Bitnami): from 8.5.0 before 8.5.13

## Every score

- php: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-mg3p-mxj9-g2mm> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129438> (web)

## Sources

- CVE List: [CVE-2026-129438](https://www.cve.org/CVERecord?id=CVE-2026-129438), CVE Terms of Use, modified 2026-11-19
- NVD: [CVE-2026-129438](https://nvd.nist.gov/vuln/detail/CVE-2026-129438), Public domain, modified 2026-11-19
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-129438](https://osv.dev/vulnerability/BIT-LIBPHP-2026-129438), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-2026-129438](https://osv.dev/vulnerability/BIT-PHP-2026-129438), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-129438](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-129438), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-129438 · Whole record: https://cve.day/CVE-2026-129438.json · Rebuilt by cve.day 2026-11-27T07:07:39.018Z
