<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Wed, 28 Oct 2026 20:26:20 +0000</lastBuildDate>
    <item>
      <title>EUVD-2026-190865</title>
      <link>https://cve.radiocsirt.org/vuln/euvd-2026-190865</link>
      <description>EUVD-2026-190865</description>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/euvd-2026-190865</guid>
    </item>
    <item>
      <title>fkie_cve-2024-21530</title>
      <link>https://cve.radiocsirt.org/vuln/fkie_cve-2024-21530</link>
      <description>&lt;p&gt;Versions of the package cocoon before 0.4.0 are vulnerable to Reusing a Nonce, Key Pair in Encryption when the encrypt, wrap, and dump functions are sequentially called. An attacker can generate the same ciphertext by creating a new encrypted message with the same cocoon object.&#13;&#13;**Note:**&#13;The issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;Versions of the package cocoon before 0.4.0 are vulnerable to Reusing a Nonce, Key Pair in Encryption when the encrypt, wrap, and dump functions are sequentially called. An attacker can generate the same ciphertext by creating a new encrypted message with the same cocoon object.&#13;&#13;**Note:**&#13;The issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/fkie_cve-2024-21530</guid>
    </item>
    <item>
      <title>GHSA-6878-6wc2-pf5h — Sequential calls of encryption API (`encrypt`, `wrap`, and `dump`) result in nonce reuse</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-6878-6wc2-pf5h</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: cocoon&lt;/p&gt;
&lt;p&gt;**Problem**: Trying to create a new encrypted message with the same cocoon object generates the same ciphertext. It mostly affects `MiniCocoon` and `Cocoon` objects with custom seeds and RNGs (where `StdRng` is used under the hood).&lt;/p&gt;
&lt;p&gt;**Note**: The issue does **NOT** affect objects created with **`Cocoon::new`** which utilizes `ThreadRng`.&lt;/p&gt;
&lt;p&gt;**Cause**: `StdRng` produces the same nonce because `StdRng::clone` resets its state.&lt;/p&gt;
&lt;p&gt;**Measure**: Make encryption API mutable (`encrypt`, `wrap`, and `dump`).&lt;/p&gt;
&lt;p&gt;**Workaround**: Create a new cocoon object with a new **seed** per each encryption.&lt;/p&gt;
&lt;p&gt;## How to Reproduce&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data2)?;&lt;/p&gt;
&lt;p&gt;// data1: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
// data2: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
```&lt;/p&gt;
&lt;p&gt;## Workaround&lt;/p&gt;
&lt;p&gt;For `cocoon &amp;lt;= 0.3.3`, create a new cocoon with a different **seed** per each `encrypt`/`wrap`/`dump` call.&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;// Another seed: &amp;amp;[2; 32].
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[2; 32]);
let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: cocoon&lt;/p&gt;
&lt;p&gt;**Problem**: Trying to create a new encrypted message with the same cocoon object generates the same ciphertext. It mostly affects `MiniCocoon` and `Cocoon` objects with custom seeds and RNGs (where `StdRng` is used under the hood).&lt;/p&gt;
&lt;p&gt;**Note**: The issue does **NOT** affect objects created with **`Cocoon::new`** which utilizes `ThreadRng`.&lt;/p&gt;
&lt;p&gt;**Cause**: `StdRng` produces the same nonce because `StdRng::clone` resets its state.&lt;/p&gt;
&lt;p&gt;**Measure**: Make encryption API mutable (`encrypt`, `wrap`, and `dump`).&lt;/p&gt;
&lt;p&gt;**Workaround**: Create a new cocoon object with a new **seed** per each encryption.&lt;/p&gt;
&lt;p&gt;## How to Reproduce&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data2)?;&lt;/p&gt;
&lt;p&gt;// data1: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
// data2: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
```&lt;/p&gt;
&lt;p&gt;## Workaround&lt;/p&gt;
&lt;p&gt;For `cocoon &amp;lt;= 0.3.3`, create a new cocoon with a different **seed** per each `encrypt`/`wrap`/`dump` call.&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;// Another seed: &amp;amp;[2; 32].
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[2; 32]);
let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/ghsa-6878-6wc2-pf5h</guid>
    </item>
    <item>
      <title>gsd-2024-21530</title>
      <link>https://cve.radiocsirt.org/vuln/gsd-2024-21530</link>
      <description>gsd-2024-21530</description>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/gsd-2024-21530</guid>
    </item>
    <item>
      <title>RUSTSEC-2023-0068 — Sequential calls of encryption API (`encrypt`, `wrap`, and `dump`) result in nonce reuse</title>
      <link>https://cve.radiocsirt.org/vuln/rustsec-2023-0068</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: cocoon&lt;/p&gt;
