CVE-2024-28243 KaTeX's maxExpand bypassed by \edef
MediumCVSS 6.5
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-katex(Debian:12) | All versions | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-1 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-10 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-2 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-3 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-4 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-5 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-6 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-7 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-8 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-9 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.4+~cs6.1.0-1 | No fix listed |
| debian/node-katex(Debian:13) | < 0.16.10+~cs6.1.0-1 | 0.16.10+~cs6.1.0-1 |
| debian/node-katex(Debian:14) | < 0.16.10+~cs6.1.0-1 | 0.16.10+~cs6.1.0-1 |
| npm katex(npm) | >= 0.12.0, < 0.16.10 | 0.16.10 |
| ubuntu/node-katex(Ubuntu:22.04) | < 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 |
| KaTeX | = >= 0.12.0, < 0.16.10 | No fix listed |
| KaTeX | >= 0.1.0, < 0.16.10 | 0.16.10 |
References
- Debian Security Tracker CVE-2024-28243 vendor-advisory
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-64fm-8hw2-v72w vendor-advisory
- https://github.com/KaTeX/KaTeX/commit/e88b4c357f978b1bca8edfe3297f0aa309bcbe34 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/github/advisory-database/pull/6777 patch
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-7572-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- github.com product