CVE-2022-31246 Server-side request forgery in n/a

Medium 5.5 Published Updated

Attackers can exploit file:// URLs in payment requests to steal credentials via SMB on Windows or cause denial of service on Linux.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-31246?

CVE-2022-31246 is a medium-severity server-side request forgery vulnerability in n/a, published on 17 Jun 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

paymentrequest.py in Electrum before 4.2.2 allows a file:// URL in the r parameter of a payment request (e.g., within QR code data). On Windows, this can lead to capture of credentials over SMB. On Linux and UNIX, it can lead to a denial of service by specifying the /dev/zero filename.

Weakness: CWE-88

Which versions are affected by CVE-2022-31246?

It affects 1 product.

Products include Electrum Electrum.

How do I fix CVE-2022-31246?

Upgrade to a fixed version.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2022-31246 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-31246, GHSA-4fh4-hx35-r355, GHSA-h899-2p3m-3gm2.

Is CVE-2022-31246 in your software?

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

Check your SBOMs for free