CVE-2022-31781 Regular Expression Denial of Service (ReDoS) in ContentType.java. (GHSL-2022-022)
- Published
- Updated
- Exploit status
- No public exploit known
Description
Apache Tapestry up to version 5.8.1 is vulnerable to Regular Expression Denial of Service (ReDoS) in the way it handles Content Types. Specially crafted Content Types may cause catastrophic backtracking, taking exponential time to complete. Specifically, this is about the regular expression used on the parameter of the org.apache.tapestry5.http.ContentType class. Apache Tapestry 5.8.2 has a fix for this vulnerability. Notice the vulnerability cannot be triggered by web requests in Tapestry code alone. It would only happen if there's some non-Tapestry codepath passing some outside input to the ContentType class constructor.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache Tapestry | >= 5.8.1, < 5.8.1 | 5.8.1 | Fixed |
| apache tapestry | < 5.8.2 | 5.8.2 | Fixed |
| org.apache.tapestry/tapestry-core(Maven) | < 5.8.2; = 5.0.1; = 5.0.2; = 5.0.3 +63 more | 5.8.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.tapestry/tapestry-core(Maven) | < 5.8.2 | 5.8.2 |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.10 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.11 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.12 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.13 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.14 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.15 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.16 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.17 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.18 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.19 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.2 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.4 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.5 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.6 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.7 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.0.9 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.1.0.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.1.0.1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.1.0.2 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.1.0.3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.1.0.4 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.1.0.5 | No fix listed |
Show 44 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.tapestry/tapestry-core(Maven) | = 5.2.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.2.1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.2.2 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.2.4 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.2.5 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.2.6 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.2 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.3-rc-1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.4 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.5 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.6 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.7 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.3.8 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4-beta-22 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4-beta-26 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4-beta-3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4-beta-35 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4-beta-6 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4-rc-1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4.1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4.2 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4.3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4.4 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.4.5 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.5.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.5.0-beta-3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.6.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.6.1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.6.2 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.6.3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.6.4 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.7.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.7.1 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.7.2 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.7.3 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.8.0 | No fix listed |
| org.apache.tapestry/tapestry-core(Maven) | = 5.8.1 | No fix listed |
| Apache Tapestry | >= 5.8.1, < 5.8.1 | 5.8.1 |
| apache tapestry | < 5.8.2 | 5.8.2 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- www.openwall.com mailing-list vendor-advisory
- github.com patch
- github.com