CVE-2026-123198: LMFDB before commit 01829bd Unauthenticated Server-Side Template Injection via /knowledge/render/<ID>
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-30 07:36 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by VulnCheck, published 2026-11-05).
Weakness: Improper Neutralization of Special Elements Used in a Template Engine
How it can be exploited
Exploitable over the network with low attack complexity with no special attack requirements needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. 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 assessment (SSVC): CISA assesses that a public proof of concept exists. Automatable: yes. Technical impact: total.
Public exploit evidence (Exploit Observer)
Exploit Observer found 5 code repositories naming this CVE.
Code repositories that name a CVE are often scanners, copies or fakes, and some are malware. Read the code before running anything.
See all 7 references on Exploit Observer
Live scores
- EPSS
- 0.008
low predicted chance of attack - VEDAS
- 0.985
strong exploit evidence - On CISA KEV
- Not listed
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| LMFDB | before 01829bd09b69 (git commit) | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
Vendor guidance:
- GitHub Security Advisory (GHSA-6jw3-pmcx-2xww) (vendor-advisory)
- https://github.com/LMFDB/lmfdb/pull/7231 (patch, issue-tracking)
- https://github.com/LMFDB/lmfdb/commit/01829bd09b692c720aad30c952758a20630573d4 (patch)
How to detect it
Nuclei template (active check)
LMFDB - Server-Side Template Injection
LMFDB before commit 01829bd renders the `content` query parameter and other request-supplied values of the /knowledge/render/<ID> endpoint as Jinja template source. Unauthenticated attackers can inject Jinja expressions to reach Python builtins and execute operating system commands. This template evaluates an inert string concatenation expression and matches the evaluated result.
Name and description quoted from the template, written by VEDAS.
The template sends 1 request (GET /knowledge/render/nf.degree?content=%7B%7B%20%27vedas%27%20~%20%27z...); it decides using status, word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2026-123198.yamlShow the template (41 lines)
id: CVE-2026-123198
info:
name: "LMFDB - Server-Side Template Injection"
author: vedas-arpsyndicate
severity: critical
description: |
LMFDB before commit 01829bd renders the `content` query parameter and other request-supplied values of the
/knowledge/render/<ID> endpoint as Jinja template source. Unauthenticated attackers can inject Jinja expressions
to reach Python builtins and execute operating system commands. This template evaluates an inert string
concatenation expression and matches the evaluated result.
reference:
- https://www.exploit.observer/?keyword=CVE-2026-123198&match=exact
- https://subdomain.center/?engine=ammonites&keyword=lmfdb&match=exact
classification:
cve-id: CVE-2026-123198
cwe-id: CWE-1336
metadata:
verified: false
tags: cve,cve2026,lmfdb,ssti,rce
http:
- method: GET
path:
- "{{BaseURL}}/knowledge/render/nf.degree?content=%7B%7B%20%27vedas%27%20~%20%27zqxjssti%27%20%7D%7D"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "vedaszqxjssti"
- type: word
part: body
words:
- "' ~ '"
negative: true
- type: status
status:
- 200
CVE-2026-123198.yaml on GitHub
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2026-123198 LMFDB - Server-Side Template Injection. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2026-123198 LMFDB - Server-Side Template Injection"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/knowledge/render/"; nocase; content:"content="; nocase; fast_pattern; pcre:"/content=[^&]*(\x7b|%7b)(\x7b|%7b|%25|%23)/i"; classtype:web-application-attack; reference:cve,CVE-2026-123198; reference:url,https://www.exploit.observer/?keyword=CVE-2026-123198&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=lmfdb&match=exact; sid:1109601; rev:1;)
CVE-2026-123198.rules on GitHub
References
Vendor advisories and patches
- GitHub Security Advisory (GHSA-6jw3-pmcx-2xww) (vendor-advisory)
- https://github.com/LMFDB/lmfdb/pull/7231 (patch, issue-tracking)
- https://github.com/LMFDB/lmfdb/commit/01829bd09b692c720aad30c952758a20630573d4 (patch)
Technical analysis and advisories
- https://github.com/LMFDB/lmfdb/blob/c6e5bac205aa12de9edf584a06328fefa81de0de/lmfdb/knowledge/main.py#L747 (technical-description)
- VulnCheck Advisory: LMFDB before commit 01829bd Unauthenticated Server-Side Template Injection via /knowledge/render/<ID> (third-party-advisory)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.
Supporting partners