Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/canonical/pebble
  4. ›
  5. CVE-2024-3250

CVE-2024-3250: Pebble service manager's file pull API allows access by any user

April 5, 2024

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.

References

  • github.com/advisories/GHSA-4685-2x5r-65pj
  • github.com/canonical/pebble
  • github.com/canonical/pebble/commit/4ca343d3889533143477e21c63867f2f3c3b5645
  • github.com/canonical/pebble/commit/a5f6f062a11ea156697b854264385ff7e1985fd8
  • github.com/canonical/pebble/commit/b8abd1ff0090f3e0749e81eb1fc3ea16ba95f514
  • github.com/canonical/pebble/commit/cd326225b9b0be067da7d8858e2c912078cbbbd5
  • github.com/canonical/pebble/pull/406
  • github.com/canonical/pebble/security/advisories/GHSA-4685-2x5r-65pj
  • nvd.nist.gov/vuln/detail/CVE-2024-3250
  • www.cve.org/CVERecord?id=CVE-2024-3250

Code Behaviors & Features

Detect and mitigate CVE-2024-3250 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 before 1.1.1, all versions starting from 1.2.0 before 1.4.2, all versions starting from 1.5.0 before 1.7.3, all versions starting from 1.8.0 before 1.10.2

Fixed versions

  • 1.4.2
  • 1.7.3
  • 1.10.2
  • 1.1.1

Solution

Upgrade to versions 1.1.1, 1.10.2, 1.4.2, 1.7.3 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

go/github.com/canonical/pebble/CVE-2024-3250.yml

Spotted a mistake? Edit the file on GitLab.

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

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