{"id":"CVE-2024-41129","published":"2024-07-22T14:20:08Z","modified":"2024-08-02T04:46:52Z","title":"The ops library leaks secrets if `subprocess.CalledProcessError` happens with a `secret-*` CLI command","vendor":"canonical","product":"operator","tier":"tail","description":{"text":"The ops library is a Python framework for developing and testing Kubernetes and machine charms. The issue here is that ops passes the secret content as one of the args via CLI. This issue may affect any of the charms that are using: Juju (>=3.0), Juju secrets and not correctly capturing and processing `subprocess.CalledProcessError`. This vulnerability is fixed in 2.15.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00198,"percentile":0.09822,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/canonical/operator/security/advisories/GHSA-hcmv-jmqh-fjgm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/canonical/operator/commit/fea6d2072435a62170d4c01272572f1a7e916e61","tags":["x_refsource_MISC"]}],"priority":{"score":5.0,"factors":[{"name":"EPSS percentile","points":1.96},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"canonical","affectedVersions":[{"vendor":"canonical","product":"operator","versions":[">= 2.0.0, < 2.15.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-22T19:43:49.019092Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ops","vulnerableRanges":[">=2.0.0, <2.15.0"],"patched":["2.15.0"],"from":["GHSA-hcmv-jmqh-fjgm","PYSEC-2026-1753"],"provenance":"source"}],"summary":{"text":"The Canonical operator Python framework, used for developing Kubernetes and machine charms, passes secret content as a command-line argument to its secret-* CLI calls, so secret values can be exposed when a subprocess.CalledProcessError is raised and not handled correctly. An attacker with local access and privileges on the system (high privileges required, no user interaction) could obtain the secrets for charms using Juju secrets with Juju 3.0 or later.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:48Z"},"euvd":{"id":"EUVD-2024-2360","exploited":false,"provenance":"source"}}