Bug 2214198 - RUSTSEC-2023-0042: ouroboros < 0.16 is unsound
Summary: RUSTSEC-2023-0042: ouroboros < 0.16 is unsound
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-ouroboros
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christian Heimes
QA Contact:
URL:
Whiteboard:
Depends On: 2214229 2214227 2214228
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-12 09:39 UTC by Fabio Valentini
Modified: 2023-08-16 07:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pyca cryptography pull 8800 0 None Merged Switch from ourborous to self_cell 2023-06-12 12:32:23 UTC

Description Fabio Valentini 2023-06-12 09:39:33 UTC
c.f. https://rustsec.org/advisories/RUSTSEC-2023-0042.html

The ouroboros crate is affected by soundness issues, which could result in invalid code being generated in future versions of Rust. The upstream project recommends to migrate to the self_cell crate:

https://github.com/joshua-maros/ouroboros/issues/88

Affected packages in Fedora:

- mercurial
- python-cryptography
- rust-zoxide

Comment 1 Christian Heimes 2023-06-12 12:32:24 UTC
Upstream PyCA cryptography has switched to self_cell two hours ago, https://github.com/pyca/cryptography/pull/8800

Comment 2 Fabio Valentini 2023-07-30 17:06:11 UTC
The RUSTSEC advisory for ouroboros was updated:

Upstream project has continued development, and recent versions (>= 0.16) should no longer suffer from soundness issues. I've updated the bug title accordingly (since ouroboros in Fedora is stuck at a version that's still affected).

However, mercurial has since switched to self_cell, so it is no longer affected.

That only leaves zoxide and python-cryptography (looks like the migration to self_cell was only merged to main / future version 42, but not the 41.0.x branch, and Fedora is stuck on the v40 branch anyway).

Comment 3 Christian Heimes 2023-08-14 08:12:49 UTC
ouroboros 0.17.2 is now available in Rawhide.

I have patched python-cryptography 41.0.3 to use ouroboros 0.17. The code builds and all tests are passing.

The ouroboros update also unblocks update of zoxide to latest version 0.9.2.

Comment 4 Fedora Release Engineering 2023-08-16 07:14:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


Note You need to log in before you can comment on or make changes to this bug.