Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. privatebin/privatebin
  4. ›
  5. CVE-2024-39899

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

July 10, 2024

In v1.5 we 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.

Neither the confidentially of existing pastes on the server nor the configuration options including the YOURLs token are affected.

References

  • github.com/PrivateBin/PrivateBin
  • github.com/PrivateBin/PrivateBin/commit/0c4e810e6728f67d678458838d8430dfba4fcca4
  • github.com/PrivateBin/PrivateBin/pull/1370
  • github.com/PrivateBin/PrivateBin/security/advisories/GHSA-mqqj-fx8h-437j
  • github.com/advisories/GHSA-mqqj-fx8h-437j
  • nvd.nist.gov/vuln/detail/CVE-2024-39899

Code Behaviors & Features

Detect and mitigate CVE-2024-39899 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.5.0 before 1.7.4

Fixed versions

  • 1.7.4

Solution

Upgrade to version 1.7.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-305: Authentication Bypass by Primary Weakness
  • CWE-791: Incomplete Filtering of Special Elements

Source file

packagist/privatebin/privatebin/CVE-2024-39899.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.