Lucene search
+L
Osv-rustsecRecent

1310 matches found

osv-rustsec
osv-rustsec
•added 2021/02/28 12:00 p.m.•25 views

RUSTSEC-2021-0062 project abandoned; migrate to the `aes-siv` crate

The Miscreant project has been abandoned and archived. The Rust implementation has been adapted into the new aes-siv crate which implements both the AES-CMAC-SIV and AES-PMAC-SIV constructions: Please migrate to the aes-siv crate. Alternatively see the aes-gcm-siv crate for a newer, faster...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/26 12:00 p.m.•30 views

RUSTSEC-2021-0052 Multiple functions can cause double-frees

The following functions in the crate are affected: IdMap::clonefrom The clonefrom implementation for IdMap drops the values present in the map and then begins cloning values from the other map. If a .clone call pancics, then the afformentioned dropped elements can be freed again. getorinsert...

9.8CVSS9.3AI score0.011EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/24 12:00 p.m.•47 views

RUSTSEC-2021-0050 swap_index can write out of bounds and return uninitialized memory

swapindex takes an iterator and swaps the items with their corresponding indexes. It reserves capacity and sets the length of the vector based on the .len method of the iterator. If the len returned by the iterator is larger than the actual number of elements yielded, then swapindex creates a...

7.3CVSS7.2AI score0.009EPSS
SaveExploits2References3
osv-rustsec
osv-rustsec
•added 2021/02/22 12:00 p.m.•24 views

RUSTSEC-2021-0033 push_cloned can drop uninitialized memory or double free on panic

Affected versions of stackdst used a pushinner function that increased the internal length of the array and then called val.clone. If the val.clone call panics, the stack could drop an already dropped element or drop uninitialized memory. This issue was fixed in 2a4d538 by increasing the length o...

9.8CVSS9.3AI score0.01295EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/21 12:00 p.m.•38 views

RUSTSEC-2021-0026 XSS in `comrak`

The comrak we were matching unsafe URL prefixes, such as data: or javascript: , in a case-sensitive manner. This meant prefixes like Data: were untouched...

6.1CVSS6.1AI score0.00686EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/19 12:00 p.m.•41 views

RUSTSEC-2021-0047 SliceDeque::drain_filter can double drop an element if the predicate panics

Affected versions of the crate incremented the current index of the drain filter iterator before calling the predicate function self.pred. If the predicate function panics, it is possible for the last element in the iterator to be dropped twice...

7.5CVSS7.4AI score0.01135EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/19 12:00 p.m.•32 views

RUSTSEC-2021-0028 Multiple memory safety issues in insert_row

When inserting rows from an iterator at a particular index, toodee would shift items over, duplicating their ownership. The space reserved for the new elements was based on the len returned by the ExactSizeIterator. This could result in elements in the array being freed twice if the iterator...

9.8CVSS8.5AI score0.01295EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/19 12:00 p.m.•50 views

RUSTSEC-2021-0048 StackVec::extend can write out of bounds when size_hint is incorrect

StackVec::extend used the lower and upper bounds from an Iterator's sizehint to determine how many items to push into the stack based vector. If the sizehint implementation returned a lower bound that was larger than the upper bound, StackVec would write out of bounds and overwrite memory on the...

7.3CVSS7.2AI score0.01025EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/18 12:00 p.m.•54 views

RUSTSEC-2021-0030 move_elements can double-free objects on panic

Affected versions of scratchpad used ptr::read to read elements while calling a user provided function f on them. Since the pointer read duplicates ownership, a panic inside the user provided f function could cause a double free when unwinding. The flaw was fixed in commit 891561bea by removing t...

9.8CVSS9.2AI score0.01364EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/18 12:00 p.m.•30 views

RUSTSEC-2021-0049 `through` and `through_and` causes a double free if the map function panics

through and throughand take a mutable reference as well as a mapping function to change the provided reference. They do this by calling ptr::read on the reference which duplicates ownership and then calling the mapping function. If the mapping function panics, both the original object and the one...

9.8CVSS9.4AI score0.01326EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/17 12:00 p.m.•41 views

RUSTSEC-2021-0046 misc::vec_with_size() can drop uninitialized memory if clone panics

misc::vecwithsize creates a vector of the provided size and immediately calls vec.setlensize on it, initially filling it with uninitialized memory. It then inserts elements using veci = value.clone. If the value.clone call panics, uninitialized items in the vector will be dropped leading to...

9.8CVSS7.2AI score0.01363EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/17 12:00 p.m.•32 views

