Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-28244— KaTeX's maxExpand bypassed by Unicode sub/superscripts

Quick assessment

Affected
KaTeX KaTeX
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

KaTeX是一个快速、易于使用的 JavaScript 库,用于在网络上进行 TeX 数学渲染。 KaTeX v0.16.10 版本之前存在安全漏洞,该漏洞源于呈现不受信任的数学表达式的 KaTeX 用户可能会遇到使用 def 或 ewcommand 的恶意输入,可能导致近乎无限的循环。

CVSS 6.5 · Medium EPSS 2.15% · P82
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-28244

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
KaTeX's maxExpand bypassed by Unicode sub/superscripts
Source: CVE Program / CVE List V5
Vulnerability 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 `\def` or `\newcommand` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. KaTeX supports an option named maxExpand which aims to prevent infinitely recursive macros from consuming all available memory and/or triggering a stack overflow error. Unfortunately, support for "Unicode (sub|super)script characters" allows an attacker to bypass this limit. Each sub/superscript group instantiated a separate Parser with its own limit on macro executions, without inheriting the current count of macro executions from its parent. This has been corrected in KaTeX v0.16.10.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
未经控制的递归
Source: CVE Program / CVE List V5
Vulnerability Title
KaTeX 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
KaTeX是一个快速、易于使用的 JavaScript 库,用于在网络上进行 TeX 数学渲染。 KaTeX v0.16.10 版本之前存在安全漏洞,该漏洞源于呈现不受信任的数学表达式的 KaTeX 用户可能会遇到使用 def 或 ewcommand 的恶意输入,可能导致近乎无限的循环。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
KaTeX KaTeX >= 0.15.4, < 0.16.10 -

II. Public POCs for CVE-2024-28244

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-28244

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-28244 (1)

Vendor Advisories for CVE-2024-28244 (1)

Same Patch Batch · KaTeX · 2024-03-25 · 4 CVEs total

CVE-2024-28243 6.5 MEDIUM KaTeX's maxExpand bypassed by \edef
CVE-2024-28245 6.3 MEDIUM KaTeX's \includegraphics does not escape filename
CVE-2024-28246 5.5 MEDIUM KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocol

IV. Related Vulnerabilities

V. Comments for CVE-2024-28244

No comments yet


Leave a comment