{"cve":"CVE-2022-31781","nvd":{"published":"2022-07-13T08:15:07.213","modified":"2026-06-17T04:46:17.887","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333"],"references":["https://www.openwall.com/lists/oss-security/2022/07/12/3","https://www.openwall.com/lists/oss-security/2022/07/12/3"],"products":["apache:tapestry"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-31781","score":0.01973,"percentile":0.80443,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-227g-7cvv-6ff3","url":"https://osv.dev/vulnerability/GHSA-227g-7cvv-6ff3","summary":"Apache Tapestry 5.8.1 vulnerable to ReDoS via Content Types causing catastrophic backtracking","modified":"2024-02-16T08:05:39.337411Z","packages":[{"ecosystem":"Maven","name":"org.apache.tapestry:tapestry-core","purl":"pkg:maven/org.apache.tapestry/tapestry-core","ranges":["<5.8.2"],"fixed":["5.8.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}