&lt;p&gt;**Problem**: Trying to create a new encrypted message with the same cocoon
object generates the same ciphertext. It mostly affects `MiniCocoon` and
`Cocoon` objects with custom seeds and RNGs (where `StdRng` is used under
the hood).&lt;/p&gt;
&lt;p&gt;**Note**: The issue does **NOT** affect objects created with **`Cocoon::new`**
which utilizes `ThreadRng`.&lt;/p&gt;
&lt;p&gt;**Cause**: `StdRng` produces the same nonce because `StdRng::clone` resets its
state.&lt;/p&gt;
&lt;p&gt;**Measure**: Make encryption API mutable (`encrypt`, `wrap`, and `dump`).&lt;/p&gt;
&lt;p&gt;**Workaround**: Create a new cocoon object with a new **seed** per each
encryption.&lt;/p&gt;
&lt;p&gt;## How to Reproduce&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data2)?;&lt;/p&gt;
&lt;p&gt;// data1: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
// data2: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
```&lt;/p&gt;
&lt;p&gt;## Workaround&lt;/p&gt;
&lt;p&gt;For `cocoon &amp;lt;= 0.3.3`, create a new cocoon with a different **seed**
per each `encrypt`/`wrap`/`dump` call.&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;// Another seed: &amp;amp;[2; 32].
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[2; 32]);
let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: cocoon&lt;/p&gt;
&lt;p&gt;**Problem**: Trying to create a new encrypted message with the same cocoon
object generates the same ciphertext. It mostly affects `MiniCocoon` and
`Cocoon` objects with custom seeds and RNGs (where `StdRng` is used under
the hood).&lt;/p&gt;
&lt;p&gt;**Note**: The issue does **NOT** affect objects created with **`Cocoon::new`**
which utilizes `ThreadRng`.&lt;/p&gt;
&lt;p&gt;**Cause**: `StdRng` produces the same nonce because `StdRng::clone` resets its
state.&lt;/p&gt;
&lt;p&gt;**Measure**: Make encryption API mutable (`encrypt`, `wrap`, and `dump`).&lt;/p&gt;
&lt;p&gt;**Workaround**: Create a new cocoon object with a new **seed** per each
encryption.&lt;/p&gt;
&lt;p&gt;## How to Reproduce&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data2)?;&lt;/p&gt;
&lt;p&gt;// data1: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
// data2: [23, 217, 251, 151, 179, 62, 85, 15, 253, 92, 192, 112, 200, 52]
```&lt;/p&gt;
&lt;p&gt;## Workaround&lt;/p&gt;
&lt;p&gt;For `cocoon &amp;lt;= 0.3.3`, create a new cocoon with a different **seed**
per each `encrypt`/`wrap`/`dump` call.&lt;/p&gt;
&lt;p&gt;```rust
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[1; 32]);
let mut data1 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data1)?;&lt;/p&gt;
&lt;p&gt;// Another seed: &amp;amp;[2; 32].
let cocoon = MiniCocoon::from_password(b&amp;#34;password&amp;#34;, &amp;amp;[2; 32]);
let mut data2 = &amp;#34;my secret data&amp;#34;.to_owned().into_bytes();
let _ = cocoon.encrypt(&amp;amp;mut data…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/rustsec-2023-0068</guid>
    </item>
  </channel>
</rss>