RUSTSEC-2021-0112 `Read` on uninitialized buffer may cause UB ('tectonic_xdv' crate)

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Arbitrary Read implementations can read from the uninitialized buffer memory exposure and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory...

9.8CVSS9.4AI score0.01191EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/17 12:00 p.m.•40 views

RUSTSEC-2021-0029 Tape::take_bytes exposes uninitialized memory to a user-provided Read

Affected versions of this crate passed an unininitialized buffer to a user-provided Read instance in Tape::takebytes. This can result in safe Read implementations reading from the uninitialized buffer leading to undefined behavior. The flaw was corrected in commit 1f2dc7f37dd by removing the unsa...

7.5CVSS7.5AI score0.01175EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/17 12:00 p.m.•70 views

RUSTSEC-2021-0043 PartialReader passes uninitialized memory to user-provided Read

Affected versions of this crate passed an uniniitalized buffer to a user-provided Read instance in PartialReader::read. This can result in safe Read implementations reading from the uninitialized buffer leading to undefined behavior. The flaw was fixed in commit 39d62c6 by zero-initializing the...

7.3CVSS7.1AI score0.009EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/15 12:00 p.m.•14 views

RUSTSEC-2021-0025 crate has been renamed to `qjsonrpc`

This crate has been renamed from jsonrpc-quic to qjsonrpc. The new repository location is:...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/15 12:00 p.m.•19 views

RUSTSEC-2021-0024 crate has been renamed to `sn_api`

This crate has been renamed from safe-api to snapi. The new repository location is:...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/14 12:00 p.m.•57 views

RUSTSEC-2021-0021 `nb-connect` invalidly assumes the memory layout of std::net::SocketAddr

The nb-connect crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation. The standard library does not say anything about...

9.8CVSS9.4AI score0.01448EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/12 12:00 p.m.•19 views

RUSTSEC-2021-0023 Incorrect check on buffer length when seeding RNGs

Summary: randcore::le::readu32into and readu64into have incorrect checks on the source buffer length, allowing the destination buffer to be under-filled. Implications: some downstream RNGs, including Hc128Rng but not the more widely used ChaChaRng, allow seeding using the SeedableRng::fromseed...

9.8CVSS9.5AI score0.01238EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/09 12:00 p.m.•37 views

RUSTSEC-2021-0044 Use after free possible in `uri::Formatter` on panic

Affected versions of this crate transmuted a &str to a &'static str before pushing it into a StackVec, this value was then popped later in the same function. This was assumed to be safe because the reference would be valid while the method's stack was active. In between the push and the pop,...

7.3CVSS7AI score0.01025EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/09 12:00 p.m.•41 views

RUSTSEC-2021-0022 Use-after-free in `subscript_next` and `subscript_prev` wrappers

Affected versions of this crate had an unsound implementation which could pass a pointer to freed memory to ydbsubscriptnextst and ydbsubscriptprevst if the variable and subscripts did not have enough memory allocated on the first call to hold the next variable in the database. For example, the...

9.8CVSS9.5AI score0.01355EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/02/05 12:00 p.m.•33 views

RUSTSEC-2021-0020 Multiple Transfer-Encoding headers misinterprets request payload

hyper's HTTP server code had a flaw that incorrectly understands some requests with multiple transfer-encoding headers to have a chunked payload, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that understands the request payload boundary differently can...

8.1CVSS8AI score0.04732EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/04 12:00 p.m.•22 views

RUSTSEC-2021-0034 office is unmaintained, use calamine instead

The office crate is unmaintained. Use calamine for reading excel files. Contact the office author for ownership of the package name...

7.2AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/04 12:00 p.m.•27 views

RUSTSEC-2021-0019 Multiple soundness issues

Calls std::str::fromutf8unchecked without any checks The function xcb::xproto::GetAtomNameReply::name calls std::str::fromutf8unchecked on the raw bytes that were received from the X11 server without any validity checks. The X11 server only prevents interior null bytes, but otherwise allows any X...

9.8CVSS9AI score0.01728EPSS
SaveExploits4References7
osv-rustsec
osv-rustsec
•added 2021/02/03 12:00 p.m.•54 views

RUSTSEC-2021-0094 Window can read out of bounds if Read instance returns more bytes than buffer size

rdiff performs a diff of two provided strings or files. As part of its reading code it uses the return value of a Read instance to set the length of its internal character vector. If the Read implementation claims that it has read more bytes than the length of the provided buffer, the length of t...

7.5CVSS7.3AI score0.01059EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/02/03 12:00 p.m.•61 views

RUSTSEC-2021-0018 insert_slice_clone can double drop if Clone panics.

