Lucene search
+L
RustSecMost viewed

1577 matches found

RustSec
RustSec
•added 2025/08/14 12:00 p.m.•28 views

IdMap::from_iter may lead to uninitialized memory being freed on drop

Due to a flaw in the constructor idmap::IdMap::fromiter, ill-formed objects may be created in which the amount of actually initialized memory is less than what is expected by the fields of IdMap. Specifically, the field ids is initialized based on the capacity of the vector values, which is...

7.2AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/04/24 12:00 p.m.•28 views

`FormatContext` stream accessors can cause undefined behavior from safe code

Affected versions of stainlessffmpeg exposed several safe public methods on FormatContext that accepted a streamindex parameter and used it in unsafe pointer operations without checking whether the index was valid. These methods performed pointer arithmetic and dereferenced the resulting stream...

5.4AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/04/24 12:00 p.m.•28 views

`hugepage_rs::dealloc` may allow invalid memory deallocation from safe code

hugepagers::dealloc was a publicly accessible safe function. It accepted an arbitrary raw pointer and Layout, then forwarded them to the hugepage allocator's GlobalAlloc::dealloc implementation. GlobalAlloc::dealloc requires callers to ensure that the pointer denotes a block of memory currently...

5.5AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/03/27 12:00 p.m.•28 views

`array-init-cursor` in version 0.2.0 and below is unsound when used with types that implement `Drop`

The Drop implementation will get run twice when using the cursor. This issue does not affect you, if you are using only using the crate with types that are Copy such as u8. This issue also does not affect you, if you are only depending on it through the crate planus...

7.1AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/02/21 12:00 p.m.•28 views

resolve is unmaintained

resolve crate's GitHub repository is archived with no commits for seven years. Latest crates.io release is also seven years old. Possible alternatives hickory-resolver...

7.2AI score
SaveExploits0
RustSec
RustSec
•added 2024/08/23 12:00 p.m.•28 views

Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts

The following presentation at this year's DEF CON was brought to our attention on the Diesel Gitter Channel: SQL Injection isn't Dead: Smuggling Queries at the Protocol Level Archive link for posterity. Essentially, encoding a value larger than 4GiB can cause the length prefix in the protocol to...

8.5AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2024/07/18 12:00 p.m.•28 views

Ambiguous challenge derivation

Challenge derivation in non-interactive ZK proofs was ambiguous and that could lead to security vulnerability however, it's unknown if it could be exploited...

7.2AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2024/07/18 12:00 p.m.•28 views

Ambiguous challenge derivation

Challenge derivation in non-interactive ZK proofs was ambiguous and that could lead to security vulnerability however, it's unknown if it could be exploited...

7.2AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2024/07/18 12:00 p.m.•28 views

`UserIdentity::is_verified` not checking verification status of own user identity while performing the check

The UserIdentity::isverified method in the matrix-sdk-crypto crate before version 0.7.2 doesn't take into account the verification status of the user's own identity while performing the check and may as a result return a value contrary to what is implied by its name and documentation. Impact If t...

5.4CVSS5.9AI score0.0028EPSS
SaveExploits0Affected Software1
RustSec
RustSec
•added 2024/03/04 12:00 p.m.•28 views

gtk-rs GTK3 bindings - no longer maintained

The gtk-rs GTK3 bindings are no longer maintained. The maintainers have archived the repository, and added a note to the crate description and its README.md that the crates are no longer maintained. Please take a look at gtk4-rs instead. Update The gtk-rs repository was unarchived and the README...

5.7AI score
SaveExploits0
RustSec
RustSec
•added 2024/03/04 12:00 p.m.•28 views

gtk-rs GTK3 bindings - no longer maintained

The gtk-rs GTK3 bindings are no longer maintained. The maintainers have archived the repository, and added a note to the crate description and its README.md that the crates are no longer maintained. Please take a look at gtk4-rs instead. Update The gtk-rs repository was unarchived and the README...

5.7AI score
SaveExploits0
RustSec
RustSec
•added 2024/01/13 12:00 p.m.•28 views

Unsound use of str::from_utf8_unchecked on bytes which are not UTF-8

