# CVE-2026-86540: knowns before 0.30.0 Arbitrary Code Execution via LSP Binary

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-09-07T23:03:18.654Z
- Modified: 2026-10-06T19:15:03.494Z
- Also known as: GHSA-mc52-mwq4-vfx3
- Weaknesses: CWE-78, CWE-94, CWE-427, CWE-829
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

knowns versions before 0.30.0 fail to validate the settings.lsp.languages binary field in project configuration files, allowing attackers to execute arbitrary binaries by crafting a malicious .knowns/config.json file. When a repository with a crafted configuration is opened, the unvalidated binary path is executed twice under the user's account without any verification.

(As written by CVE List.)

## Affected

- knowns-dev knowns: before 0.30.0 (not affected: 0.30.0)
- knowns (npm): before 0.30.0

## Every score

- VulnCheck: CVSS:4.0 8.5 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/knowns-dev/knowns/security/advisories/GHSA-mc52-mwq4-vfx3> (vendor-advisory, web)
- <https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/lsp/detect.go#L128-L157> (technical-description, web)
- <https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/models/config.go#L205-L216> (technical-description, web)
- <https://github.com/knowns-dev/knowns/commit/d3989829fb5095666d23d005b2f78a082832a396> (patch, web)
- <https://github.com/knowns-dev/knowns/releases/tag/v0.30.0> (release-notes, web)
- <https://www.vulncheck.com/advisories/knowns-before-0.30.0-arbitrary-code-execution-via-lsp-binary> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-86540> (advisory)
- <https://github.com/knowns-dev/knowns> (package)

## Sources

- CVE List: [CVE-2026-86540](https://www.cve.org/CVERecord?id=CVE-2026-86540), CVE Terms of Use, modified 2026-09-24
- GitHub Advisory Database: [GHSA-mc52-mwq4-vfx3](https://github.com/advisories/GHSA-mc52-mwq4-vfx3), CC-BY-4.0, modified 2026-10-06
- NVD: [CVE-2026-86540](https://nvd.nist.gov/vuln/detail/CVE-2026-86540), Public domain, modified 2026-09-08

---

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