Arbitrary Code Execution Affecting org.apache.tapestry:tapestry-core package, versions [5.4.0,5.6.2)[5.7.0, 5.7.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
97.4% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHETAPESTRY-1246595
  • published15 Apr 2021
  • disclosed15 Apr 2021
  • creditUnknown

Introduced: 15 Apr 2021

CVE-2021-27850  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.apache.tapestry:tapestry-core to version 5.6.2, 5.7.1 or higher.

Overview

org.apache.tapestry:tapestry-core is a Tapestry Core package for Apache Tapestry.

Affected versions of this package are vulnerable to Arbitrary Code Execution. A critical unauthenticated remote code execution vulnerability was found in all recent versions of Apache Tapestry.

A bypass of the fix for CVE-2019-0195 exists. where the blacklist solution can simply be bypassed byappending 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 fileAppModule.class is loaded into the response.This class usually contains the HMAC secret key which is used to signserialized Java objects.With the knowledge of that key an attacker can sign a Java gadget chain that leads to RCE.

CVSS Scores

version 3.1