GHSA-6xch-2vxx-5pvr eZ Platform Rules to disable executable access are ignored on Platform.sh (eZ Cloud)

Not scored Published

Attackers can download executable files from the var directory on eZ Platform Cloud due to missing access control rules, potentially exposing sensitive code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-6xch-2vxx-5pvr?

GHSA-6xch-2vxx-5pvr is a vulnerability in ezsystems/ezplatform, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The recommended Apache/Nginx virtual host configuration for eZ Platform includes a rewrite rule for blocking access to executable files in the var directory. This rule does not work when using eZ Platform Cloud (i.e. running eZ Platform on the Platform.sh cloud service).

The consequence of this is that in such a setup, those executable files may be downloadable. They will not be executable, unless you have specifically configured platform.sh to allow that (which you really should not do). The severity of the download access is limited, but it's better if the platform.sh cloud setup works the same way as regular eZ Platform does. All platform.sh setups are affected.

The fix adds a rule to the .platform.app.yaml configuration file, with the same effect as the rewrite rule already mentioned. After applying the fix, any attempt to access such files will fail with Access Denied. This security update is distributed via Composer as ezsystems/ezplatform 1.7.9.1, and 1.13.5.1, and 2.5.4. This is the commit: https://github.com/ezsystems/ezplatform/commit/773dddc0d8fe4fda34d2153a401eeaa6cc30b1ff

Which versions are affected by GHSA-6xch-2vxx-5pvr?

6 open source packages ship an affected version, including ezsystems/ezplatform.

PackageAffectedFixed in
ezsystems/ezplatform PackagistFrom 1.13.01.13.5.1
ezsystems/ezplatform PackagistFrom 1.13.01.13.5.1
ezsystems/ezplatform PackagistFrom 1.7.01.7.9.1
ezsystems/ezplatform PackagistFrom 1.7.01.7.9.1
ezsystems/ezplatform PackagistFrom 2.5.02.5.4
ezsystems/ezplatform PackagistFrom 2.5.02.5.4

How do I fix GHSA-6xch-2vxx-5pvr?

Upgrade ezsystems/ezplatform to a fixed version for your release line: 1.13.5.1, 1.7.9.1 or 2.5.4.

Is GHSA-6xch-2vxx-5pvr being exploited?

There is no known exploitation of GHSA-6xch-2vxx-5pvr in the wild and no public exploit code.

Sources

Is GHSA-6xch-2vxx-5pvr in your software?

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

Check your SBOMs for free