Affected versions receive a &u8 from the caller through a safe API, and pass it directly to the unsafe str::fromutf8unchecked function. The behavior of ferrissays::say is undefined if the bytes from the caller don't happen to be valid UTF-8. The flaw was corrected in ferris-says21 by using the sa...

7AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2023/11/18 12:00 p.m.•28 views

`hann-rs-service` was removed from crates.io for malicious code

This crate was part of a typosquatting malware cluster published by the user TerryDavisSoldier to run an arbitrary malware payload on Windows hosts. This advisory is to retrospectively document this attempted attack. The version information and download records of the malicious crate are no longe...

5.9AI score
SaveExploits0
RustSec
RustSec
•added 2023/10/12 12:00 p.m.•28 views

`fehler` is unmaintained; use `culpa` instead

The fehler crate is no longer maintained. Consider using culpa instead...

7.2AI score
SaveExploits0
RustSec
RustSec
•added 2023/09/03 12:00 p.m.•28 views

Multiple soundness issues

lexical contains multiple soundness issues: 1. Bytes::read allows creating instances of types with invalid bit patterns 1. BytesIter::read advances iterators out of bounds 1. The BytesIter trait has safety invariants but is public and not marked unsafe 1. writefloat calls MaybeUninit::assumeinit ...

7.2AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2023/08/16 12:00 p.m.•28 views

`if-cfg` was removed from crates.io for malicious code

This crate was part of a typosquatting malware cluster published by the malicious user amaperf and contained a malware payload in build.rs to exfiltrate host information to the attacker. This advisory is to retrospectively document this attempted attack. The version information and download recor...

5.8AI score
SaveExploits0
RustSec
RustSec
•added 2022/12/02 12:00 p.m.•28 views

Force cast a &Vec<T> to &[T]

In function Table::asref, a reference of vector is force cast to slice. There are multiple problems here: 1. To guarantee the size is correct, we have to first do Vec::shrinktofit. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is UB. 2. Even ...

2.1AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2022/11/07 12:00 p.m.•28 views

Out of bounds write in `wasmtime_trap_code` C API function

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h84q-m8rr-3v9q. For more information see the GitHub-hosted security advisory...

9.8CVSS8.4AI score0.00433EPSS
SaveExploits0Affected Software1
RustSec
RustSec
•added 2022/09/07 12:00 p.m.•28 views

Multiple vulnerabilities resulting in out-of-bounds writes

The heap initialization methods were missing a minimum size check for the given heap size argument. This could lead to out-of-bound writes when a heap was initialized with a size smaller than 3 sizeof:: because of metadata write operations. When calling Heap::extend with a size smaller than two...

9.8CVSS8.2AI score0.00906EPSS
SaveExploits1Affected Software1
RustSec
RustSec
•added 2022/07/22 12:00 p.m.•28 views

Safety issues in `pkcs11`

Impact The interface of pkcs11 is subject to a number of safety issues, mainly related to handling of raw pointers. Despite presenting a safe interface, many of the functions and methods that rely on inputs which contain pointers attributes and mechanisms in particular can lead to segmentation...

1.8AI score
SaveExploits0
RustSec
RustSec
•added 2022/06/07 12:00 p.m.•28 views

`MsQueue` `push`/`pop` use the wrong orderings

Affected versions of this crate use orderings which are too weak to support this data structure. It is likely this has caused memory corruption in the wild:...

1.2AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2022/05/11 12:00 p.m.•28 views

double-checked-cell is unmaintained

The author recommends switching to oncecell, which offers a superset of the functionality...

3.5AI score
SaveExploits0
RustSec
RustSec
•added 2022/01/22 12:00 p.m.•28 views

crate has been renamed to `ftdi-embedded-hal`

This crate has been renamed from ftd2xx-embedded-hal to ftdi-embedded-hal. The new repository location is:...

6.9AI score
SaveExploits0
RustSec
RustSec
•added 2022/01/14 12:00 p.m.•28 views

Use-after-free due to a lifetime error in `Vec::into_iter()`

In affected versions of this crate, the lifetime of the iterator produced by Vec::intoiter is not constrained to the lifetime of the Bump that allocated the vector's memory. Using the iterator after the Bump is dropped causes use-after-free accesses. The following example demonstrates memory...

2.8AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2022/01/10 12:00 p.m.•28 views

Unsoundness in `dashmap` references

