CVE-2021-23241 Path traversal in n/a

Medium 5.3 Published Updated

Attackers can bypass authentication and read arbitrary files on MERCUSYS Mercury X18G routers via directory traversal in web URIs.

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-2021-23241?

CVE-2021-23241 is a medium-severity path traversal vulnerability in n/a, published on 7 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

MERCUSYS Mercury X18G 1.0.5 devices allow Directory Traversal via ../ in conjunction with a loginLess or login.htm URI (for authentication bypass) to the web server, as demonstrated by the /loginLess/../../etc/passwd URI.

Weakness: CWE-22

Which versions are affected by CVE-2021-23241?

It affects 1 product.

Products include Mercusys Mercury X18g Firmware.

How do I fix CVE-2021-23241?

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

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-7crf-438p-2fw4.

Is CVE-2021-23241 in your software?

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

Check your SBOMs for free