Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

chroma-core/chroma
main @ ec22a31
53
Fixes
9
CVEs
CRITICAL
Peak severity
45.7%
Coverage
Highlights
Denial of Service: 31 prior fixes. Scrutinize any change in this area.
chromadb/server/fastapi/__init__.py: most-fixed (6 issues). Treat as high-risk during review.
18 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Deserialization of Untrusted Data: Loading untrusted metadata files containing serialized Python pickles allowed arbitrary remote code execution. The fix restricted unpickling using a dedicated SafeUnpickler subclass.
Auth Bypass: A critical authorization check for deleting a database was implemented asynchronously but was not awaited. This meant the check was skipped entirely, permitting unauthorized database deletion.
SQL Injection: The update paths for collection properties utilized unsafe string-formatting rather than parameterized queries during ClickHouse ALTER TABLE UPDATE command execution, creating direct opportunities for SQL injection.