CVE-2021-29246 Path traversal in n/a

Medium 6.7 Published Updated

An attacker with admin privileges can exploit directory traversal in BTCPay Server to upload malicious files and achieve code execution.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-29246?

CVE-2021-29246 is a medium-severity path traversal vulnerability in n/a, published on 5 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

BTCPay Server through 1.0.7.0 suffers from directory traversal, which allows an attacker with admin privileges to achieve code execution. The attacker must craft a malicious plugin file with special characters to upload the file outside of the restricted directory.

Weakness: CWE-22

Which versions are affected by CVE-2021-29246?

It affects 1 product.

Products include Btcpayserver Btcpay Server.

How do I fix CVE-2021-29246?

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

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

Sources

Also known as GHSA-6w4p-96gh-fgfp.

Is CVE-2021-29246 in your software?

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

Check your SBOMs for free