---
title: "CVE-2026-123198: LMFDB - Server-Side Template Injection"
description: "LMFDB contains a server-side template injection caused by unsanitized Jinja expressions in render_knowl function, letting unauthenticated attackers execute OS commands via crafted request parameters."
url: https://panop.io/threat-heartbeat/CVE-2026-123198/
---

# CVE-2026-123198 LMFDB - Server-Side Template Injection

LMFDB contains a server-side template injection caused by unsanitized Jinja expressions in render\_knowl function, letting unauthenticated attackers execute OS commands via crafted request parameters.

CVSS base score 9.8 /10

Critical

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

0.84% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-123198)

## Details

Type

Server-Side Template Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Published

5 November 2026

Updated

7 November 2026

Weakness

[CWE-1336](https://cwe.mitre.org/data/definitions/1336.html)

## Vendor fix

Update to the latest version containing commit 01829bd or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-123198](https://nvd.nist.gov/vuln/detail/CVE-2026-123198)
- [https://github.com/LMFDB/lmfdb/blob/c6e5bac205aa12de9edf584a06328fefa81de0de/lmfdb/knowledge/main.py#L747](https://github.com/LMFDB/lmfdb/blob/c6e5bac205aa12de9edf584a06328fefa81de0de/lmfdb/knowledge/main.py#L747)
- [https://github.com/LMFDB/lmfdb/commit/01829bd09b692c720aad30c952758a20630573d4](https://github.com/LMFDB/lmfdb/commit/01829bd09b692c720aad30c952758a20630573d4)
- [https://github.com/LMFDB/lmfdb/pull/7231](https://github.com/LMFDB/lmfdb/pull/7231)
- [https://github.com/LMFDB/lmfdb/security/advisories/GHSA-6jw3-pmcx-2xww](https://github.com/LMFDB/lmfdb/security/advisories/GHSA-6jw3-pmcx-2xww)
- [https://www.vulncheck.com/advisories/lmfdb-before-commit-01829bd-unauthenticated-server-side-template-injection-via-knowledge-render-id](https://www.vulncheck.com/advisories/lmfdb-before-commit-01829bd-unauthenticated-server-side-template-injection-via-knowledge-render-id)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
