CVE-2026-59099: Crypto Cipher Reused Parameterspec Field

AES-GCM and other block ciphers require a unique Initialization Vector (IV) for every encryption operation. Using a cached `AlgorithmParameterSpec` (e.g., from an instance or class field) results in IV reuse across multiple encryptions. For GCM mode, nonce reuse destroys confidentiality and allows an attacker to recover plaintexts. Generate a fresh IV using

Provally CuratedPublic repositoryCriticalMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2026-59099-crypto-cipher-reused-parameterspec-field --engine opengrep

Description

AES-GCM and other block ciphers require a unique Initialization Vector (IV) for every encryption operation. Using a cached `AlgorithmParameterSpec` (e.g., from an instance or class field) results in IV reuse across multiple encryptions. For GCM mode, nonce reuse destroys confidentiality and allows an attacker to recover plaintexts. Generate a fresh IV using