CWE · MITRE source
CWE-591Sensitive Data Storage in Improperly Locked Memory
The product stores sensitive data in memory that is not locked, or that has been incorrectly locked, which might cause the memory to be written to swap files on disk by the virtual memory manager. This can make the data more accessible to external actors.
On Windows systems the VirtualLock function can lock a page of memory to ensure that it will remain present in memory and not be swapped to disk. However, on older versions of Windows, such as 95, 98, or Me, the VirtualLock() function is only a stub and provides no protection. On POSIX systems the mlock() call ensures that a page will stay resident in memory but does not guarantee that the page will not appear in the swap. Therefore, it is unsuitable for use as a protection mechanism for sensitive data. Some platforms, in particular Linux, do make the guarantee that the page will not be swapped, but this is non-standard and is not portable. Calls to mlock() also require supervisor privilege. Return values for both of these calls must be checked to ensure that the lock operation was actually successful.
Last updated: 04 July 2026 08:17 UTC
Cumulative inbound coverage
How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.
Collective: partial · 4 mapping(s) from 3 framework(s): ATT&CK 2 (partial) · CSF 2.0 1 (partial) · STIG oracle linux 8 1 (partial)
NIST 800-53 r5 controls that address this weakness (0)AI
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
MITRE ATT&CK techniques this weakness enables
Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing). Drafted by Grok and spot-checked by Claude Opus 4.8.
Direction: ← other covers this;
→ this covers other (F/M/P = full / mostly /
partial).
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2023-28229 KEV | 10.0 | 7.0 | 0.0187 | 2023-04-11 |
CVE-2024-38106 KEV | 10.0 | 7.0 | 0.0634 | 2024-08-13 |
CVE-2023-28219 | 6.0 | 8.1 | 0.1498 | 2023-04-11 |
CVE-2023-28220 | 6.0 | 8.1 | 0.1498 | 2023-04-11 |
CVE-2023-36005 | 6.0 | 7.5 | 0.2386 | 2023-12-12 |
CVE-2025-21309 | 6.0 | 8.1 | 0.1498 | 2025-01-14 |
CVE-2025-30394 UPD | 6.0 | 5.9 | 0.2063 | 2025-05-13 |
CVE-2023-21535 | 5.5 | 8.1 | 0.0108 | 2023-01-10 |
CVE-2023-21546 | 5.5 | 8.1 | 0.0110 | 2023-01-10 |
CVE-2023-21548 | 5.5 | 8.1 | 0.0108 | 2023-01-10 |
CVE-2023-21739 | 5.5 | 7.0 | 0.0056 | 2023-01-10 |
CVE-2023-21771 | 5.5 | 7.0 | 0.0040 | 2023-01-10 |
CVE-2023-23393 | 5.5 | 7.0 | 0.0025 | 2023-03-14 |
CVE-2023-23407 | 5.5 | 7.1 | 0.0039 | 2023-03-14 |
CVE-2023-23414 | 5.5 | 7.1 | 0.0039 | 2023-03-14 |
CVE-2023-28224 | 5.5 | 7.1 | 0.0039 | 2023-04-11 |
CVE-2023-28236 | 5.5 | 7.8 | 0.0029 | 2023-04-11 |
CVE-2023-28238 | 5.5 | 7.5 | 0.0088 | 2023-04-11 |
CVE-2023-28273 | 5.5 | 7.0 | 0.0025 | 2023-04-11 |
CVE-2023-24899 | 5.5 | 7.0 | 0.0034 | 2023-05-09 |
CVE-2023-24946 | 5.5 | 7.8 | 0.0044 | 2023-05-09 |
CVE-2023-28283 | 5.5 | 8.1 | 0.0097 | 2023-05-09 |
CVE-2023-32010 | 5.5 | 7.0 | 0.0028 | 2023-06-14 |
CVE-2023-33163 | 5.5 | 7.5 | 0.0036 | 2023-07-11 |
CVE-2023-35309 | 5.5 | 7.5 | 0.0069 | 2023-07-11 |