# CVE-2025-48887: vLLM has a Regular Expression Denial of Service (ReDoS, Exponential Complexity) Vulnerability in `pythonic_tool_parser.py`

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-28T17:49:33.000Z
- Modified: 2026-08-07T08:12:04.723Z
- Also known as: GHSA-w6q7-j642-7c25, PYSEC-2025-50
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

vLLM, an inference and serving engine for large language models (LLMs), has a Regular Expression Denial of Service (ReDoS) vulnerability in the file `vllm/entrypoints/openai/tool_parsers/pythonic_tool_parser.py` of versions 0.6.4 up to but excluding 0.9.0. The root cause is the use of a highly complex and nested regular expression for tool call detection, which can be exploited by an attacker to cause severe performance degradation or make the service unavailable. The pattern contains multiple nested quantifiers, optional groups, and inner repetitions which make it vulnerable to catastrophic backtracking. Version 0.9.0 contains a patch for the issue.

(As written by CVE List.)

## Affected

- vllm-project vllm: >= 0.6.4, < 0.9.0
- vllm (PyPI): from 0.6.4 before 0.9.0; before 4fc1bf813ad80172c1db31264beaef7d93fe0601
- vllm vllm: from 0.6.4 before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vllm-project/vllm/security/advisories/GHSA-w6q7-j642-7c25> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/vllm-project/vllm/pull/18454> (fix, issue-tracking, patch, report, web)
- <https://github.com/vllm-project/vllm/commit/4fc1bf813ad80172c1db31264beaef7d93fe0601> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48887> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-50.yaml> (web)
- <https://github.com/vllm-project/vllm> (package)
- <https://github.com/advisories/GHSA-w6q7-j642-7c25> (advisory)

## Sources

- CVE List: [CVE-2025-48887](https://www.cve.org/CVERecord?id=CVE-2025-48887), CVE Terms of Use, modified 2025-05-30
- GitHub Advisory Database: [GHSA-w6q7-j642-7c25](https://github.com/advisories/GHSA-w6q7-j642-7c25), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2025-48887](https://nvd.nist.gov/vuln/detail/CVE-2025-48887), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-50](https://osv.dev/vulnerability/PYSEC-2025-50), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2025-48887 · Whole record: https://cve.day/CVE-2025-48887.json · Rebuilt by cve.day 2026-11-25T22:58:58.601Z
