A critical unauthenticated remote code execution vulnerability was found all recent versions of Apache Tapestry. The affected versions include 5.4.5, 5.5.0, 5.6.2 and 5.7.0. The vulnerability I have found is a bypass of the fix for CVE-2019-0195. Recap: Before the fix of CVE-2019-0195 it was possible to download arbitrary class files from the classpath by providing a crafted asset file URL. An attacker was able to download the file AppModule.class by requesting the URL http://localhost:8080/assets/something/services/AppModule.class which contains a HMAC secret key. The fix for that bug was a blacklist filter that checks if the URL ends with .class, .properties or .xml. Bypass: Unfortunately, the blacklist solution can simply be bypassed by appending a / at the end of the URL: http://localhost:8080/assets/something/services/AppModule.class/ The slash is stripped after the blacklist check and the file AppModule.class is loaded into the response. This class usually contains the HMAC secret key which is used to sign serialized Java objects. With the knowledge of that key an attacker can sign a Java gadget chain that leads to RCE (e.g. CommonsBeanUtils1 from ysoserial). Solution for this vulnerability: * For Apache Tapestry 5.4.0 to 5.6.1, upgrade to 5.6.2 or later. * For Apache Tapestry 5.7.0, upgrade to 5.7.1 or later.
CVE-2021-27850
Score elevated to 9.8 because EPSS predicts 94% probability of exploitation within the next 30 days (top 0.1% of all CVEs). NVD baseline CVSS 9.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 94%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(high)
- EPSS
- 99.8%
- KEV
- Not listed
Published
April 15, 2021
Last Modified
November 21, 2024
Advisory Details (3)
Auto-updated Jun 13, 2026oss-security - CVE-2021-27850: Apache Tapestry: Bypass of the fix for CVE-2019-0195
http://www.openwall.com/lists/oss-security/2021/04/15/1Affected Packages
(1 across 1 ecosystem)
Maven(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| org.apache.tapestry:tapestry-core | 5.7.0 | 5.7.1 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 5× in last 7d / 11× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-18 21:59 UTCOSV refresh
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 05:18 UTCOSV refresh
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-13 08:43 UTCOSV refresh
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-26 18:14 UTCEG score recompute
Publicly available exploits
(5 references)Working exploit code is in the public domain (1 Metasploit module) (3 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCOvi3/CVE_2021_27850_POCFirst seen Jul 2, 2021
Apache Tapestry CVE-2021-27850 PoC
Open source ↗ - GitHub PoCdorkerdevil/CVE-2021-27850_POCFirst seen Jun 26, 2021
A Proof of concept for CVE-2021-27850 affecting Apache Tapestry and leading to unauthencticated remote code execution.
Open source ↗ - GitHub PoCkahla-sec/CVE-2021-27850_POCFirst seen Jun 25, 2021
A Proof of concept for CVE-2021-27850 affecting Apache Tapestry and leading to unauthencticated remote code execution.
Open source ↗ - Metasploitauxiliary/gather/cve_2021_27850_apache_tapestry_hmac_key✓ verifiedFirst seen Apr 15, 2021
Apache Tapestry HMAC secret key leak
Open source ↗ - Nucleihttp/cves/2021/CVE-2021-27850.yamlFirst seen Jan 1, 2021
Apache Tapestry - Remote Code Execution
Open source ↗
Related CVEs(same CWE)
Same CWE
10 shownCWE-502 · CWE-200
Frequently asked(5)
What is CVE-2021-27850?
When was CVE-2021-27850 disclosed?
Is CVE-2021-27850 actively exploited?
What is the CVSS score of CVE-2021-27850?
How do I remediate CVE-2021-27850?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-27850
Is Your Infrastructure Affected by CVE-2021-27850?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.