Vulnerability · Published Jul 22, 2024 · Assigned by GitHub_M

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

Medium 4.4

In plain English

A medium-severity sensitive data in logs in operator from canonical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.2%top 90.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIops2.15.0GHSA-hcmv-jmqh-fjgm
PyPIops2.15.0PYSEC-2026-1753

Affected products (as reported)

VendorProductVersions
canonical operator >= 2.0.0, < 2.15.0

Weakness: CWE-532 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

References