Files
advisory-db/feed.xml
T
2021-09-10 15:58:46 +00:00

1 line
44 KiB
XML

<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2021-09-08T00:00:00+00:00</updated><author><name>RustSec</name></author><icon>https://rustsec.org/favicon.ico</icon><link href="https://rustsec.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://rustsec.org/" rel="alternate" type="text/html"/><subtitle>Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2021-0100: Vulnerability in sha2</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0100.html</id><updated>2021-09-08T00:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0100.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0100: Vulnerability in sha2"/><published>2021-09-08T00:00:00+00:00</published><summary>Miscomputed results when using AVX2 backend</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0100&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Miscomputed results when using AVX2 backend&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-09-08&quot;&gt;&#xA; September 8, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/sha2.html&quot;&gt;sha2&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/sha2&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;crypto-failure&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;RustCrypto&amp;#x2f;hashes&amp;#x2f;pull&amp;#x2f;314&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;RustCrypto&amp;#x2f;hashes&amp;#x2f;pull&amp;#x2f;314&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.9.8&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;unaffected&quot;&gt;Unaffected&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;lt;0.9.7&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;cryptography&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;The v0.9.7 release of the &lt;code&gt;sha2&lt;/code&gt; crate introduced a new AVX2-accelerated&#xA;backend which was automatically enabled for all x86/x86_64 CPUs where AVX2&#xA;support was autodetected at runtime.&lt;/p&gt;&#xA;&lt;p&gt;This backend was buggy and would miscompute results for long messages&#xA;(i.e. messages spanning multiple SHA blocks).&lt;/p&gt;&#xA;&lt;p&gt;The crate has since been yanked, but any users who upgraded to v0.9.7 should&#xA;immediately upgrade to v0.9.8 and recompute any hashes which were previously&#xA;computed by v0.9.7.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/sha2/RUSTSEC-2021-0100.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/sha2/RUSTSEC-2021-0100.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0099: cosmos_sdk is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0099.html</id><updated>2021-08-25T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0099.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0099: cosmos_sdk is unmaintained"/><published>2021-08-25T00:00:00+00:00</published><summary>Crate has been renamed to `cosmrs`</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0099&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Crate has been renamed to &lt;code&gt;cosmrs&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-08-25&quot;&gt;&#xA; August 25, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/cosmos_sdk.html&quot;&gt;cosmos_sdk&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/cosmos_sdk&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Unmaintained&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;cosmos&amp;#x2f;cosmos-rust&amp;#x2f;issues&amp;#x2f;113&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;cosmos&amp;#x2f;cosmos-rust&amp;#x2f;issues&amp;#x2f;113&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; no patched versions&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;The &lt;code&gt;cosmos_sdk&lt;/code&gt; crate, which provides a basic Rust SDK for the Cosmos ecosystem,&#xA;has rebranded to “CosmRS” in the spirit of other projects like CosmJS and CosmWasm.&lt;/p&gt;&#xA;&lt;p&gt;You can find the new home here:&lt;/p&gt;&#xA;&lt;p&gt;https://github.com/cosmos/cosmos-rust/tree/main/cosmrs&lt;/p&gt;&#xA;&lt;p&gt;The new crate name is &lt;code&gt;cosmrs&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;https://crates.io/crates/cosmrs&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/cosmos_sdk/RUSTSEC-2021-0099.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/cosmos_sdk/RUSTSEC-2021-0099.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0098: Vulnerability in openssl-src</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0098.html</id><updated>2021-08-24T00:00:00+00:00</updated><category term="denial-of-service"/><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0098.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0098: Vulnerability in openssl-src"/><published>2021-08-24T00:00:00+00:00</published><summary>Read buffer overruns processing ASN.1 strings</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0098&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Read buffer overruns processing ASN.1 strings&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-08-24&quot;&gt;&#xA; August 24, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/openssl-src.html&quot;&gt;openssl-src&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/openssl-src&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;denial-of-service&lt;/li&gt;&#xA; &#xA; &lt;li&gt;crypto-failure&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2021-3712&quot;&gt;CVE-2021-3712&lt;/a&gt;&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;www.openssl.org&amp;#x2f;news&amp;#x2f;secadv&amp;#x2f;20210824.txt&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;www.openssl.org&amp;#x2f;news&amp;#x2f;secadv&amp;#x2f;20210824.txt&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=111.16&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING&#xA;structure which contains a buffer holding the string data and a field holding&#xA;the buffer length. This contrasts with normal C strings which are represented as&#xA;a buffer for the string data which is terminated with a NUL (0) byte.&lt;/p&gt;&#xA;&lt;p&gt;Although not a strict requirement, ASN.1 strings that are parsed using OpenSSL&apos;s&#xA;own &amp;quot;d2i&amp;quot; functions (and other similar parsing functions) as well as any string&#xA;whose value has been set with the ASN1_STRING_set() function will additionally&#xA;NUL terminate the byte array in the ASN1_STRING structure.&lt;/p&gt;&#xA;&lt;p&gt;However, it is possible for applications to directly construct valid ASN1_STRING&#xA;structures which do not NUL terminate the byte array by directly setting the&#xA;&amp;quot;data&amp;quot; and &amp;quot;length&amp;quot; fields in the ASN1_STRING array. This can also happen by&#xA;using the &lt;code&gt;ASN1_STRING_set0()&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;p&gt;Numerous OpenSSL functions that print ASN.1 data have been found to assume that&#xA;the ASN1_STRING byte array will be NUL terminated, even though this is not&#xA;guaranteed for strings that have been directly constructed. Where an application&#xA;requests an ASN.1 structure to be printed, and where that ASN.1 structure&#xA;contains ASN1_STRINGs that have been directly constructed by the application&#xA;without NUL terminating the &amp;quot;data&amp;quot; field, then a read buffer overrun can occur.&lt;/p&gt;&#xA;&lt;p&gt;The same thing can also occur during name constraints processing of certificates&#xA;(for example if a certificate has been directly constructed by the application&#xA;instead of loading it via the OpenSSL parsing functions, and the certificate&#xA;contains non NUL terminated ASN1_STRING structures). It can also occur in the&#xA;&lt;code&gt;X509_get1_email()&lt;/code&gt;, &lt;code&gt;X509_REQ_get1_email()&lt;/code&gt; and &lt;code&gt;X509_get1_ocsp()&lt;/code&gt; functions.&lt;/p&gt;&#xA;&lt;p&gt;If a malicious actor can cause an application to directly construct an&#xA;ASN1_STRING and then process it through one of the affected OpenSSL functions&#xA;then this issue could be hit. This might result in a crash (causing a Denial of&#xA;Service attack). It could also result in the disclosure of private memory&#xA;contents (such as private keys, or sensitive plaintext).&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/openssl-src/RUSTSEC-2021-0098.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/openssl-src/RUSTSEC-2021-0098.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0097: Vulnerability in openssl-src</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0097.html</id><updated>2021-08-24T00:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0097.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0097: Vulnerability in openssl-src"/><published>2021-08-24T00:00:00+00:00</published><summary>SM2 Decryption Buffer Overflow</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0097&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;SM2 Decryption Buffer Overflow&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-08-24&quot;&gt;&#xA; August 24, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/openssl-src.html&quot;&gt;openssl-src&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/openssl-src&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;crypto-failure&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2021-3711&quot;&gt;CVE-2021-3711&lt;/a&gt;&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;www.openssl.org&amp;#x2f;news&amp;#x2f;secadv&amp;#x2f;20210824.txt&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;www.openssl.org&amp;#x2f;news&amp;#x2f;secadv&amp;#x2f;20210824.txt&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=111.16&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;In order to decrypt SM2 encrypted data an application is expected to call the&#xA;API function &lt;code&gt;EVP_PKEY_decrypt()&lt;/code&gt;. Typically an application will call this&#xA;function twice. The first time, on entry, the &amp;quot;out&amp;quot; parameter can be NULL and,&#xA;on exit, the &amp;quot;outlen&amp;quot; parameter is populated with the buffer size required to&#xA;hold the decrypted plaintext. The application can then allocate a sufficiently&#xA;sized buffer and call &lt;code&gt;EVP_PKEY_decrypt()&lt;/code&gt; again, but this time passing a non-NULL&#xA;value for the &amp;quot;out&amp;quot; parameter.&lt;/p&gt;&#xA;&lt;p&gt;A bug in the implementation of the SM2 decryption code means that the&#xA;calculation of the buffer size required to hold the plaintext returned by the&#xA;first call to &lt;code&gt;EVP_PKEY_decrypt()&lt;/code&gt; can be smaller than the actual size required by&#xA;the second call. This can lead to a buffer overflow when &lt;code&gt;EVP_PKEY_decrypt()&lt;/code&gt; is&#xA;called by the application a second time with a buffer that is too small.&lt;/p&gt;&#xA;&lt;p&gt;A malicious attacker who is able present SM2 content for decryption to an&#xA;application could cause attacker chosen data to overflow the buffer by up to a&#xA;maximum of 62 bytes altering the contents of other data held after the&#xA;buffer, possibly changing application behaviour or causing the application to&#xA;crash. The location of the buffer is application dependent but is typically&#xA;heap allocated.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/openssl-src/RUSTSEC-2021-0097.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/openssl-src/RUSTSEC-2021-0097.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0096: spirv_headers is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0096.html</id><updated>2021-08-16T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0096.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0096: spirv_headers is unmaintained"/><published>2021-08-16T00:00:00+00:00</published><summary>spirv_headers is unmaintained, use spirv instead</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0096&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;spirv_headers is unmaintained, use spirv instead&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-08-16&quot;&gt;&#xA; August 16, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/spirv_headers.html&quot;&gt;spirv_headers&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/spirv_headers&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Unmaintained&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;gfx-rs&amp;#x2f;rspirv&amp;#x2f;issues&amp;#x2f;197&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;gfx-rs&amp;#x2f;rspirv&amp;#x2f;issues&amp;#x2f;197&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; no patched versions&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;Because of versioning issues; the &lt;code&gt;spirv_headers&lt;/code&gt; crate is unmaintained. Use &lt;a href=&quot;https://crates.io/crates/spirv&quot;&gt;spirv&lt;/a&gt;&#xA;for parsing spirv files.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/spirv_headers/RUSTSEC-2021-0096.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/spirv_headers/RUSTSEC-2021-0096.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0082: Unsoundness in vec-const</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0082.html</id><updated>2021-08-14T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0082.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0082: Unsoundness in vec-const"/><published>2021-08-14T00:00:00+00:00</published><summary>vec-const attempts to construct a Vec from a pointer to a const slice</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0082&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;vec-const attempts to construct a Vec from a pointer to a const slice&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-08-14&quot;&gt;&#xA; August 14, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/vec-const.html&quot;&gt;vec-const&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/vec-const&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Unsound&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;memory-corruption&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;Eolu&amp;#x2f;vec-const&amp;#x2f;issues&amp;#x2f;1#issuecomment-898908241&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;Eolu&amp;#x2f;vec-const&amp;#x2f;issues&amp;#x2f;1#issuecomment-898908241&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; no patched versions&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;memory-safety&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;This crate claims to construct a const &lt;code&gt;Vec&lt;/code&gt; with nonzero length and capacity, but that cannot be done because such a &lt;code&gt;Vec&lt;/code&gt; requires a pointer from an allocator.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/vec-const/RUSTSEC-2021-0082.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/vec-const/RUSTSEC-2021-0082.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0093: Vulnerability in crossbeam-deque</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0093.html</id><updated>2021-07-30T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0093.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0093: Vulnerability in crossbeam-deque"/><published>2021-07-30T00:00:00+00:00</published><summary>Data race in crossbeam-deque</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0093&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Data race in crossbeam-deque&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-30&quot;&gt;&#xA; July 30, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/crossbeam-deque.html&quot;&gt;crossbeam-deque&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/crossbeam-deque&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;memory-corruption&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; GHSA-pqqp-xmhj-wgcw&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2021-32810&quot;&gt;CVE-2021-32810&lt;/a&gt;&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;crossbeam-rs&amp;#x2f;crossbeam&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-pqqp-xmhj-wgcw&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;crossbeam-rs&amp;#x2f;crossbeam&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-pqqp-xmhj-wgcw&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.7.4, &amp;lt;0.8.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.8.1&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;In the affected version of this crate, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug.&lt;/p&gt;&#xA;&lt;p&gt;Crates using &lt;code&gt;Stealer::steal&lt;/code&gt;, &lt;code&gt;Stealer::steal_batch&lt;/code&gt;, or &lt;code&gt;Stealer::steal_batch_and_pop&lt;/code&gt; are affected by this issue.&lt;/p&gt;&#xA;&lt;p&gt;Credits to @kmaork for discovering, reporting and fixing the bug.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/crossbeam-deque/RUSTSEC-2021-0093.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/crossbeam-deque/RUSTSEC-2021-0093.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0103: Vulnerability in molecule</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0103.html</id><updated>2021-07-30T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0103.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0103: Vulnerability in molecule"/><published>2021-07-30T00:00:00+00:00</published><summary> Partial read is incorrect in molecule</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0103&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Partial read is incorrect in molecule&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-30&quot;&gt;&#xA; July 30, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/molecule.html&quot;&gt;molecule&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/molecule&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;nervosnetwork&amp;#x2f;molecule&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-82hm-vh7g-hrh9&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;nervosnetwork&amp;#x2f;molecule&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-82hm-vh7g-hrh9&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.7.2&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;Anyone who uses total_size(..) function to partial read the length of any FixVec will get an incorrect result, due to an incorrect implementation. This has been resolved in the 0.7.2 release.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/molecule/RUSTSEC-2021-0103.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/molecule/RUSTSEC-2021-0103.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0109: Vulnerability in ckb</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0109.html</id><updated>2021-07-25T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0109.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0109: Vulnerability in ckb"/><published>2021-07-25T00:00:00+00:00</published><summary>Process crashes when the cell used as DepGroup is not alive</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0109&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Process crashes when the cell used as DepGroup is not alive&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-25&quot;&gt;&#xA; July 25, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/ckb.html&quot;&gt;ckb&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/ckb&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; GHSA-45p7-c959-rgcm&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;nervosnetwork&amp;#x2f;ckb&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-45p7-c959-rgcm&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;nervosnetwork&amp;#x2f;ckb&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-45p7-c959-rgcm&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.40.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;It&apos;s easy to create a malign transaction which uses the dead cell as the DepGroup in the DepCells. The transaction can crash all the receiving nodes.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/ckb/RUSTSEC-2021-0109.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/ckb/RUSTSEC-2021-0109.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0107: Vulnerability in ckb</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0107.html</id><updated>2021-07-25T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0107.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0107: Vulnerability in ckb"/><published>2021-07-25T00:00:00+00:00</published><summary>Miner fails to get block template when a cell used as a cell dep has been destroyed.</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0107&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Miner fails to get block template when a cell used as a cell dep has been destroyed.&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-25&quot;&gt;&#xA; July 25, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/ckb.html&quot;&gt;ckb&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/ckb&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; GHSA-v666-6w97-pcwm&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;nervosnetwork&amp;#x2f;ckb&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-v666-6w97-pcwm&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;nervosnetwork&amp;#x2f;ckb&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-v666-6w97-pcwm&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.40.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;h2&gt;Impact&lt;/h2&gt;&#xA;&lt;p&gt;The RPC get_block_template fails when a cell has been used as a cell dep and an input in the different transactions.&lt;/p&gt;&#xA;&lt;p&gt;Say cell C is used as a dep group in the transaction A, and is destroyed in the transaction B.&lt;/p&gt;&#xA;&lt;p&gt;The node adds transaction A first, then B into the transaction pool. They are both valid. But when generating the block template, if the fee rate of B is higher, it comes before A, which will invalidate A. Currently the RPC get_block_template will fail instead of dropping A.&lt;/p&gt;&#xA;&lt;h2&gt;Patch&lt;/h2&gt;&#xA;&lt;p&gt;First, the get_block_template should not fail but dropping the conflict transactions.&lt;/p&gt;&#xA;&lt;p&gt;Then we can propose solution to this issue. Here is an example. When a transaction is added to the pool, the pool must consider it depending on all the transactions which dep cell (direct or indirect via dep group) has been destroyed in this transaction. Because future transactions using the destroyed cells as dep will be rejected, the spending transaction only need to wait for all the existing dep transactions on chain.&lt;/p&gt;&#xA;&lt;h2&gt;Workaround&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;Submit transaction B when A is already on chain.&#xA;Let B depend on A explicitly, there are several solutions:&#xA; a. Add any output cell on A as a dep cell or input in B.&#xA; b. Merge A and B. CKB allows using the same cell as both dep and input in the same transaction.&#xA;Ensure the fee rate of B is less than A so A always has higher priority.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/ckb/RUSTSEC-2021-0107.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/ckb/RUSTSEC-2021-0107.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry></feed>