Vulnerability · Published Jul 13, 2022 · Assigned by apache

CVE-2022-31781Regular Expression Denial of Service (ReDoS) in ContentType.java. (GHSL-2022-022)

High 7.5

In plain English

A high-severity regular-expression denial of service in Apache Tapestry from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.0%top 19.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.tapestry:tapestry-core5.8.2GHSA-227g-7cvv-6ff3

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Tapestry 5.8.1 – before 5.8.1

Weakness: CWE-1333

References