CVE-2022-41951 OroPlatform vulnerable to path traversal during temporary file manipulations

High 8.6 Published Updated

Attackers can exploit path traversal in temporary file handling to write arbitrary content to new files during script execution.

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-2022-41951?

CVE-2022-41951 is a high-severity path traversal vulnerability in oroinc platform, published on 27 Nov 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

OroPlatform is a PHP Business Application Platform (BAP) designed to make development of custom business applications easier and faster. Path Traversal is possible in `Oro\Bundle\GaufretteBundle\FileManager::getTemporaryFileName`. With this method, an attacker can pass the path to a non-existent file, which will allow writing the content to a new file that will be available during script execution. This vulnerability has been fixed in version 5.0.9.

Weakness: CWE-22

Which versions are affected by CVE-2022-41951?

6 open source packages ship an affected version, including oro/platform. It affects 1 product.

PackageAffectedFixed in
oro/platform PackagistFrom 4.1.0 to 4.1.13None
oro/platform PackagistFrom 4.1.0 to 4.1.13None
oro/platform PackagistFrom 4.2.0 to 4.2.10None
oro/platform PackagistFrom 4.2.0 to 4.2.10None
oro/platform PackagistFrom 5.0.05.0.8
oro/platform PackagistFrom 5.0.05.0.8

Products include Oroinc Oroplatform.

How do I fix CVE-2022-41951?

Upgrade oro/platform to 5.0.8 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-41951 being exploited?

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

Sources

Also known as GHSA-9v3j-4j64-p937.

Is CVE-2022-41951 in your software?

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

Check your SBOMs for free