---
title: "CWE-370: Missing Check for Certificate Revocation after Initial Check"
url: https://radicalnotion.ai/cwe/cwe-370
type: cwe
description: "The product does not check the revocation status of a certificate after its initial revocation check, which can cause the product to perform privileged actions even after the certificate is revoked at a later time."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-370: Missing Check for Certificate Revocation after Initial Check

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** Medium
- **CVEs with this as primary weakness:** 0
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product does not check the revocation status of a certificate after its initial revocation check, which can cause the product to perform privileged actions even after the certificate is revoked at a later time.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Gain Privileges or Assume Identity | If the revocation status of a certificate is not checked before each action that requires privileges, the system may be subject to a race condition. Trust may be assigned to an entity who is not who it claims to be. If a certificate is revoked after the initial check, all subsequent actions taken with the owner of the revoked certificate will lose all benefits guaranteed by the certificate. In fact, it is almost certain that the use of a revoked certificate indicates malicious activity. |
| Integrity | Modify Application Data | Data from an untrusted (and possibly malicious) source may be integrated. |
| Confidentiality | Read Application Data | Data may be disclosed to an entity impersonating a trusted entity, resulting in information disclosure. |

## Potential mitigations

### Architecture and Design

Ensure that certificates are checked for revoked status before each use of a protected resource. If the certificate is checked before each access of a protected resource, the delay subject to a possible race condition becomes almost negligible and significantly reduces the risk associated with this issue.

## Demonstrative examples

### Example 1

The following code checks a certificate before performing an action.

Bad code:

```c
if (cert = SSL_get_peer_certificate(ssl)) {
    foo=SSL_get_verify_result(ssl);
    if (X509_V_OK==foo)

        //do stuff
        foo=SSL_get_verify_result(ssl);
        //do more stuff without the check.
```

While the code performs the certificate verification before each action, it does not check the result of the verification after the initial attempt. The certificate may have been revoked in the time between the privileged actions.

## Related attack patterns (CAPEC)

- [CAPEC-26](https://radicalnotion.ai/capec/capec-26): Leveraging Race Conditions
- [CAPEC-29](https://radicalnotion.ai/capec/capec-29): Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-299](https://radicalnotion.ai/cwe/cwe-299) | Improper Check for Certificate Revocation |
| Peer | [CWE-296](https://radicalnotion.ai/cwe/cwe-296) | Improper Following of a Certificate's Chain of Trust |
| Peer | [CWE-297](https://radicalnotion.ai/cwe/cwe-297) | Improper Validation of Certificate with Host Mismatch |
| Peer | [CWE-298](https://radicalnotion.ai/cwe/cwe-298) | Improper Validation of Certificate Expiration |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| CLASP | Race condition in checking for certificate revocation | - | - |
| Software Fault Patterns | Race Condition Window | SFP20 | - |

## Frequently asked questions

### What is CWE-370?

The product does not check the revocation status of a certificate after its initial revocation check, which can cause the product to perform privileged actions even after the certificate is revoked at a later time.

### How do you prevent CWE-370?

Ensure that certificates are checked for revoked status before each use of a protected resource. If the certificate is checked before each access of a protected resource, the delay subject to a possible race condition becomes almost negligible and significantly reduces the risk associated with this issue.

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

Exploiting CWE-370 can lead to: Gain Privileges or Assume Identity, Modify Application Data, Read Application Data.

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

---

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