Mathjax up to v2.7.9 was discovered to contain two Regular expression Denial of Service (ReDoS) vulnerabilities in MathJax.js via the components pattern and markdownPattern. NOTE: the vendor disputes this because the regular expressions are not applied to user input; thus, there is no risk.
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Mathjax | Mathjax | * | 2.7.9 (including) |
Mathjax | Ubuntu | bionic | * |
Mathjax | Ubuntu | devel | * |
Mathjax | Ubuntu | esm-apps/bionic | * |
Mathjax | Ubuntu | esm-apps/focal | * |
Mathjax | Ubuntu | esm-apps/xenial | * |
Mathjax | Ubuntu | esm-infra-legacy/trusty | * |
Mathjax | Ubuntu | focal | * |
Mathjax | Ubuntu | jammy | * |
Mathjax | Ubuntu | lunar | * |
Mathjax | Ubuntu | trusty | * |
Mathjax | Ubuntu | trusty/esm | * |
Mathjax | Ubuntu | xenial | * |
Attackers can create crafted inputs that
intentionally cause the regular expression to use
excessive backtracking in a way that causes the CPU
consumption to spike.