Affected versions of this crate used ptr::copy when inserting into the middle of a Vec. When ownership was temporarily duplicated during this copy, it calls the clone method of a user provided element. This issue can result in an element being double-freed if the clone call panics. Commit 20cb73d...

5.3CVSS5AI score0.01359EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/31 12:00 p.m.•40 views

RUSTSEC-2021-0031 split_at allows obtaining multiple mutable references to the same data

Affected versions of this crate assumed that Borrow was guaranteed to return the same value on .borrow. The borrowed index value was used to retrieve a mutable reference to a value. If the Borrow implementation returned a different index, the split arena would allow retrieving the index as a...

9.8CVSS9.5AI score0.01528EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/31 12:00 p.m.•65 views

RUSTSEC-2021-0051 KeyValueReader passes uninitialized memory to Read instance

The KeyValueReader type in affected versions of this crate set up an uninitialized memory buffer and passed them to be read in to a user-provided Read instance. The Read instance could read uninitialized memory and cause undefined behavior and miscompilations. This issue was fixed in commit dd59b...

9.8CVSS9.3AI score0.011EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/30 12:00 p.m.•64 views

RUSTSEC-2021-0017 `Read` on uninitialized buffer may cause UB (`impl Walue for Vec<u8>`)

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Arbitrary Read implementations can read from the uninitialized buffer memory exposure and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory...

7.5CVSS7.4AI score0.01489EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/29 12:00 p.m.•16 views

RUSTSEC-2021-0150 ncollide3d is unmaintained

The maintainer has advised that this crate is passively-maintained and that it is being superseded by the Parry project...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/29 12:00 p.m.•9 views

RUSTSEC-2021-0148 nphysics3d is unmaintained

The maintainer has advised that this crate is passively-maintained and that it is being superseded by the Rapier project...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/29 12:00 p.m.•13 views

RUSTSEC-2021-0149 nphysics2d is unmaintained

The maintainer has advised that this crate is passively-maintained and that it is being superseded by the Rapier project...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/29 12:00 p.m.•13 views

RUSTSEC-2021-0151 ncollide2d is unmaintained

The maintainer has advised that this crate is passively-maintained and that it is being superseded by the Parry project...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/26 12:00 p.m.•48 views

RUSTSEC-2021-0014 Record::read : Custom `Read` on uninitialized buffer may cause UB

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Record::read Arbitrary Read implementations can read from the uninitialized buffer memory exposure and also can return incorrect number of bytes written to the buffer. Reading from uninitialized...

7.5CVSS7.4AI score0.01498EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/26 12:00 p.m.•22 views

RUSTSEC-2021-0092 Deserialization functions pass uninitialized memory to user-provided Read

Affected versions of this crate passed an uninitialized buffer to a user-provided Read instance in: deserializebinary deserializestring deserializeextensionothers deserializestringprimitive This can result in safe Read implementations reading from the uninitialized buffer leading to undefined...

9.8CVSS9.3AI score0.01372EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/26 12:00 p.m.•50 views

RUSTSEC-2021-0042 insert_many can drop elements twice on panic

Affected versions of insertmany used ptr::copy to move over items in a vector to make space before inserting, duplicating their ownership. It then iterated over a provided Iterator to insert the new items. If the iterator's .next method panics then the vector would drop the same elements twice...

7.5CVSS7.3AI score0.01135EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/26 12:00 p.m.•43 views

RUSTSEC-2021-0016 `IoReader::read()`: user-provided `Read` on uninitialized buffer may cause UB

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Arbitrary Read implementations can read from the uninitialized buffer memory exposure and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory...

7.5CVSS7.4AI score0.01557EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/21 12:00 p.m.•14 views

RUSTSEC-2021-0135 Improper validation of Windows paths could lead to directory traversal attack

towerhttp::services::fs::ServeDir didn't correctly validate Windows paths meaning paths like /foo/bar/c:/windows/web/screen/img101.png would be allowed and respond with the contents of c:/windows/web/screen/img101.png. Thus users could potentially read files anywhere on the filesystem. This only...

7.1AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/20 12:00 p.m.•12 views

RUSTSEC-2021-0152 `out_reference::Out::from_raw` should be `unsafe`

Out::fromraw in affected versions allows writing a value to invalid memory address without requiring unsafe. The soundness issue has been addressed by making Out::fromraw an unsafe function...

7AI score
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/20 12:00 p.m.•22 views

RUSTSEC-2021-0013 Soundness issues in `raw-cpuid`

Undefined behavior in asstring methods VendorInfo::asstring, SoCVendorBrand::asstring, and ExtendedFunctionInfo::processorbrandstring construct byte slices using std::slice::fromrawparts, with data coming from reprRust structs. This is always undefined behavior. See...

