CVE-2022-31781

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

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 1.50% Top 20%
Vendor Advisory openwall.com
Affected: Apache Software Foundation Apache Tapestry
Published at:
Updated at:

References

Link Tags
https://www.openwall.com/lists/oss-security/2022/07/12/3 vendor advisory mailing list

Frequently Asked Questions

What is the severity of CVE-2022-31781?
CVE-2022-31781 has been scored as a high severity vulnerability.
How to fix CVE-2022-31781?
To fix CVE-2022-31781, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-31781 being actively exploited in the wild?
It is possible that CVE-2022-31781 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-31781?
CVE-2022-31781 affects Apache Software Foundation Apache Tapestry.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.