PT-2022-20927

CVE-2022-31781

·

Published

2022-07-13

·

Updated

2023-08-02

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Apache Tapestry versions up to 5.8.1
Description The issue is related to a Regular Expression Denial of Service (ReDoS) in the way Apache Tapestry handles Content Types. Specially crafted Content Types can cause catastrophic backtracking, taking exponential time to complete, due to the regular expression used on the parameter of the org.apache.tapestry5.http.ContentType class. This vulnerability cannot be triggered by web requests in Tapestry code alone and would only occur if non-Tapestry code passes outside input to the ContentType class constructor.
Recommendations For Apache Tapestry versions up to 5.8.1, update to version 5.8.2 to resolve the issue. As a temporary workaround, consider restricting the use of the org.apache.tapestry5.http.ContentType class to minimize the risk of exploitation, especially when handling outside input.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-227G-7CVV-6FF3
Found an issue in the description? Have something to add? Feel free to write us 👾