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

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-07-22T14:20:08.920Z
- Modified: 2026-09-10T03:50:16.819Z
- Also known as: GHSA-hcmv-jmqh-fjgm, PYSEC-2026-1753
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- canonical operator: >= 2.0.0, < 2.15.0
- ops (PyPI): from 2.0.0 before 2.15.0

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/canonical/operator/security/advisories/GHSA-hcmv-jmqh-fjgm> (web)
- <https://github.com/canonical/operator/commit/fea6d2072435a62170d4c01272572f1a7e916e61> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41129> (advisory)
- <https://github.com/canonical/operator> (package)
- <https://pypi.org/project/ops> (package)
- <https://github.com/advisories/GHSA-hcmv-jmqh-fjgm> (advisory)

## Sources

- CVE List: [CVE-2024-41129](https://www.cve.org/CVERecord?id=CVE-2024-41129), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-hcmv-jmqh-fjgm](https://github.com/advisories/GHSA-hcmv-jmqh-fjgm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-41129](https://nvd.nist.gov/vuln/detail/CVE-2024-41129), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1753](https://osv.dev/vulnerability/PYSEC-2026-1753), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-41129 · Whole record: https://cve.day/CVE-2024-41129.json · Rebuilt by cve.day 2026-11-25T22:58:43.147Z
