CVE-2021-23362

NameCVE-2021-23362
DescriptionThe package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular expression exhibits polynomial worst-case time complexity.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-hosted-git-info (PTS)stretch2.1.5-1fixed
buster2.7.1-1vulnerable
bullseye, sid3.0.8-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-hosted-git-infosourcestretch(not affected)
node-hosted-git-infosource(unstable)3.0.8-1

Notes

[buster] - node-hosted-git-info <no-dsa> (Minor issue)
[stretch] - node-hosted-git-info <not-affected> (Vulnerable code introduced later)
Fixed by: https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355

Search for package or bug name: Reporting problems