# speykious/cve-rs

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/speykious-cve-rs).**

5,302 stars · 117 forks · Rust · other

## Links

- GitHub: https://github.com/Speykious/cve-rs
- awesome-repositories: https://awesome-repositories.com/repository/speykious-cve-rs.md

## Description

cve-rs is a memory safety testing framework and vulnerability simulator designed to recreate buffer overflows and segmentation faults. It provides a set of safe memory primitives and a WebAssembly-based security sandbox to evaluate how programs handle unsafe memory access within an isolated execution environment.

The project replaces raw pointer manipulation and type transmutation with functional alternatives, allowing for the simulation of memory-unsafe operations. It enables the reinterpretation of data types through memory representation manipulation rather than unsafe casting to study the impact of memory corruption bugs.

These capabilities support a vulnerability research workflow where simulated exploits are executed within a WebAssembly runtime. This isolation prevents simulated memory errors from causing host system instability while testing security boundaries.

## Tags

### Security & Cryptography

- [Wasm Sandboxes](https://awesome-repositories.com/f/security-cryptography/application-and-system-security/sandbox-and-isolation/isolated-execution-sandboxes/wasm-sandboxes.md) — Uses a WebAssembly-based execution sandbox to isolate simulated memory errors and prevent host system instability.
- [Safe Memory Manipulation](https://awesome-repositories.com/f/security-cryptography/safe-memory-manipulation.md) — Replaces unsafe pointer operations and type transmutation with safe alternatives for managing memory references.
- [Memory Vulnerability Simulation](https://awesome-repositories.com/f/security-cryptography/vulnerability-assessment-testing/security-testing-auditing/security-vulnerabilities/injection-vulnerabilities/simulated-vulnerabilities/memory-vulnerability-simulation.md) — Allows the introduction of common memory errors, such as buffer overflows and segmentation faults, to test system responses. ([source](https://github.com/Speykious/cve-rs#readme))
- [Wasm Memory Vulnerability Simulators](https://awesome-repositories.com/f/security-cryptography/vulnerability-assessment-testing/security-testing-auditing/security-vulnerabilities/injection-vulnerabilities/simulated-vulnerabilities/wasm-memory-vulnerability-simulators.md) — Simulates memory-unsafe operations and vulnerabilities within a WebAssembly execution environment for isolated security testing.
- [Vulnerability Research](https://awesome-repositories.com/f/security-cryptography/security/offensive-operations/vulnerability-research-analysis/vulnerability-research.md) — Provides a workflow for developing and testing simulated exploits in a sandboxed environment to study memory corruption.
- [Wasm](https://awesome-repositories.com/f/security-cryptography/vulnerability-assessment-testing/security-testing-auditing/security-testing/wasm.md) — Executes simulated vulnerability code within isolated WebAssembly runtimes to test security boundaries without risking the host.

### Operating Systems & Systems Programming

- [Memory Reference Abstractions](https://awesome-repositories.com/f/operating-systems-systems-programming/memory-interface-modeling/memory-reference-abstractions.md) — Implements an abstracted memory reference model to decouple hardware access from software references for safe vulnerability simulation.
- [Safe Memory Operation Alternatives](https://awesome-repositories.com/f/operating-systems-systems-programming/safe-memory-operation-alternatives.md) — Offers functional alternatives to low-level memory operations such as pointer nulling and type transmutation. ([source](https://github.com/Speykious/cve-rs#readme))
- [Safe Memory Primitive Implementations](https://awesome-repositories.com/f/operating-systems-systems-programming/safe-memory-primitive-implementations.md) — Provides safe implementations for manipulating memory references as a replacement for raw pointer functions and type transmutation. ([source](https://github.com/Speykious/cve-rs/blob/main/README.md))
- [Safe Memory Primitives](https://awesome-repositories.com/f/operating-systems-systems-programming/safe-memory-primitives.md) — Provides safe high-level functional alternatives to raw pointer operations and type transmutation to prevent host system crashes.
- [Vulnerability Logic Simulation](https://awesome-repositories.com/f/operating-systems-systems-programming/virtual-memory-management/simulated-virtual-memory-managers/vulnerability-logic-simulation.md) — Implements software-defined logic to trigger artificial buffer overflows and segmentation faults to mimic real memory vulnerabilities.

### Programming Languages & Runtimes

- [Safe Memory Primitive Libraries](https://awesome-repositories.com/f/programming-languages-runtimes/safe-memory-primitive-libraries.md) — Provides a library of functional alternatives to raw pointer manipulation and type transmutation for managing memory references.
- [Type Conversion and Casting](https://awesome-repositories.com/f/programming-languages-runtimes/type-conversion-and-casting.md) — Supports converting values between types by manipulating memory layout instead of using unsafe language-level casting.
- [WebAssembly](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/webassembly.md) — Enables the execution of simulated vulnerability code within a WebAssembly runtime or browser for isolated testing. ([source](https://github.com/Speykious/cve-rs/blob/main/README.md))

### Testing & Quality Assurance

- [Memory Type Reinterpretation](https://awesome-repositories.com/f/testing-quality-assurance/memory-manipulation-utilities/memory-type-reinterpretation.md) — Supports changing values between types by manipulating memory representations instead of utilizing unsafe casting. ([source](https://github.com/Speykious/cve-rs/blob/main/src/transmute.rs))
- [Memory Safety Testing Frameworks](https://awesome-repositories.com/f/testing-quality-assurance/memory-safety-testing-frameworks.md) — Functions as a memory safety testing framework that recreates buffer overflows and segmentation faults to evaluate program handling.
