Vulnérabilité dans github.com/canonical/pebble (CVE-2024-3250)
Résumé
Vulnérabilité dans github.com/canonical/pebble (CVE-2024-3250). Des informations confidentielles peuvent être exposées. Exploitable via GET /v1/files. Atténuation : mise à jour vers 1.1.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
Note: "Pebble" here refers to Canonical's service manager, not the Let's Encrypt ACME test server.
The API behind pebble pull, used to read files from the workload container by Juju charms, allows access from any user, instead of just admin. In Juju Kubernetes sidecar charms, Pebble and the charm run as root, so they have full access. But if another restricted unix user gains local access to the container host, they could hit the Pebble GET /v1/files?action=read API and would be allowed to read any file in the workload container, for example an ssh key or database password or other sensitive information. If there are ssh keys they could then potentially ssh into the workload, or if something like a database password they could log into the database.
Note that this requires local user access to the host machine. It seems unlikely that an attacker could gain this level of access in a Juju Kubernetes context, but if someone did and there's sensitive information in files accessible to Pebble, the consequences are bad.
To reproduce the issue, go back to the Pebble version in Juju 2.9 (5842ea68c9c7), do pebble run as root in one terminal window, then in another terminal window, as a regular user, use the pebble pull CLI. You will be able to pull any file as a regular user.
Patches
The original patch is commit https://github.com/canonical/pebble/commit/cd326225b9b0be067da7d88…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
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-2024-3250 a été découverte dans github.com/canonical/pebble.
Des attaquants peuvent cibler un point d'entrée spécifique comme GET /v1/files à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées.
Action : mettez à jour github.com/canonical/pebble vers 1.1.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/canonical/pebble CVE-2024-3250 » sur le site de l'éditeur.
CVE-2024-3250 (github.com/canonical/pebble) — CWE-862
Vecteur d'attaque : local / sans interaction utilisateur
Surface d'attaque : GET /v1/files
Correctif : 1.1.1 — 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-862) affecte github.com/canonical/pebble. Les attaquants atteignent le code vulnérable via GET /v1/files.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/canonical/pebble. Surface d'attaque : GET /v1/files.
Gravité : ?. Des informations confidentielles peuvent être exposées.
Mettre à jour vers 1.1.1.
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 webserver/proxy/WAF des requêtes anormales vers GET /v1/files (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/canonical/pebble.
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 'github.com/canonical/pebble' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/canonical/pebbleを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'GET /v1/files' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
GET /v1/filesへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade github.com/canonical/pebble to 1.1.1ステージング環境で 1.1.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against GET /v1/files on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web cve.org