Weaknesses of type CWE-321

360 results

Chave criptográfica hardcoded

É quando a chave ou senha usada para criptografia fica embutida no código-fonte ou binário da aplicação. Qualquer pessoa com acesso ao código (incluindo atacantes que fazem engenharia reversa) consegue extrair a chave e descriptografar todos os dados protegidos por ela, anulando completamente a proteção criptográfica.

Example

Um app mobile que faz login criptografa a senha com uma chave fixa como `const ENCRYPTION_KEY = '12345abc'` no código. Um atacante faz dump do APK, encontra a chave em minutos, e consegue descriptografar todas as senhas armazenadas de todos os usuários.

How to mitigate

Armazene chaves em repositórios seguros (key management systems, vaults como AWS Secrets Manager ou HashiCorp Vault), derive chaves de senhas do usuário com algoritmos fortes (PBKDF2, Argon2), ou use mecanismos de derivação dinâmica. Nunca coloque chaves no código, comentários ou arquivos de configuração versionados.

CVE-2019-19752CRITICALnvOC through 3.2 ships with SSH host keys baked into the installation image, which allows man-in-the-middle attacks and makes identificationEPSS 0.5%CVE-2025-65998HIGHApache Syncope: Default AES key used for internal password encryptionEPSS 0.5%CVE-2019-17098LOWUse of Hard-coded Cryptographic Key vulnerability in August Connect Wi-Fi Bridge AppEPSS 0.5%CVE-2025-30095CRITICALVyOS 1.3 through 1.5 (fixed in 1.4.2) or any Debian-based system using dropbear in combination with live-build has the same Dropbear privateEPSS 0.5%CVE-2026-81855CRITICALWärtsilä FOS-Onboard Use of Hard-coded Cryptographic KeyEPSS 0.5%CVE-2025-8759MEDIUMTRENDnet TN-200 Lighttpd hard-coded keyEPSS 0.5%CVE-2025-54947MEDIUMApache StreamPark: Use hard-coded key vulnerabilityEPSS 0.5%CVE-2022-34440HIGHDell EMC SCG Policy Manager, versions from 5.10 to 5.12, contain(s) a contain a Hard-coded Cryptographic Key vulnerability. An attacker withEPSS 0.5%CVE-2022-34441HIGH Dell EMC SCG Policy Manager, versions from 5.10 to 5.12, contain(s) a contain a Hard-coded Cryptographic Key vulnerability. An attacker witEPSS 0.5%CVE-2025-3177LOWFastCMS JWT hard-coded keyEPSS 0.5%CVE-2024-41260HIGHA static initialization vector (IV) in the encrypt function of netbird management's service from v0.23.2 to v0.29.1 allows attackers to obtaEPSS 0.5%CVE-2023-49256HIGHPredictable encryption passphrase used in publicly accessible configuration fileEPSS 0.5%CVE-2017-9649A Use of Hard-Coded Cryptographic Key issue was discovered in Mirion Technologies DMC 3000 Transmitter Module, iPam Transmitter f/DMC 2000, EPSS 0.5%CVE-2025-15005MEDIUMCouchCMS reCAPTCHA config.example.php hard-coded keyEPSS 0.5%CVE-2026-86241MEDIUMliufee FeehiCMS Cookie Validation main-local.php hard-coded keyEPSS 0.5%CVE-2023-37291HIGHGalaxy Software Services Vitals ESP - Use of Hard-coded Cryptographic KeyEPSS 0.5%CVE-2024-10920LOWmariazevedo88 travels-java-api JWT Secret JwtAuthenticationTokenFilter.java doFilterInternal hard-coded keyEPSS 0.5%CVE-2026-57172HIGHDataEase: Hardcoded JWT Signing Secret in ShareLinkEPSS 0.4%CVE-2022-48625HIGHYealink Config Encrypt Tool add RSA before 1.2 has a built-in RSA key pair, and thus there is a risk of decryption by an adversary.EPSS 0.4%CVE-2023-39982HIGHMXsecurity Hardcoded CredentialEPSS 0.4%