Vulnerabilities in pkg:maven/com.liferay.portal/portal-service
PACKAGECVE-2011-1571 is a MODERATE liferay portal vulnerable to arbitrary vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Portal service libraries in the Maven ecosystem. The issue involves liferay portal vulnerable to arbitrary command injection. Remediation is available by upgrading affected packages to version 6.0.6-ga.
pkg:maven/com.liferay.portal/portal-service
Vulnerability advisories affecting package pkg:maven/com.liferay.portal/portal-service. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rpj9-pc39-h8j8 | CVE-2011-1571 | MODERATE | Liferay Portal vulnerable to arbitrary command injection |
| GHSA-97gm-mcv6-cphm | CVE-2010-5327 | HIGH | Shell command injection in Liferay Portal |
CVE-2011-1571 at a Glance
How to Fix CVE-2011-1571
To remediate this vulnerability, upgrade all affected Portal service dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>portal-service</artifactId>
<version>6.0.6-ga</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.liferay.portal
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2011-1571, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.liferay.portal
Analyze the terminal output to locate any version of Portal service in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.6-ga), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.liferay.portal command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Portal service, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2011-1571 Affected Portal service Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.liferay.portal:portal-service
|
Maven |
≥ 5.0.0
< 6.0.6-ga
|
6.0.6-ga
|
References
Frequently Asked Questions
What is CVE-2011-1571?
Which Portal service versions are affected?
What version fixes CVE-2011-1571?
Is portal-service affected?
What CWE is associated with CVE-2011-1571?
How can I check Maven dependencies for CVE-2011-1571?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rpj9-pc39-h8j8",
"modified" : "2025-07-15T19:23:37Z",
"published" : "2022-05-13T01:25:11Z",
"aliases" : [ "CVE-2011-1571" ],
"summary" : "Liferay Portal vulnerable to arbitrary command injection",
"details" : "Unspecified vulnerability in the XSL Content portlet in Liferay Portal Community Edition (CE) 5.x and 6.x before 6.0.6 GA, when Apache Tomcat is used, allows remote attackers to execute arbitrary commands via unknown vectors.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay.portal:portal-service"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "6.0.6-ga"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-1571"
}, {
"type" : "WEB",
"url" : "https://github.com/liferay/liferay-portal/commit/55502ca16019e1ea1a581ee87f4f20cde638c825"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/liferay/liferay-portal"
}, {
"type" : "WEB",
"url" : "http://issues.liferay.com/browse/LPS-14726"
}, {
"type" : "WEB",
"url" : "http://issues.liferay.com/secure/ReleaseNote.jspa?version=10656&styleName=Html&projectId=10952"
}, {
"type" : "WEB",
"url" : "http://openwall.com/lists/oss-security/2011/03/29/1"
}, {
"type" : "WEB",
"url" : "http://openwall.com/lists/oss-security/2011/04/08/5"
}, {
"type" : "WEB",
"url" : "http://openwall.com/lists/oss-security/2011/04/11/9"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-15T19:23:37Z",
"nvd_published_at" : "2011-05-07T19:55:00Z"
}
}