RUSTSEC-2026-0431: Unbounded memory allocation in `evtx` parsing a `.wevtcache` file
Published 2026-11-01 · Updated 2026-11-02
Summary
An unbounded memory allocation vulnerability exists in the `evtx` crate when parsing `.wevtcache` files due to insufficient validation of entry payload lengths read from the file. Engineering teams using affected versions should update to the patched release.
Who is affected
Deployments parsing untrusted `.wevtcache` files using the `wevt_templates` feature (enabled by default through `evtx_dump`) are vulnerable. A specially crafted, tiny file can cause a multi-gigabyte memory allocation request, leading to an out-of-memory process abort and denial of service.
Exploitability
The vulnerability requires local access and user interaction to parse a malicious file, resulting in high impact to availability with no direct confidentiality or integrity breach. EPSS is not yet available, and CISA KEV status is no.
Remediation
- Upgrade the `evtx` crate on crates.io to version 0.15.1 or later.
- Update Python bindings (`evtx` on PyPI) to version 0.15.0 or later which carry the fix.
How to check your project
- Check Cargo.lock or Cargo.toml for dependencies on the `evtx` crate within the affected version range (introduced 0.11.0, fixed 0.15.1).
- Audit codebases for usage of `evtx::wevt_templates::wevtcache::for_each_crim_blob` or `WevtCacheReader::next_entry`.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | evtx |
>= 0.11.0, < 0.15.1 | 0.15.1 | cargo update -p evtx --precise 0.15.1 |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
Which versions of the `evtx` crate are affected?
Every published version from 0.11.0 through 0.14.0 is affected.
Is the vulnerable code enabled by default?
Yes, the code lives in the `wevt_templates` feature, which is enabled by default through the `evtx_dump` feature.
What is the security impact of this vulnerability?
It causes an out-of-memory denial of service by forcing the process to attempt a multi-gigabyte allocation based on a tiny crafted file.
Original advisory description
References
- PACKAGE https://crates.io/crates/evtx
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0431.html
- REPORT https://github.com/omerbenamram/evtx/issues/334
- WEB https://github.com/omerbenamram/evtx/pull/335
Source records: RUSTSEC-2026-0431 (OSV.dev).