1. CVE archive
  2. Vulnerability types
  3. CWE-547
CWE-547 · #415 most frequent type in the archive

Use of Hard-coded, Security-relevant Constants

The product uses hard-coded constants instead of symbolic names for security-critical values, which increases the likelihood of mistakes during code maintenance or security policy change.

Part of: CWE-1078 · Inappropriate Source Code Style or Formatting

10CVEs of this type in the archive
4critical (CVSS ≥ 9)
4high severity (7–8.9)
Nov 6, 2026latest published

What it is

The product uses hard-coded constants instead of symbolic names for security-critical values, which increases the likelihood of mistakes during code maintenance or security policy change.

Impact on systems

ScopeImpact
Other Varies by Context, Quality Degradation, Reduce Maintainability
The existence of hardcoded constants could cause unexpected behavior and the introduction of weaknesses during code maintenance or when making changes to the code if all occurrences are not modified. The use of hardcoded constants is an indication of poor quality. In addition, these hard-coded values may become available to attackers if the code is ever disclosed.

How to prevent it

Implementation Avoid using hard-coded constants. Configuration files offer a more flexible solution.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-547 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20231
20243
20254
20262

All CWE-547 CVEs

10 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.