CVE-2023-40498 LG Simple Editor cp Command Directory Traversal Remote Code Execution Vulnerability

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code with SYSTEM privileges via directory traversal in the cp command without authentication.

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-2023-40498?

CVE-2023-40498 is a critical path traversal vulnerability in LG Simple Editor, published on 3 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

LG Simple Editor cp Command Directory Traversal Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of LG Simple Editor. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the cp command implemented in the makeDetailContent method. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code in the context of SYSTEM. . Was ZDI-CAN-19925.

Weakness: CWE-22

Which versions are affected by CVE-2023-40498?

It affects 1 product.

Products include Lg Simple Editor.

How do I fix CVE-2023-40498?

No fix has been published for CVE-2023-40498 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-2023-40498 being exploited?

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

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-2qqh-h8cp-4jfx.

Is CVE-2023-40498 in your software?

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

Check your SBOMs for free