Skip to content
Heist/ feed
Back to feed
Medium

PrivateBin allows shortening of URLs for other domains

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-39899
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 08:49 UTC · Revision 1

Source evidence

PrivateBin allows shortening of URLs for other domains

core-osv · Original source

Published 9 Jul 2024, 18:57 UTC

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.

osv:CVE-2024-39899
Complete source record
{
  "id": "57fcb1731fdbe98ffecf9f3d07cdd1fb4974da80eac4bbd8a8625e7f209c218f",
  "url": "https://osv.dev/vulnerability/CVE-2024-39899",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PrivateBin allows shortening of URLs for other domains",
    "summary": "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.",
    "evidence": "osv:CVE-2024-39899",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-39899",
      "aliases": [
        "CVE-2024-39899",
        "GHSA-mqqj-fx8h-437j"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/privatebin/privatebin",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b5602dd1ae0df9d84409bb5c604d9bdb50de72ac"
                },
                {
                  "fixed": "031bcef317a2cea33fa0e384b6804e8da0950793"
                },
                {
                  "fixed": "0c4e810e6728f67d678458838d8430dfba4fcca4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.5.0"
                      },
                      {
                        "fixed": "1.7.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0c4e810e6728f67d678458838d8430dfba4fcca4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.7.3",
            "1.7.2",
            "1.7.1",
            "1.7.0",
            "1.6.2",
            "1.6.1",
            "1.6.0",
            "1.5.2",
            "1.5.1",
            "1.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39899.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.271846686Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39899.json",
        "https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-mqqj-fx8h-437j",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-39899",
        "https://github.com/PrivateBin/PrivateBin/commit/0c4e810e6728f67d678458838d8430dfba4fcca4",
        "https://github.com/PrivateBin/PrivateBin/pull/1370"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-305",
          "CWE-791"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39899.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-39899",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518804,
  "published_at": "2024-07-09T18:57:50.228+00:00"
}