CVE-2024-39899 PrivateBin allows shortening of URLs for other domains

Medium 5.3 Published Updated

Attackers can bypass URL shortening restrictions to shorten arbitrary external URLs, potentially facilitating phishing or spam campaigns.

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

What is CVE-2024-39899?

CVE-2024-39899 is a medium-severity vulnerability in PrivateBin, published on 9 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

PrivateBin is an online pastebin where the server has zero knowledge of pasted data. In v1.5, PrivateBin introduced the YOURLS server-side proxy. The idea was to allow using the YOURLs URL shortener without running the YOURLs instance without authentication and/or exposing the authentication token to the public, allowing anyone to shorten any URL. With the proxy mechanism, anyone can shorten any URL pointing to the configured PrivateBin instance. The vulnerability allowed other URLs to be shortened, as long as they contain the PrivateBin instance, defeating the limit imposed by the proxy. This vulnerability is fixed in 1.7.4.

Weakness: CWE-791, CWE-305

Which versions are affected by CVE-2024-39899?

2 open source packages ship an affected version, including privatebin/privatebin.

PackageAffectedFixed in
privatebin/privatebin PackagistFrom 1.5.01.7.4
privatebin/privatebin PackagistFrom 1.5.01.7.4

How do I fix CVE-2024-39899?

Upgrade privatebin/privatebin to 1.7.4 or later.

Is CVE-2024-39899 being exploited?

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

Sources

Also known as GHSA-mqqj-fx8h-437j.

Is CVE-2024-39899 in your software?

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

Check your SBOMs for free