A Closer Look at the Security Risks in the Rust Ecosystem
Xiaoye Zheng (1), Zhiyuan Wan (1), Yun Zhang (2), Rui Chang (1), David, Lo (3) ((1) Zhejiang University, (2) Hangzhou City University, (3) Singapore, Management University)

TL;DR
This paper systematically investigates security vulnerabilities in the Rust ecosystem, analyzing their characteristics, affected packages, and fix practices based on a dataset of 433 vulnerabilities over seven years.
Contribution
It provides a comprehensive analysis of Rust ecosystem security risks, including vulnerability types, lifecycle, package impact, and fix complexity, filling a gap in existing research.
Findings
Vulnerabilities have diverse types and long life spans.
Popular packages tend to have higher vulnerability density.
Vulnerability fixes vary in complexity and code locality.
Abstract
Rust is an emerging programming language designed for the development of systems software. To facilitate the reuse of Rust code, crates.io, as a central package registry of the Rust ecosystem, hosts thousands of third-party Rust packages. The openness of crates.io enables the growth of the Rust ecosystem but comes with security risks by severe security advisories. Although Rust guarantees a software program to be safe via programming language features and strict compile-time checking, the unsafe keyword in Rust allows developers to bypass compiler safety checks for certain regions of code. Prior studies empirically investigate the memory safety and concurrency bugs in the Rust ecosystem, as well as the usage of unsafe keywords in practice. Nonetheless, the literature lacks a systematic investigation of the security risks in the Rust ecosystem. In this paper, we perform a comprehensive…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Reliability and Analysis Research · Software Engineering Research · Software Testing and Debugging Techniques
