What’s Vulnerable › Vulnerabilities
CVE-2024-41129: The ops library leaks secrets if `subprocess.CalledProcessError` happens with a `secret-*` CLI command
- Severity: medium (CVSS 4.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-22 · updated 2026-06-17
- Weakness: CWE-532
Description
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.
Affected products
- canonical operator: from 2.0.0, < 2.15.0
References
- https://github.com/canonical/operator/commit/fea6d2072435a62170d4c01272572f1a7e916e61
- https://github.com/canonical/operator/security/advisories/GHSA-hcmv-jmqh-fjgm
- https://github.com/canonical/operator/commit/fea6d2072435a62170d4c01272572f1a7e916e61
- https://github.com/canonical/operator/security/advisories/GHSA-hcmv-jmqh-fjgm
Get alerted when CVE-2024-41129 or the next vulnerability affects your stack