Join our Newsletter — 33% off our NHI Course
Foundations & NHI Taxonomy

CWE-327

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Foundations & NHI Taxonomy

CWE-327 is a weakness category for the use of a broken or risky cryptographic algorithm. It covers situations where software relies on weak ciphers, hashes, key exchange methods, or signature schemes, which can undermine confidentiality, integrity, or authentication even if the implementation is otherwise correct.

What the weakness means in practice

CWE-327 describes a design or implementation choice that relies on a cryptographic algorithm that is known to be weak, obsolete, or risky. The code may still run correctly, but the security property it depends on can fail, so confidentiality, integrity, or authentication can be undermined even when the surrounding logic looks sound.

This is a weakness category rather than a single bug pattern. It can show up in hashes, ciphers, key exchange, signatures, or protocol negotiation, and the danger is often that the software appears “encrypted” or “authenticated” while the underlying primitive no longer provides meaningful protection.

Why weak cryptography is dangerous

The risk is not limited to data exposure. A broken hash can weaken password storage or integrity checks, a weak signature scheme can allow forgery, and a fragile key exchange can expose sessions to interception or downgrade. Once the primitive is unsound, the security control built on it inherits that weakness.

Attackers often do not need to defeat the entire system. They look for legacy algorithms, downgrade paths, or compatibility settings that preserve old behavior. That is why cryptographic failures can persist in mature products: the implementation is “working” while the protection model is already compromised. For a broader weakness inventory and mapping context, the CWE Top 25 Guide is useful.

How organisations assess exposure

Exposure assessment starts with inventorying where cryptography is used, then checking which algorithms, modes, and protocol versions are actually in play. That includes application code, libraries, TLS configuration, identity flows, signing workflows, and any legacy integrations that may still negotiate weaker options.

Vendor advisories, security documentation, and code review are the main sources for confirming whether a system still depends on a risky algorithm. Organisations should also look for policy gaps, because weak cryptography often survives through “temporary” compatibility exceptions that were never removed. The CVE, CWE and CPE Guide helps distinguish weakness classes from product vulnerability records, while the Cryptographic Protocol Failures and Misuse Guide gives practical review cues for misuse patterns that commonly travel with weak primitives.

Remediation and post-fix review

Remediation usually means replacing the risky algorithm with a modern alternative and then checking every place that depends on it, including clients, partners, certificates, key material, and protocol negotiation behavior. If the weak algorithm protected stored data or active sessions, the fix may need to be paired with re-encryption, re-signing, or re-establishing trust chains.

When a direct replacement is not yet possible, the safest posture is to reduce reliance on the weak path as much as possible and treat the exception as a time-bound risk. After remediation, review whether compromise could have happened before the fix, because a corrected algorithm does not undo earlier exposure. For the cryptographic-design side of the problem, OWASP Top 10 A04 Guide is a useful companion reference, and NIST guidance on key lifecycle decisions is especially relevant when keys or signatures are part of the failure path.

Where this weakness becomes a real security issue

The operational impact depends on what the weak primitive was protecting. If it was used for authentication, the result can be impersonation or forged trust. If it was used for confidentiality, the result can be disclosure of sensitive data. If it was used for integrity, the result can be silent tampering that is difficult to detect until downstream systems behave unexpectedly.

The most important practical lesson is that cryptographic weakness is often a system property, not just a code defect. A single obsolete algorithm can invalidate an otherwise strong control plane, which is why cryptographic review has to include protocols, libraries, configuration, and lifecycle management, not just source code.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP ASVS, NIST SP 800-57 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
OWASP ASVSV11 — CryptographyCWE-327 is about unsafe cryptographic algorithms and design choices.
Recommendation — Use V11 to verify that approved cryptographic primitives and configurations are enforced.
NIST SP 800-57Key ManagementWeak algorithms often intersect with key lifecycle and algorithm selection decisions.
Recommendation — Review key strength, cryptoperiods, and algorithm choices against current cryptographic guidance.
CIS Controls v8CIS-3 — Data ProtectionWeak cryptography can directly undermine protection of sensitive data at rest or in transit.
Recommendation — Apply approved cryptography to protect sensitive data and retire legacy algorithms.
ISO/IEC 27001:2022A.8.24 — Use of cryptographyThis weakness maps directly to cryptographic selection, use, and control in Annex A.
Recommendation — Define and enforce approved cryptographic use, parameters, and algorithm retirement.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org