LMFDB before commit 01829bd Unauthenticated Server-Side Template Injection via /knowledge/render/<ID>
- State
- Published
- Severity
- 9.3 Critical
- Published
- Nov 5, 2026
- Updated
- Nov 5, 2026
- Reserved
- Nov 5, 2026
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.
| Product | Versions |
|---|---|
| LMFDB LMFDB | before 01829bd09b692c720aad30c952758a20630573d4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | VulnCheck | |
| 3.1 | 9.8 Critical | VulnCheck |
Weaknesses
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
- GitHub Security Advisory (GHSA-6jw3-pmcx-2xww)Vendor Advisory
- https://github.com/LMFDB/lmfdb/pull/7231PatchIssue Tracker
- https://github.com/LMFDB/lmfdb/commit/01829bd09b692c720aad30c952758a20630573d4Patch
- https://github.com/LMFDB/lmfdb/blob/c6e5bac205aa12de9edf584a06328fefa81de0de/lmfdb/knowledge/main.py#L747Technical Details
- VulnCheck Advisory: LMFDB before commit 01829bd Unauthenticated Server-Side Template Injection via /knowledge/render/<ID>Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.