← Back to CVE Explorer

CVE-2025-62796

Full vulnerability record from the local CVENow database.

Description

PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Versions 1.7.7 through 2.0.1 allow persistent HTML injection via the unsanitized attachment filename (attachment_name) when attachments are enabled. An attacker can modify attachment_name before encryption so that, after decryption, arbitrary HTML is inserted unescaped into the page near the file size hint, enabling redirect (e.g., meta refresh) and site defacement and related phishing attacks. Script execution is normally blocked by the recommended Content Security Policy, limiting confidentiality impact. The issue was introduced in 1.7.7 and fixed in 2.0.2. Update to 2.0.2 or later. Workarounds include enforcing the recommended CSP, deploying PrivateBin on a separate domain, or disabling attachments.

Severity
MEDIUM
CVSS score
5.8 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2025-10-28 21:15:40.760000
Last modified
2026-10-19 13:10:00.110000
View original CVE JSON
{
  "id": "CVE-2025-62796",
  "sourceIdentifier": "[email protected]",
  "published": "2025-10-28T21:15:40.760",
  "lastModified": "2026-10-19T13:10:00.110",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Versions 1.7.7 through 2.0.1 allow persistent HTML injection via the unsanitized attachment filename (attachment_name) when attachments are enabled. An attacker can modify attachment_name before encryption so that, after decryption, arbitrary HTML is inserted unescaped into the page near the file size hint, enabling redirect (e.g., meta refresh) and site defacement and related phishing attacks. Script execution is normally blocked by the recommended Content Security Policy, limiting confidentiality impact. The issue was introduced in 1.7.7 and fixed in 2.0.2. Update to 2.0.2 or later. Workarounds include enforcing the recommended CSP, deploying PrivateBin on a separate domain, or disabling attachments."
    },
    {
      "lang": "es",
      "value": "PrivateBin es un pastebin en línea donde el servidor no tiene conocimiento de los datos pegados. Las versiones 1.7.7 a 2.0.1 permiten la inyección HTML persistente a través del nombre de archivo adjunto no saneado (attachment_name) cuando los archivos adjuntos están habilitados. Un atacante puede modificar attachment_name antes del cifrado para que, después del descifrado, se inserte HTML arbitrario sin escapar en la página cerca de la indicación del tamaño del archivo, lo que permite la redirección (por ejemplo, meta refresh) y la desfiguración del sitio y ataques de phishing relacionados. La ejecución de scripts normalmente está bloqueada por la Política de Seguridad de Contenido recomendada, lo que limita el impacto en la confidencialidad. El problema se introdujo en la versión 1.7.7 y se corrigió en la 2.0.2. Actualice a la versión 2.0.2 o posterior. Las soluciones alternativas incluyen aplicar la CSP recomendada, desplegar PrivateBin en un dominio separado o deshabilitar los archivos adjuntos."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "PrivateBin",
          "product": "PrivateBin",
          "versions": [
            {
              "version": ">= 1.7.7, < 2.0.2",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N",
          "baseScore": 5.8,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "CHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 1.4
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2025-10-29T13:30:18.884080Z",
          "id": "CVE-2025-62796",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-79"
        },
        {
          "lang": "en",
          "value": "CWE-80"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/PrivateBin/PrivateBin/pull/1550",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-867c-p784-5q6g",
      "source": "[email protected]"
    }
  ]
}