Reference returned by some methods of Ref and similar types may outlive the Ref and escape the lock. This causes undefined behavior and may result in a segfault. More information in dashmap167 issue...

2.4AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2020/12/07 12:00 p.m.•28 views

crate has been renamed to `sn_client`

This crate has been renamed from safecore to snclient. The new repository location is:...

6.9AI score
SaveExploits0
RustSec
RustSec
•added 2026/10/30 12:00 p.m.•27 views

LLVM introduces timing-vulnerable optimizations into ML-KEM and ML-DSA operations intended to be constant-time

Summary On targets that do not have a conditional move/select operations, LLVM compiles the internal conditionalsubu32 function, into one that will contain a conditional jump on secret-dependent data, which could leak information about encapsulation and signing keys. conditionalsubu32 is used...

5.6AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/30 12:00 p.m.•27 views

BLAKE2b produces wrong tag when using `reset()` with a different-length key

Summary hazardous::mac::blake2b::Blake2b::reset does not correctly reset the state when a key is supplied that has a different length than the one used upon initialization with hazardous::mac::blake2b::Blake2b::new, because it errorneously uses a cached length. Impact Initialization...

5.9AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/29 12:00 p.m.•27 views

wasi-http p2: outgoing content-length can be invalid or not match body

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h4wp-g4x3-7398 For more information see the GitHub-hosted security advisory...

5.8AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/26 12:00 p.m.•27 views

Use-after-free of caller-owned server name in client connection constructors

In rustls-ffi 0.12.0 through 0.15.6, rustlsclientconnectionnew and rustlsclientconnectionnewalpn retained a reference to the caller's servername buffer after returning, rather than copying it. The API documentation did not require the buffer to outlive the call and as a result if the caller freed...

6.4AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/16 12:00 p.m.•27 views

Data from an abandoned stream leaks into the next stream on a reused context

The withcontext constructors of the stream encoders and decoders used the borrowed context as it was. When a stream was abandoned on a context, for example an encoder dropped before finish after an error, whatever it left there was carried into the next stream: the input buffered by the previous...

5.9AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/16 12:00 p.m.•27 views

Out-of-bounds read when training a dictionary from inconsistent sample sizes

ZDICTtrainFromBuffer is never told the length of the samples buffer. Before 0.4.10, zstd::dict::fromcontinuous initially traindict called it directly: up to 0.2.1 without checking the sample sizes against the buffer at all, and from 0.3.0 with a sum that wraps around when overflow checks are off,...

5.8AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/16 12:00 p.m.•27 views

WebAssembly allocator shim corrupts memory on allocation failure

On wasm32, zstd-sys provides malloc and free to the C library through a shim over Rust's allocator. The shim did not check for allocation failure: it wrote its size header to address 0 and returned address 4, which the C library used as a valid buffer. freeNULL also read below address 0. Whenever...

6.1AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/14 12:00 p.m.•27 views

Filesystem sandbox escape when renaming symlinks with trailing slashes

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-m9f7-9w4p-gv38 For more information see the GitHub-hosted security advisory...

5.9AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/10/09 12:00 p.m.•27 views

zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory

In zip 9.0.0-pre2, ZipArchive::extract creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an...

5.9AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/09/29 12:00 p.m.•27 views

A 512-byte workbook can provoke a multi-gigabyte allocation and abort the process

Affected versions passed caller-supplied bytes to calamine's Xlsx::new without first checking that they were a ZIP archive. Xlsx::new tests for password protection on its first line, which parses the input as an OLE/CFB container, and a sector-count field read from the file's own header reaches...

5.8AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/09/28 12:00 p.m.•27 views

Hybrid Encapsulation from Seed Panics on Short Seed

For a hybrid KEM public key of type PublicKey::WingKemDraft06 or PublicKey::X25519MlKem768Draft06, the PublicKey::encapsulatederand function would panic in an indexing operation on a seed input of length shorter than 32 bytes. Impact Applications encapsulating with an attacker controlled seed val...

5.9AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/09/24 12:00 p.m.•27 views

Guest can panic host through filesystem datetime overflow

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-j2g9-4prp-pf6h For more information see the GitHub-hosted security advisory...

6.9CVSS5.9AI score0.00153EPSS
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/09/24 12:00 p.m.•27 views

