Vulnerability in cryptography (CVE-2024-26130)
Summary
vulnerability in cryptography (CVE-2024-26130). Risk of unauthorized operations or information disclosure. Exploitable via ``pkcs12.serialize_key_and_certificates``. Mitigation: upgrade to `97d231672763cdb5959a3b191e692a362f1b9e55, 42.0.4` or later.
AI summary snake-internal / snake-material-v2
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'cryptography' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `cryptography` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade cryptography to 97d231672763cdb5959a3b191e692a362f1b9e55, 42.0.4ステージング環境で 97d231672763cdb5959a3b191e692a362f1b9e55, 42.0.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
References
- advisory https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4
- advisory https://nvd.nist.gov/vuln/detail/CVE-2024-26130
- advisory https://github.com/advisories/GHSA-6vqw-3v5j-54x4
- package https://github.com/pyca/cryptography
- patch https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55
- report https://github.com/pyca/cryptography/pull/10423
- web https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2024-225.yaml