7.5CVSS6.2AI score0.01261EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/20 12:00 p.m.•43 views

RUSTSEC-2021-0089 Optional `Deserialize` implementations lacking validation

When activating the non-default feature serialize, most structs implement serde::Deserialize without sufficient validation. This allows breaking invariants in safe code, leading to: Undefined behavior in asstring methods which use std::str::fromutf8unchecked internally. Panics due to failed...

9.8CVSS9.3AI score0.01123EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/20 12:00 p.m.•24 views

RUSTSEC-2021-0083 QueryInterface should call AddRef before returning pointer

Affected version of this crate, which is a required dependency in com-impl, provides a faulty implementation of the IUnknown::QueryInterface method. QueryInterface implementation must call IUnknown::AddRef before returning the pointer, as describe in this documentation: As it is not incrementing...

7.5CVSS5.9AI score0.01053EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/17 12:00 p.m.•39 views

RUSTSEC-2021-0004 Missing Send bound for Lazy

All current versions of this crate allow causing data races in safe code. The flaw will be fixed in the next release...

5.3CVSS5.1AI score0.01314EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/12 12:00 p.m.•21 views

RUSTSEC-2021-0040 panic safety: double drop or uninitialized drop of T upon panic

Affected versions of this crate did not guard against potential panics that may happen from user-provided functions T::default and T::drop. Panic within T::default leads to dropping uninitialized T, when it is invoked from common::Slice::::new. Panic within T::drop leads to double drop of T, when...

7.5CVSS7.6AI score0.01135EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/12 12:00 p.m.•43 views

RUSTSEC-2021-0010 panic safety: double drop may happen within `util::{mutate, mutate2}`

Upon panic in a user-provided function f, fn mutate & fn mutate2 drops twice a same object. Affected versions of this crate did not guard against double drop while temporarily duplicating an object's ownership with ptr::read. Dropping a same object can result in memory corruption. The flaw was...

9.8CVSS9.4AI score0.01552EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/11 12:00 p.m.•30 views

RUSTSEC-2021-0045 FromIterator implementation for Vector/Matrix can drop uninitialized memory

The FromIterator methods for Vector and Matrix rely on the type parameter N to allocate space in the iterable. If the passed in N type parameter is larger than the number of items returned by the iterator, it can lead to uninitialized memory being left in the Vector or Matrix type which gets...

9.8CVSS9.4AI score0.01326EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/10 12:00 p.m.•77 views

RUSTSEC-2021-0005 Double drop upon panic in 'fn map_array()'

Affected versions of this crate did not guard against panic within the user-provided function f 2nd parameter of fn maparray, and thus panic within f causes double drop of a single object. The flaw was corrected in the 0.4.0 release by wrapping the object vulnerable to a double drop within...

7.5CVSS7.4AI score0.0139EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/10 12:00 p.m.•68 views

RUSTSEC-2021-0009 panic safety issue in `impl TransformContent<S, D> for [S; (2|3|4)]`

Affected versions of this crate did not guard against double drop while temporarily duplicating objects' ownership using ptr::read. Upon panic in a user-provided function conversion, objects that are copied by ptr::read are dropped twice, leading to memory corruption. The flaw was corrected in...

7.5CVSS7.4AI score0.01327EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/08 12:00 p.m.•13 views

RUSTSEC-2021-0003 Buffer overflow in SmallVec::insert_many

A bug in the SmallVec::insertmany method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap. This bug was only triggered if the iterator passed to insertmany yielded more items than the...

9.8CVSS8.8AI score0.01699EPSS
SaveExploits1References3
osv-rustsec
osv-rustsec
•added 2021/01/07 12:00 p.m.•39 views

RUSTSEC-2021-0087 columnar: `Read` on uninitialized buffer may cause UB (ColumnarReadExt::read_typed_vec())

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation ColumnarReadExt::readtypedvec. Arbitrary Read implementations can read from the uninitialized buffer memory exposure and also can return incorrect number of bytes written to the buffer. Reading...

9.8CVSS9.4AI score0.01191EPSS
SaveExploits0References3
osv-rustsec
osv-rustsec
•added 2021/01/07 12:00 p.m.•26 views

RUSTSEC-2021-0091 Reading on uninitialized buffer may cause UB ( `gfx_auxil::read_spirv()` )

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Arbitrary Read implementations can read from the uninitialized buffer memory exposure and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory...

9.8CVSS9.4AI score0.01191EPSS
SaveExploits0References3
Total number of security vulnerabilities1310