The ops library leaks secrets if `subprocess.CalledProcessError` happens with a `secret-*` CLI command
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-41129
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 02:31 UTC · Revision 1
Source evidence
The ops library leaks secrets if `subprocess.CalledProcessError` happens with a `secret-*` CLI command
core-osv · Original sourcePublished 22 Jul 2024, 14:20 UTC
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.
osv:CVE-2024-41129
Complete source record
{
"id": "58e67dbba5dde7f037474772d1be2b74f0798444d91822990391440bbac9e540",
"url": "https://osv.dev/vulnerability/CVE-2024-41129",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "The ops library leaks secrets if `subprocess.CalledProcessError` happens with a `secret-*` CLI command",
"summary": "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.",
"evidence": "osv:CVE-2024-41129",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-41129",
"aliases": [
"CVE-2024-41129",
"GHSA-hcmv-jmqh-fjgm",
"PYSEC-2026-1753"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/canonical/operator",
"type": "GIT",
"events": [
{
"introduced": "b5cde989deb7217c50315191e18fe6dec33eddb4"
},
{
"fixed": "d46f7e960e79acc478a6e6741e4f307013b9e89b"
},
{
"fixed": "fea6d2072435a62170d4c01272572f1a7e916e61"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.15.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "fea6d2072435a62170d4c01272572f1a7e916e61"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.14.1",
"2.14.0",
"2.13.0",
"2.12.0",
"2.11.0",
"2.10.0",
"2.9.0",
"2.8.0",
"2.7.0",
"2.6.0",
"2.5.0",
"2.4.1",
"2.4.0",
"2.3.0",
"2.2.0",
"2.1.1",
"2.1.0",
"2.0.0rc2",
"2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41129.json"
}
}
],
"modified": "2026-10-28T02:30:25.506481404Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41129.json",
"https://github.com/canonical/operator/security/advisories/GHSA-hcmv-jmqh-fjgm",
"https://nvd.nist.gov/vuln/detail/CVE-2024-41129",
"https://github.com/canonical/operator/commit/fea6d2072435a62170d4c01272572f1a7e916e61"
],
"provider_metadata": {
"cwe_ids": [
"CWE-532"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41129.json"
}
},
"related_cves": [
{
"value": "CVE-2024-41129",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491897,
"published_at": "2024-07-22T14:20:08.92+00:00"
}