Bug 2177714 - RUSTSEC-2021-0153: encoding is unmaintained
Summary: RUSTSEC-2021-0153: encoding is unmaintained
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-encoding
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rust SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2214199 2214200 2214201 2214202 2214206
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-13 13:17 UTC by Fabio Valentini
Modified: 2024-01-20 00:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-01-20 00:32:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fabio Valentini 2023-03-13 13:17:28 UTC
c.f. https://rustsec.org/advisories/RUSTSEC-2021-0153.html

The last release of the "encoding" crate was on 2016-08-28, and the last commit in the git repository of the project on GitHub was on 2017-07-11.

The "encoding_rs" crate is listed as a possible replacement.

The following Rust packages in Fedora depend on the "encoding" crate:

- librsvg2
- bat
- compress-tools
- lopdf
- tendril
- url (v1)

I plan to mark the "rust-encoding-devel" package with "Provides: deprecated()" to ensure no new packages in Fedora start depending on it, and will file additional bugs for all dependent packages.

Comment 1 Fabio Valentini 2023-06-12 09:49:57 UTC
librsvg2 seems to have switched from the "encoding" to the "encoding_rs" crate since I filed this bug.

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

Comment 3 Fabio Valentini 2023-11-27 13:04:10 UTC
bat and lopdf have moved away from the "encoding" crate as well.
The remaining dependent packages are:

- rust-compress-tools
- rust-tendril
- rust-url1

Comment 4 Fabio Valentini 2024-01-19 19:45:22 UTC
As far as I can tell, all users of the "encoding" crate have now dropped the dependency. As soon as I can verify this with a global repository query, I will retire the package in Rawhide.

Comment 5 Fabio Valentini 2024-01-20 00:32:24 UTC
I have confirmed that nothing depends on this crate any longer in Rawhide, and have just retired the package:
https://src.fedoraproject.org/rpms/rust-encoding/c/f13ed4598de7d43ca209a44844d0207d54412fcc

I will retire it in EPEL9 as well as soon as the required updates are stable.


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