---
title: "CWE-1076: Insufficient Adherence to Expected Conventions"
url: https://radicalnotion.ai/cwe/cwe-1076
type: cwe
description: "The product's architecture, source code, design, documentation, or other artifact does not follow required conventions."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1076: Insufficient Adherence to Expected Conventions

- **Abstraction:** Class
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 2
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product's architecture, source code, design, documentation, or other artifact does not follow required conventions.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |
| Documentation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Reduce Maintainability | This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities. |

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

## Demonstrative examples

### Example 1

The usage of symbolic names instead of hard-coded constants is preferred.

Bad code:

```c
char buffer[1024];
...
fgets(buffer, 1024, stdin);
```

Good code:

```c
enum { MAX_BUFFER_SIZE = 1024 };
...
char buffer[MAX_BUFFER_SIZE];
...
fgets(buffer, MAX_BUFFER_SIZE, stdin);
```

### Example 2

The following code fragment calls finalize() explicitly:

Bad code:

```java
// time to clean up
widget.finalize();
```

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2021-1268 | Cisco IOS XR Software IPv6 Flood Denial of Service Vulnerability | high | 7.4 | - | No | 2021-02-04 |
| CVE-2023-32642 | - | medium | 6.5 | - | No | 2024-02-14 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-710](https://radicalnotion.ai/cwe/cwe-710) | Improper Adherence to Coding Standards |
| Child | [CWE-586](https://radicalnotion.ai/cwe/cwe-586) | Explicit Call to Finalize() |
| Child | [CWE-594](https://radicalnotion.ai/cwe/cwe-594) | J2EE Framework: Saving Unserializable Objects to Disk |
| Child | [CWE-1045](https://radicalnotion.ai/cwe/cwe-1045) | Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor |
| Child | [CWE-1070](https://radicalnotion.ai/cwe/cwe-1070) | Serializable Data Element Containing non-Serializable Item Elements |
| Child | [CWE-1078](https://radicalnotion.ai/cwe/cwe-1078) | Inappropriate Source Code Style or Formatting |
| Child | [CWE-1079](https://radicalnotion.ai/cwe/cwe-1079) | Parent Class without Virtual Destructor Method |
| Child | [CWE-1082](https://radicalnotion.ai/cwe/cwe-1082) | Class Instance Self Destruction Control Element |
| Child | [CWE-1087](https://radicalnotion.ai/cwe/cwe-1087) | Class with Virtual Method without a Virtual Destructor |
| Child | [CWE-1091](https://radicalnotion.ai/cwe/cwe-1091) | Use of Object without Invoking Destructor Method |
| Child | [CWE-1097](https://radicalnotion.ai/cwe/cwe-1097) | Persistent Storable Data Element without Associated Comparison Control Element |
| Child | [CWE-1098](https://radicalnotion.ai/cwe/cwe-1098) | Data Element containing Pointer Item without Proper Copy Control Element |
| Child | [CWE-1108](https://radicalnotion.ai/cwe/cwe-1108) | Excessive Reliance on Global Variables |

## Frequently asked questions

### What is CWE-1076?

The product's architecture, source code, design, documentation, or other artifact does not follow required conventions.

### What CVEs are caused by CWE-1076?

2 recorded CVEs are attributed to CWE-1076, including CVE-2021-1268 and CVE-2023-32642.

### How is CWE-1076 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

### What are the consequences of CWE-1076?

Exploiting CWE-1076 can lead to: Reduce Maintainability.

### Is CWE-1076 actively exploited?

2 recorded CVEs are caused by CWE-1076; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1076.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1076). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
