CVE-2022-31781
HIGH 7.5CVSS 3.1Apache Tapestry 5.8.1 vulnerable to ReDoS via Content Types causing catastrophic backtracking
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.
- Published
- 13 Jul 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-227g-7cvv-6ff3
- Sources
- NVDJSONOSV GHSA-227g-7cvv-6ff3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | tapestrycpe:2.3:a:apache:tapestry:*:*:*:*:*:*:*:* |
< 5.8.2 | 5.8.2 |
| OSV | Maven | org.apache.tapestry:tapestry-core | < 5.8.2 | 5.8.2 |
References
- https://www.openwall.com/lists/oss-security/2022/07/12/3 · Mailing List, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31781 · ADVISORY
- https://github.com/apache/tapestry-5/commit/3c8d6103832eec3bc06029dd2532f06df717431f · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 13 Jul 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 14 Jul 2022)