{"id":"CVE-2021-3795","aliases":["GHSA-44c6-4v22-4mhx"],"summary":"Inefficient Regular Expression Complexity in sindresorhus/semver-regex","published_at":"2021-09-10T00:00:00Z","modified_at":"2026-09-10T03:49:27.232553Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.015169999562203884,"percentile":0.7509400248527527,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"semver-regex is vulnerable to Inefficient Regular Expression Complexity","affected_stack":[{"ecosystem":"Red Hat:rhev_manager:4","package":"ovirt-engine-ui-extensions","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-3795","relation":"self"},{"ecosystem":"Red Hat:rhev_manager:4","package":"ovirt-web-ui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-3795","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"sindresorhus/sindresorhus/semver-regex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"fixed":["4.0.1","3.1.3"],"provider":"cvelistv5","source":"CVE-2021-3795","relation":"self"},{"ecosystem":"NVD","package":"semver-regex_project:semver-regex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"versions":["4.0.0"],"fixed":["3.1.3"],"provider":"nvd","source":"CVE-2021-3795","relation":"self"},{"ecosystem":"TuxCare:npm","package":"semver-regex","purl":"pkg:npm/semver-regex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0-tuxcare.0"},{"fixed":"2.0.0-tuxcare.1"}]}],"versions":["2.0.0"],"fixed":["2.0.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1791796134","relation":"upstream"},{"ecosystem":"npm","package":"semver-regex","purl":"pkg:npm/semver-regex","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"fixed":["3.1.3"],"provider":"osv","source":"GHSA-44c6-4v22-4mhx","relation":"self"},{"ecosystem":"npm","package":"semver-regex","purl":"pkg:npm/semver-regex","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"],"fixed":["4.0.1"],"provider":"osv","source":"GHSA-44c6-4v22-4mhx","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-api-rhel8","rhacm2/search-api-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2021-3795"},{"vendor":"Red Hat","product":"Red Hat Directory Server 11","cpe":"cpe:/a:redhat:directory_server:11","status":"not_affected","packages":["389-ds-base"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-3795"},{"vendor":"Red Hat","product":"Red Hat Virtualization 4","cpe":"cpe:/a:redhat:rhev_manager:4","status":"affected","packages":["ovirt-engine-ui-extensions","ovirt-web-ui"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-3795"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1791796134","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1791796134","published_at":"2026-10-12T09:08:54Z","modified_at":"2026-10-15T09:47:39.936812Z","summary":"TuxCare security update for semver-regex (2 CVEs)","details":"TuxCare rebuilt semver-regex to address 2 CVEs. Fixed in 2.0.0-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"semver-regex","purl":"pkg:npm/semver-regex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0-tuxcare.0"},{"fixed":"2.0.0-tuxcare.1"}]}],"versions":["2.0.0"],"fixed":["2.0.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1791796134","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2021-3795","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-3795","license":"CC-BY-4.0","published_at":"2021-09-15T16:23:49Z","modified_at":"2024-08-03T17:09:08.695Z","summary":"Inefficient Regular Expression Complexity in sindresorhus/semver-regex","details":"semver-regex is vulnerable to Inefficient Regular Expression Complexity","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2021-3795"}],"affected":[{"ecosystem":"CVE","package":"sindresorhus/sindresorhus/semver-regex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"fixed":["4.0.1","3.1.3"],"provider":"cvelistv5","source":"CVE-2021-3795","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28"},{"type":"WEB","url":"https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7"}]},{"provider":"nvd","source_id":"CVE-2021-3795","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3795","severity":[],"affected":[{"ecosystem":"NVD","package":"semver-regex_project:semver-regex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"versions":["4.0.0"],"fixed":["3.1.3"],"provider":"nvd","source":"CVE-2021-3795","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-44c6-4v22-4mhx","relation":"self","url":"https://osv.dev/vulnerability/GHSA-44c6-4v22-4mhx","license":"CC-BY-4.0","published_at":"2021-09-20T20:42:25Z","modified_at":"2026-09-10T03:49:27.232553Z","summary":"semver-regex Regular Expression Denial of Service (ReDOS)","details":"npm `semver-regex` is vulnerable to Inefficient Regular Expression Complexity","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GHSA-44c6-4v22-4mhx"}],"affected":[{"ecosystem":"npm","package":"semver-regex","purl":"pkg:npm/semver-regex","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"fixed":["3.1.3"],"provider":"osv","source":"GHSA-44c6-4v22-4mhx","relation":"self"},{"ecosystem":"npm","package":"semver-regex","purl":"pkg:npm/semver-regex","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"],"fixed":["4.0.1"],"provider":"osv","source":"GHSA-44c6-4v22-4mhx","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3795"},{"type":"WEB","url":"https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7"},{"type":"PACKAGE","url":"https://github.com/sindresorhus/semver-regex"},{"type":"WEB","url":"https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28"}]},{"provider":"redhat-vex","source_id":"CVE-2021-3795","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-3795","license":"CC-BY-4.0","published_at":"2021-09-10T00:00:00Z","modified_at":"2021-12-09T01:04:33Z","summary":"semver-regex: inefficient regular expression complexity","details":"A flaw was found in the semver-regex library where it could lead to consuming a big amount of resources when executing specific strings. Attackers could take advantage of this by crafting an invalid version causing a disruption or a denial of service (DoS).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2021-3795"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-3795"}],"affected":[{"ecosystem":"Red Hat:rhev_manager:4","package":"ovirt-engine-ui-extensions","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-3795","relation":"self"},{"ecosystem":"Red Hat:rhev_manager:4","package":"ovirt-web-ui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-3795","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-api-rhel8","rhacm2/search-api-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2021-3795"},{"vendor":"Red Hat","product":"Red Hat Directory Server 11","cpe":"cpe:/a:redhat:directory_server:11","status":"not_affected","packages":["389-ds-base"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-3795"},{"vendor":"Red Hat","product":"Red Hat Virtualization 4","cpe":"cpe:/a:redhat:rhev_manager:4","status":"affected","packages":["ovirt-engine-ui-extensions","ovirt-web-ui"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-3795"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3795.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-3795"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2006009"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-3795"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3795"}]}],"references":[{"type":"WEB","url":"https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28"},{"type":"WEB","url":"https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3795"},{"type":"PACKAGE","url":"https://github.com/sindresorhus/semver-regex"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3795.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-3795"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2006009"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-3795"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1791796134","url":"https://osv.dev/vulnerability/CLSA-2026-1791796134","modified_at":"2026-10-15T09:47:39.936812Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2021-3795","url":"https://www.cve.org/CVERecord?id=CVE-2021-3795","license":"CC-BY-4.0","modified_at":"2024-08-03T17:09:08.695Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-3795","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3795","relation":"self"},{"provider":"osv","source_id":"GHSA-44c6-4v22-4mhx","url":"https://osv.dev/vulnerability/GHSA-44c6-4v22-4mhx","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:27.232553Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-3795","url":"https://access.redhat.com/security/cve/CVE-2021-3795","license":"CC-BY-4.0","modified_at":"2021-12-09T01:04:33Z","relation":"self"}]}
