CVE-2022-4140 Welcart e-Commerce < 2.8.5 - Unauthenticated Arbitrary File Access

High 7.5 Published Updated

Unauthenticated attackers can read arbitrary files on the server due to lack of input validation in the Welcart e-Commerce plugin.

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

What is CVE-2022-4140?

CVE-2022-4140 is a high-severity path traversal vulnerability in Unknown Welcart e-Commerce, published on 2 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Welcart e-Commerce WordPress plugin before 2.8.5 does not validate user input before using it to output the content of a file, which could allow unauthenticated attacker to read arbitrary files on the server

Which versions are affected by CVE-2022-4140?

It affects 1 product.

Products include Welcart Welcart E-Commerce.

How do I fix CVE-2022-4140?

No fix has been published for CVE-2022-4140 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2022-4140 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4140 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-6c75-m6fq-9mh7.

Is CVE-2022-4140 in your software?

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

Check your SBOMs for free