PT-2021-5825

CVE-2021-23362

·

Published

2021-03-23

·

Updated

2023-08-08

Description by

CVSS 3.1
5.3
Medium
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions hosted-git-info versions prior to 3.0.8
Description The issue is related to a Regular Expression Denial of Service (ReDoS) in the fromUrl function in index.js. This occurs due to the shortcutMatch regular expression, which exhibits polynomial worst-case time complexity. The vulnerability can be exploited by a remote attacker to cause a denial of service.
Recommendations For versions prior to 3.0.8, update to version 3.0.8 or later to resolve the issue. As a temporary workaround, consider disabling the fromUrl function until a patch is available. Restrict access to the index.js file to minimize the risk of exploitation. Avoid using the shortcutMatch regular expression in the affected API endpoint until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-43F8-2H32-F4CJ
ALSA-2021:3073
ALSA-2021:3074
AZL-44058
CESA-2021_3073
CESA-2021_3074
MGASA-2021-0372
OESA-2021-1168
OPENSUSE-SU-2021:1059-1
OPENSUSE-SU-2021_1059-1
OPENSUSE-SU-2021:1060-1
OPENSUSE-SU-2021_1060-1
OPENSUSE-SU-2021:1061-1
OPENSUSE-SU-2021_1061-1
OPENSUSE-SU-2021:1113-1
OPENSUSE-SU-2021_1113-1
OPENSUSE-SU-2021:2327-1
OPENSUSE-SU-2021_2327-1
OPENSUSE-SU-2021:2353-1
OPENSUSE-SU-2021_2353-1
OPENSUSE-SU-2021:2354-1
OPENSUSE-SU-2021_2354-1
OPENSUSE-SU-2021:2618-1
OPENSUSE-SU-2021_2618-1
RHSA-2021:2931
RHSA-2021:2932
RHSA-2021:3073
RHSA-2021_3073
RHSA-2021:3074
RHSA-2021_3074
RHSA-2021:3638
RHSA-2021:3639
RLSA-2021:3073
RLSA-2021:3074
SNYK-JAVA-ORGWEBJARSNPM-1088356
SNYK-JS-HOSTEDGITINFO-1088355
SUSE-SU-2021:2319-1
SUSE-SU-2021:2323-1
SUSE-SU-2021:2326-1
SUSE-SU-2021:2327-1
SUSE-SU-2021:2353-1
SUSE-SU-2021:2354-1
SUSE-SU-2021:2618-1
SUSE-SU-2021:2620-1
USN-5216-1
Found an issue in the description? Have something to add? Feel free to write us 👾