Skip to content

PHP file inclusion in the Sulu admin panel

High severity GitHub Reviewed Published Dec 15, 2021 in sulu/sulu • Updated Feb 1, 2023

Package

composer sulu/sulu (Composer)

Affected versions

< 1.6.44
>= 2.0.0, < 2.2.18
>= 2.3.0, < 2.3.8
= 2.4.0-RC1

Patched versions

1.6.44
2.2.18
2.3.8
2.4.0

Description

Impact

What kind of vulnerability is it? Who is impacted?

An attacker can read arbitrary local files via a PHP file include. In a default configuration this also leads to remote code execution.

  • Compromised components: Arbitrary file read on the server, (Potential) Remote code execution
  • Exploitation pre-requisite: User account on the backend

Patches

Has the problem been patched? What versions should users upgrade to?

The problem is patched with the Versions 1.6.44, 2.2.18, 2.3.8, 2.4.0

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Overwrite the service sulu_route.generator.expression_token_provider and wrap the translator before passing it to the expression language.

References

Are there any links users can visit to find out more?

Currently not.

For more information

If you have any questions or comments about this advisory:

References

@alexander-schranz alexander-schranz published to sulu/sulu Dec 15, 2021
Published by the National Vulnerability Database Dec 15, 2021
Reviewed Dec 15, 2021
Published to the GitHub Advisory Database Dec 15, 2021
Last updated Feb 1, 2023

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS score

0.295%
(70th percentile)

Weaknesses

CVE ID

CVE-2021-43836

GHSA ID

GHSA-vx6j-pjrh-vgjh

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.