{"answers":{"affected":"3 open source packages ship an affected version, including ops.","exploited":"There is no known exploitation of CVE-2024-41129 in the wild and no public exploit code.","fix":"Upgrade ops to 2.15.0 or later.","what":"CVE-2024-41129 is a medium-severity vulnerability in canonical operator, published on 22 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-41129 and fix it if it is affected.\n\nWhat it is: CVE-2024-41129 is a medium-severity vulnerability in canonical operator, published on 22 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-41129 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ops (PyPI): affected from 2.0.0; fixed in 2.15.0\n- ops (PyPI): affected from 2.0.0; fixed in 2.15.0\n- ops (PyPI): affected from 2.0.0; fixed in 2.15.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-41129/ (Markdown: https://insights.sbomify.com/CVE-2024-41129/index.md)","id":"CVE-2024-41129","markdown":"https://insights.sbomify.com/CVE-2024-41129/index.md","name":"CVE-2024-41129","record":{"aliases":["GHSA-hcmv-jmqh-fjgm","PYSEC-2026-1753"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python ops library","requires_auth":"high_privilege","summary":"The ops library leaks secrets in error logs when subprocess errors occur during secret CLI commands, affecting Juju charms.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"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 (\u003e=3.0), Juju secrets and not correctly capturing and processing `subprocess.CalledProcessError`. This vulnerability is fixed in 2.15.0.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"The ops library leaks secrets if `subprocess.CalledProcessError` happens with a `secret-*` CLI command","id":"CVE-2024-41129","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"llama.cpp null pointer dereference in gguf_init_from_file","id":"CVE-2024-41130"},"packages":[{"ecosystem":"PyPI","fixed":["2.15.0"],"introduced":["2.0.0"],"last_affected":[],"package":"ops","purl":null,"source":"GHSA-hcmv-jmqh-fjgm"},{"ecosystem":"PyPI","fixed":["2.15.0"],"introduced":["2.0.0"],"last_affected":[],"package":"ops","purl":"pkg:pypi/ops","source":"GHSA-hcmv-jmqh-fjgm"},{"ecosystem":"PyPI","fixed":["2.15.0"],"introduced":["2.0.0"],"last_affected":[],"package":"ops","purl":"pkg:pypi/ops","source":"PYSEC-2026-1753"}],"prev":{"headline":"Action Dispatch has possible ReDoS vulnerability in query parameter filtering","id":"CVE-2024-41128"},"products":["operator"],"published":"2024-07-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["canonical"]},"summary":"The ops library leaks secrets in error logs when subprocess errors occur during secret CLI commands, affecting Juju charms.","url":"https://insights.sbomify.com/CVE-2024-41129/"}