CVE-2024-28243
published medium CVSS 3.1 · 6.5KaTeX's maxExpand bypassed by \edef
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| KaTeX | — | KaTeX>= 0.12.0, < 0.16.10 | Affected | Not stated | GitHub_M |
| Ubuntu | jammy | fonts-katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
| Ubuntu | jammy | katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
| Ubuntu | jammy | libjs-katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
| Ubuntu | jammy | node-katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
Description
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\edef` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. This can be used as an availability attack, where e.g. a client rendering another user's KaTeX input will be unable to use the site due to memory overflow, tying up the main thread, or stack overflow. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| KaTeX | KaTeX | >= 0.12.0, < 0.16.10 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-674 CWE-674: Uncontrolled Recursion
References
3Provider assertions
3GitHub_M · cna
KaTeX's maxExpand bypassed by \edef
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f61d2127505fa613a80ec5ed5ccc7941c5f8741832609b67d4d613570adab27f
- Ingested
- 23 Sep 2026, 08:21:01 UTC
- Source record
- Official CVE record