# CVE-2026-5007: kazuph mcp-docs-rag add_git_repository/add_text_file index.ts cloneRepository os command injection

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- 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): 1.26%, higher than 70% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-28T18:30:12.170Z
- Modified: 2026-06-17T10:58:14.717Z
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was identified in kazuph mcp-docs-rag up to 0.5.0. Affected is the function cloneRepository of the file src/index.ts of the component add_git_repository/add_text_file. The manipulation leads to os command injection. The attack needs to be performed locally. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.

(As written by CVE List.)

## Affected

- kazuph mcp-docs-rag: 0.1; 0.2; 0.3; 0.4; 0.5.0

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`

## References

- <https://github.com/user-attachments/files/25822451/mcp-docs-rag_bug.pdf> (exploit)
- <https://vuldb.com/vuln/353892> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/353892/cti> (permissions-required, signature)
- <https://vuldb.com/submit/779152> (third-party-advisory)
- <https://github.com/kazuph/mcp-docs-rag/issues/7> (issue-tracking)
- <https://github.com/kazuph/mcp-docs-rag/> (product)

## Sources

- CVE List: [CVE-2026-5007](https://www.cve.org/CVERecord?id=CVE-2026-5007), CVE Terms of Use, modified 2026-04-01
- NVD: [CVE-2026-5007](https://nvd.nist.gov/vuln/detail/CVE-2026-5007), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-5007 · Whole record: https://cve.day/CVE-2026-5007.json · Rebuilt by cve.day 2026-11-25T22:59:17.474Z
