Liferay Portal
Liferay Portal Deserialization of Untrusted Data Vulnerability
Deserialization of Untrusted Data in Liferay Portal prior to 7.2.1 CE GA2 allows remote attackers to execute arbitrary code via JSON web services (JSONWS).
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 4.35.3
Fixed in 4.35.3
from GitHub Security Advisory GHSA-w7pm-cc4v-f3g8
Mitigation
Upgrade com.liferay.portal:com.liferay.portal.kernel to 4.35.3 or later.
Timeline
Days relative to CVE publicationFirst public PoC 5.3 days after publication; added to CISA KEV 1.6 years after publication. First PoC: mzer0one/CVE-2020-7961-POC (created 26 Mar 2020, found by us: backfilled).
PoC repositories
Found on GitHub.7 PoCs · 4 pending · 3 informational · 3 suspicious or fake
PoCs 7
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| mzer0one/CVE-2020-7961-POC | 26 Mar 2020 +5.3 d | 117 | PoC |
| thelostworldFree/CVE-2020-7961-payloads | 23 May 2020 +64 d | 5 | PoC |
| ShutdownRepo/CVE-2020-7961 | 14 Jan 2021 +300 d | 18 | PoC |
| CrackerCat/CVE-2020-7961-Mass | 9 Apr 2021 +1.1 y | 2 | PoC |
| mathiznogoud/Liferay-RCE | 9 Apr 2021 +1.1 y | 5 | PoC |
| Alaa-abdulridha/POC-CVE-2020-7961-Token-iterate | 26 May 2021 +1.2 y | 0 | PoC |
| neverhavenamee/CVE-2020-7961 | 4 Sep 2025 +5.5 y | 0 | PoC via PoC Index |
Pending 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Udyz/CVE-2020-7961-Mass | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| shacojx/GLiferay-CVE-2020-7961-golang | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| shacojx/LifeRCEJsonWSTool-POC-CVE-2020-7961-Gui | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| shacojx/POC-CVE-2020-7961-Token-iterate | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Alaa-abdulridha/GLiferay-CVE-2020-7961-golang | 27 May 2021 +1.2 y | 0 | Informational · detection |
| pashayogi/CVE-2020-7961-Mass | 22 May 2022 +2.2 y | 0 | Informational · write-up |
| manrop2702/CVE-2020-7961 | 14 Mar 2024 +4.0 y | 0 | Informational · write-up |
Suspicious or fake 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| papa-anniekey/CustomSignatures | 18 Jan 2018 −2.2 y | 1 | Fake
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| mathiznogoud/Liferay-Deserialize-POC | 27 Mar 2020 +6.8 d | 0 | Fake |
| dinosn/liferay-ga4-rce-research | 28 Jul 2026 +6.4 y | 7 | Suspicious · score 65
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Liferay Portal - Java Unmarshalling via JSONWS RCE (Metasploit) | 16 Apr 2020 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Liferay Portal Java Unmarshalling via JSONWS RCE (exploit/multi/http/liferay_java_unmarshalling) | 14 Apr 2020 | 14 Nov 2026 |
| nuclei template | nuclei template: Liferay Portal Unauthenticated < 7.2.1 CE GA2 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 7 PoC reposPOST /api/jsonws/invoke
- Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8Accept: application/json, text/javascript, */*Accept-Language: en-Us,en;q=0.5Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2Cache-Control: no-cacheCmd2: lollulzkidCmd2: {var}Cmd2: whoamiCmd2: pwd & echo "Hacked... Fuck fuck"Dnt: 1Pragma: no-cacheUpgrade-Insecure-Requests: 1X-Requested-With: XMLHttpRequest- Body markers
formDate=1585475176055p_auth=addressId=12addressId=1cmd={"/expandocolumn/update-column":columnId=123name=asdasdtype=1defaultData:com.mchange.v2.c3p0.WrapperConnectionPoolDataSource=p_auth=AdsXeCqztableId%3d1=formDate=1526638413000name=Ap_auth=jI2WsgGrformDate=1584716289678defaultData:{var}=cmd={"/expandocolumn/add-column":tableId=1name=2type=3p_auth=2piAnQdmformDate=1756967152372inapplication/x-www-form-urlencoded- Ports
- 8080, 8082
- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0Mozilla/5.0 (Window NT 10.0; Win64; x64- Seen in
- 3 repos: Alaa-abdulridha/POC-CVE-2020-7961-Token-iterate, CrackerCat/CVE-2020-7961-Mass, neverhavenamee/CVE-2020-7961
- Evidence
- Alaa-abdulridha/POC-CVE-2020-7961-Token-iterate/poc.py:39 CrackerCat/CVE-2020-7961-Mass/rce.py:23 CrackerCat/CVE-2020-7961-Mass/rce.py:32 CrackerCat/CVE-2020-7961-Mass/rce.py:43 CrackerCat/CVE-2020-7961-Mass/shell.py:23 CrackerCat/CVE-2020-7961-Mass/shell.py:27
GET /api/jsonws/invoke
- Key headers
Accept: */*- PoC User-Agent
curl/7.64.1- Seen in
- 1 repo: CrackerCat/CVE-2020-7961-Mass
- Evidence
- CrackerCat/CVE-2020-7961-Mass/rce.py:19 CrackerCat/CVE-2020-7961-Mass/shell.py:18
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/jsonws/invoke(?:[?#].*)?$
(?i)^/api/jsonws/invoke(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080,8082] (msg:"GG PoC-Monitor CVE-2020-7961 Liferay Liferay Portal exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/jsonws/invoke"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/webp,*/*|3b|q=0.8"; nocase; http.header; content:"Accept: application/json, text/javascript, */*"; nocase; http.header; content:"Accept-Language: en-Us,en|3b|q=0.5"; nocase; http.header; content:"Accept-Language: zh-CN,zh|3b|q=0.8,zh-TW|3b|q=0.7,zh-HK|3b|q=0.5,en-US|3b|q=0.3,en|3b|q=0.2"; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"Cmd2: lollulzkid"; nocase; http.header_names; content:"Cmd2"; nocase; http.header; content:"Cmd2: whoami"; nocase; http.header; content:"Cmd2: pwd & echo |22|Hacked... Fuck fuck|22|"; nocase; http.header; content:"Dnt: 1"; nocase; http.header; content:"Pragma: no-cache"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"formDate=1585475176055"; http.request_body; content:"p_auth="; http.request_body; content:"addressId=12"; http.request_body; content:"addressId=1"; http.request_body; content:"cmd={|22|/expandocolumn/update-column|22|:"; http.request_body; content:"columnId=123"; http.request_body; content:"name=asdasd"; http.request_body; content:"type=1"; http.request_body; content:"defaultData:com.mchange.v2.c3p0.WrapperConnectionPoolDataSource="; http.request_body; content:"p_auth=AdsXeCqz"; http.request_body; content:"tableId%3d1="; http.request_body; content:"formDate=1526638413000"; http.request_body; content:"name=A"; http.request_body; content:"p_auth=jI2WsgGr"; http.request_body; content:"formDate=1584716289678"; http.request_body; content:"defaultData:"; http.request_body; content:"cmd={|22|/expandocolumn/add-column|22|:"; http.request_body; content:"tableId=1"; http.request_body; content:"name=2"; http.request_body; content:"type=3"; http.request_body; content:"p_auth=2piAnQdm"; http.request_body; content:"formDate=1756967152372"; reference:url,poc.griffinguard.io/cve/CVE-2020-7961; classtype:web-application-attack; sid:9167691; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-7961 Liferay Liferay Portal exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/jsonws/invoke"; http.header; content:"Accept: */*"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2020-7961; classtype:web-application-attack; sid:9403861; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Liferay Liferay Portal exploit attempt (CVE-2020-7961)
id: gg-pocmon-cve-2020-7961-9167691
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-7961. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-7961
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/jsonws/invoke'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.7961
title: Liferay Liferay Portal exploit attempt (CVE-2020-7961)
id: gg-pocmon-cve-2020-7961-9403861
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-7961. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-7961
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/jsonws/invoke'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.7961