arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.06747cs.SE
收藏

安全漏洞对npm和RubyGems依赖网络的影响

On the Impact of Security Vulnerabilities in the npm and RubyGems Dependency Networks

Ahmed Zerouali, Tom Mens, Alexandre Decan, Coen De Roover

摘要:

对开源软件的兴趣越来越大,导致了可重用软件库的大型语言特定包发行版的出现,例如npm和RubyGems。这些软件包可能存在漏洞,这些漏洞可能通过显式声明的依赖关系暴露依赖包。本文使用Snyk的漏洞数据库,实证研究了影响npm和RubyGems包的漏洞。我们分析了这些漏洞是如何以及何时被披露和修复的,以及它们的流行程度如何随时间变化。我们还分析了易受攻击的软件包如何暴露其直接和间接依赖于漏洞。我们区分了两种类型的依赖项:通过包管理器分发的包,以及依赖于npm包的外部GitHub项目。我们观察到npm中的漏洞数量正在增加,并且比RubyGems中的漏洞披露得更快。对于这两个软件包发行版,披露漏洞所需的时间随着时间的推移而增加。npm软件包中的漏洞影响了30个软件包版本,而RubyGems软件包中的漏洞影响了59个版本。很大一部分外部GitHub项目都暴露在来自直接或间接依赖的漏洞中。项目和包所暴露的依赖关系漏洞中,分别有33%和40%在所使用依赖关系的相同主要版本范围内的最新版本中得到了修复。我们的研究结果表明,需要更多的努力来更好地保护开源软件包的分发。

英文摘要:

The increasing interest in open source software has led to the emergence of large language-specific package distributions of reusable software libraries, such as npm and RubyGems. These software packages can be subject to vulnerabilities that may expose dependent packages through explicitly declared dependencies. Using Snyk's vulnerability database, this article empirically studies vulnerabilities affecting npm and RubyGems packages. We analyse how and when these vulnerabilities are disclosed and fixed, and how their prevalence changes over time. We also analyse how vulnerable packages expose their direct and indirect dependents to vulnerabilities. We distinguish between two types of dependents: packages distributed via the package manager, and external GitHub projects depending on npm packages. We observe that the number of vulnerabilities in npm is increasing and being disclosed faster than vulnerabilities in RubyGems. For both package distributions, the time required to disclose vulnerabilities is increasing over time. Vulnerabilities in npm packages affect a median of 30 package releases, while this is 59 releases in RubyGems packages. A large proportion of external GitHub projects is exposed to vulnerabilities coming from direct or indirect dependencies. 33% and 40% of dependency vulnerabilities to which projects and packages are exposed, respectively, have their fixes in more recent releases within the same major release range of the used dependency. Our findings reveal that more effort is needed to better secure open source package distributions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