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

Unrestricted Externally Accessible Lock

The product properly checks for the existence of a lock, but the lock can be externally controlled or influenced by an actor that is outside of the intended sphere of control.

Part of: CWE-667 · Improper Locking

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

What it is

The product properly checks for the existence of a lock, but the lock can be externally controlled or influenced by an actor that is outside of the intended sphere of control.

This prevents the product from acting on associated resources or performing other behaviors that are controlled by the presence of the lock. Relevant locks might include an exclusive lock or mutex, or modifying a shared resource that is treated as a lock. If the lock can be held for an indefinite period of time, then the denial of service could be permanent.

Impact on systems

ScopeImpact
Availability DoS: Resource Consumption (Other)
When an attacker can control a lock, the program may wait indefinitely until the attacker releases the lock, causing a denial of service to other users of the program. This is especially problematic if there is a blocking operation on the lock.

How to prevent it

Architecture and Design · Implementation Use any access control that is offered by the functionality that is offering the lock.
Architecture and Design · Implementation Use unpredictable names or identifiers for the locks. This might not always be possible or feasible.
Architecture and Design Consider modifying your code to use non-blocking synchronization methods.

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

CWE-412 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20191
20201
20264

All CWE-412 CVEs

6 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.