Skip to content
OpenAdvisories
Medium · 4.4 CVE-2024-41129 EUVD-2024-2360GHSA-hcmv-jmqh-fjgmPYSEC-2026-1753

The ops library leaks secrets if `subprocess.CalledProcessError` happens with a `secret-*` CLI command

Published Jul 22, 2024 · Updated Aug 2, 2024 · Assigned by GitHub_M

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

VendorProductAffectedFixed
canonical operator >= 2.0.0, < 2.15.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI ops >= 2.0.0, < 2.15.0 2.15.0 GHSA-hcmv-jmqh-fjgm

References