← Vulnerability feed

Vulnerability record · CVE-2022-31781 · published 13 July 2022

CVE-2022-31781: Apache tapestry inefficient regular expression (redos) vulnerability

Apache · Tapestry

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.

7.5 CVSS 3.1 High EPSS 1.9% · top 21.0% CWE-1333 · Inefficient regular expression (ReDoS)
7.5CVSS 3.1 base score
1.9%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References
17 Jun 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-31781 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-46366Apache tapestry deserialization of untrusted data vulnerabilityApache Tapestry 3.x allows deserialization of untrusted data, leading to remote code execution. This issue is similar to but distinct from CVE-2020-1…EPSS 3.4%9.8CVE-2021-27850Apache Tapestry unauthenticated RCE via asset URL blacklist bypassApache Tapestry's fix for CVE-2019-0195 used a blacklist that blocks asset URLs ending in .class, .properties or .xml, but appending a trailing slash…EPSS 93%analysed9.8CVE-2020-17531Apache tapestry deserialization of untrusted data vulnerabilityA Java Serialization vulnerability was found in Apache Tapestry 4. Apache Tapestry 4 will attempt to deserialize the "sp" parameter even before invok…EPSS 10.0%9.8CVE-2019-10071Apache tapestry observable discrepancy vulnerabilityThe code which checks HMAC in form submissions used String.equals() for comparisons, which results in a timing side channel for the comparison of the…EPSS 8.8%9.8CVE-2019-0195Apache tapestry deserialization of untrusted data vulnerabilityManipulating classpath asset file URLs, an attacker could guess the path to a known file in the classpath and have it downloaded. If the attacker fou…EPSS 14%7.8CVE-2014-1972Apache tapestry vulnerabilityApache Tapestry before 5.3.6 relies on client-side object storage without checking whether a client has modified an object, which allows remote attac…EPSS 9.6%7.5CVE-2026-61899Apache tapestry information exposure vulnerabilityVulnerability in tapestry-core in Apache Tapestry 5.5.0+ on all platforms allows attackers to download clsspath assets via specially crafted URLs. Us…EPSS 0.71%7.5CVE-2021-30638Apache tapestry information exposure vulnerabilityInformation Exposure vulnerability in context asset handling of Apache Tapestry allows an attacker to download files inside WEB-INF if using a specia…EPSS 6.6%

Source: NIST National Vulnerability Database (record CVE-2022-31781), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.