Vulnérabilité dans privatebin/privatebin (CVE-2026-55891)
Résumé
Vulnérabilité dans privatebin/privatebin (CVE-2026-55891). Risque d'opérations non autorisées ou de divulgation. Exploitable via FILTER_SANITIZE_URL. Atténuation : mise à jour vers 2.0.5 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Vulnerability Details
A reflected JSON injection allows an attacker to return arbitrary data in the JSON endpoints (like /?jsonld= and /?pasteid).
Root Cause
Request::getRequestUri() sanitizes $_SERVER['REQUEST_URI'] with FILTER_SANITIZE_URL:
public function getRequestUri()
{
$uri = array_key_exists('REQUEST_URI', $_SERVER) ? filter_var($_SERVER['REQUEST_URI'], FILTER_SANITIZE_URL) : '';
return empty($uri) ? '/' : $uri;
}
FILTER_SANITIZE_URL does not strip ", ', <, > characters (per the PHP manual's allowed-character list for this filter). So the raw, attacker-controlled request URI (including query string) passes through almost unmodified into Controller::$_urlBase (set in _init()).
In Controller::_jsonld(), $_urlBase is spliced directly into one of the static .jsonld templates (js/types.jsonld, js/paste.jsonld, etc.) with a plain str_replace(), without any JSON-escaping:
$content = str_replace(
'?jsonld=',
$this->_urlBase . '?jsonld=',
file_get_contents($file)
);
...
header('Content-type: application/ld+json');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET');
echo $content;
A request URI containing a literal " therefore breaks out of the JSON string in the "@context"."pb" value and injects arbitrary attacker-controlled key/value pairs into the response body, which is served with Content-Type: application/ld+json and `Access-Control-Al…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-55891 a été découverte dans privatebin/privatebin.
Des attaquants peuvent cibler un point d'entrée spécifique comme FILTER_SANITIZE_URL à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour privatebin/privatebin vers 2.0.5 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « privatebin/privatebin CVE-2026-55891 » sur le site de l'éditeur.
CVE-2026-55891 (privatebin/privatebin) — CWE-116
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : FILTER_SANITIZE_URL / jsonld
Correctif : 2.0.5 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-116) affecte privatebin/privatebin. Les attaquants atteignent le code vulnérable via FILTER_SANITIZE_URL sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de privatebin/privatebin. Surface d'attaque : FILTER_SANITIZE_URL / jsonld.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 2.0.5.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'privatebin/privatebin' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
privatebin/privatebinを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade privatebin/privatebin to 2.0.5ステージング環境で 2.0.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web security-advisories@github.com