`call_ref` and exception `catch` can drop some fuel accounting, leading to exponential fuel amplification

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-m63x-6p34-q65x For more information see the GitHub-hosted security advisory...

6.9CVSS5.8AI score0.00242EPSS
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/09/20 12:00 p.m.•27 views

`SinglyLinkedList::remove` dereferences a null link

In versions before 0.2.1, SinglyLinkedList::remove is safe and walks the intrusive list with an unchecked dereference. On an empty list, or when node is not in the list, currentelm.next reads a null pointer. That is undefined behavior. The list head is a raw mut Node, and safe code can construct...

5.5AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2026/09/14 12:00 p.m.•27 views

Outgoing datagram buffer accounting can panic the sender in quinn-proto

The limit on memory used to buffer outgoing datagrams, introduced in 0.11.17, subtracted an evicted datagram's size from the buffered byte counter twice when Datagrams::send was called with drop = true as Connection::senddatagram in the quinn crate does while the buffer was full. Under sustained...

6AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/11/07 12:00 p.m.•27 views

Underflow in aes_key_unwrap function

The aeskeyunwrap function would panic if passed a ciphertext that was too short. In a debug build, it would panic due to a subtraction underflow. In a release build, it would use the small negative quantity to allocate a vector. Since the allocator expects an unsigned quantity, the negative value...

5.3CVSS5.9AI score0.0038EPSS
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/05/06 12:00 p.m.•27 views

soundness issue and unmaintained

shaman::cryptoutil::writeu64vle and other functions mentioned above cannot garantee memory safety of getunchecked later if both length are zero. shaman is unmaintained...

7.3AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/03/27 12:00 p.m.•27 views

Safe API can cause heap-buffer-overflow

ffi::nstr should be marked unsafe, since a pointer to a buffer without a trailing 0 value will cause a heap buffer overflow...

7.3AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/02/20 12:00 p.m.•27 views

*ring* is unmaintained

The author has announced an indefinite hiatus in its development, noting that any reported security vulnerabilities may go unaddressed for prolonged periods of time. Update: security maintenance only After this advisory was published, the author graciously agreed to give access to the rustls team...

7.4AI score
SaveExploits0
RustSec
RustSec
•added 2025/01/18 12:00 p.m.•27 views

gix-worktree-state nonexclusive checkout sets executable files world-writable

Summary gix-worktree-state specifies 0777 permissions when checking out executable files, intending that the umask will restrict them appropriately. But one of the strategies it uses to set permissions is not subject to the umask. This causes files in a repository to be world-writable in some...

5CVSS5.8AI score0.00372EPSS
SaveExploits0Affected Software1
RustSec
RustSec
•added 2025/01/13 12:00 p.m.•27 views

Out of bounds write triggered by crafted coverage data

Function grcov::covdir::getcoverage uses the unsafe function getuncheckedmut without validating that the index is in bounds. This results in memory corruption, and could potentially allow arbitrary code execution provided that an attacker can feed the tool crafted coverage data...

7.6AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2024/12/19 12:00 p.m.•27 views

Unsound usages of `Vec::from_raw_parts`

The library provides a public safe API transmutevecasbytes, which incorrectly assumes that any generic type T could have stable layout, causing to uninitialized memory exposure if the users pass any types with padding bytes as T and cast it to u8 pointer. In the issue, we develop a PoC to show...

7AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2024/12/04 12:00 p.m.•27 views

Unsound usages of `std::slice::from_raw_parts`

The library breaks the safety assumptions when using unsafe API std::slice::fromrawparts. First, when using the API in iterator implementation TempFdArrayIterator.next, generic type could be any type, which would create and pass a misaligned pointer to the unsafe API. Second, when validating the...

7.5AI score
SaveExploits0Affected Software1
RustSec
RustSec
•added 2024/11/28 12:00 p.m.•27 views

`ruzstd` uninit and out-of-bounds memory reads

Affected versions of ruzstd miscalculate the length of the allocated and init section of its internal RingBuffer, leading to uninitialized or out-of-bounds reads in copybytesovershooting of up to 15 bytes. This may result in up to 15 bytes of memory contents being written into the decoded data wh...

7AI score
SaveExploits0Affected Software1
Total number of security vulnerabilities1577