Security context

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

snowflakedb/snowflake-connector-python
main @ fbe18d0
8
Fixes
0
CVEs
HIGH
Peak severity
66.7%
Coverage
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
src/snowflake/connector/crl.py: most-fixed (4 issues). Treat as high-risk during review.
5 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.

Insecure Trust Chain Validation: Flaws in certificate chain traversal, non-CA flag validation, and CRL distribution point matching could allow an attacker to present invalid or forged certificates during TLS negotiation. Developers must strictly enforce standard validation algorithms and never assume chain completeness based on peer-supplied data.
Insecure Deserialization: Dynamic class loading via importlib and getattr in the OCSP validation cache presented an arbitrary code execution risk if cache files were manipulated. Dynamic module or class resolution must be avoided in favor of strict, hardcoded allowlists.
Auth Bypass: Blindly trusting the terminating certificate of a peer-provided chain without validating it against a locally configured, system-trusted root CA allowed complete validation bypass. Secure trust anchors must always be validated explicitly.