CVE-2020-13445 Liferay Portal and Liferay DXP Vulnerable to Arbitrary Code Execution

High 8.8 Published Updated

Authenticated attackers can execute arbitrary code by injecting malicious FreeMarker or Velocity templates into the Liferay Portal template API.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-13445?

CVE-2020-13445 is a high-severity code injection vulnerability in Liferay Liferay Portal, published on 10 Jun 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In Liferay Portal before 7.3.2 and Liferay DXP 7.0 before fix pack 92, 7.1 before fix pack 18, and 7.2 before fix pack 6, the template API does not restrict user access to sensitive objects, which allows remote authenticated users to execute arbitrary code via crafted FreeMarker and Velocity templates.

Weakness: CWE-862, CWE-74

Which versions are affected by CVE-2020-13445?

8 open source packages ship an affected version, including com.liferay.portal:release.dxp.bom and com.liferay.portal:release.portal.bom. It affects 1 product.

PackageAffectedFixed in
com.liferay.portal:release.dxp.bom MavenFrom 7.0.07.0.10.fp92
com.liferay.portal:release.dxp.bom MavenFrom 7.0.07.0.10.fp92
com.liferay.portal:release.dxp.bom MavenFrom 7.1.07.1.10.fp18
com.liferay.portal:release.dxp.bom MavenFrom 7.1.07.1.10.fp18
com.liferay.portal:release.dxp.bom MavenFrom 7.2.07.2.10.fp6
com.liferay.portal:release.dxp.bom MavenFrom 7.2.07.2.10.fp6
2 more packages
com.liferay.portal:release.portal.bom MavenAll versions7.3.2
com.liferay.portal:release.portal.bom MavenAll versions7.3.2

Products include Liferay Liferay Portal.

How do I fix CVE-2020-13445?

Upgrade com.liferay.portal:release.dxp.bom to a fixed version for your release line: 7.0.10.fp92, 7.1.10.fp18 or 7.2.10.fp6.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-13445 being exploited?

There is no known exploitation of CVE-2020-13445 in the wild and no public exploit code.

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-v377-8f8f-532h.

Is CVE-2020-13445 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free