{"answers":{"affected":"6 open source packages ship an affected version, including semver. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25883 exists.","fix":"Upgrade semver to a fixed version for your release line: 5.7.2, 6.3.1 or 7.5.2.","what":"CVE-2022-25883 is a medium-severity denial of service vulnerability in semver, published on 21 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-25883 and fix it if it is affected.\n\nWhat it is: CVE-2022-25883 is a medium-severity denial of service vulnerability in semver, published on 21 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25883 exists.\n\nAffected packages and fixed versions:\n- semver (npm): affected from 2.0.0-alpha; fixed in 5.7.2\n- semver (npm): affected from 2.0.0-alpha; fixed in 5.7.2\n- semver (npm): affected from 6.0.0; fixed in 6.3.1\n- semver (npm): affected from 6.0.0; fixed in 6.3.1\n- semver (npm): affected from 7.0.0; fixed in 7.5.2\n- semver (npm): affected from 7.0.0; fixed in 7.5.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-25883/ (Markdown: https://insights.sbomify.com/CVE-2022-25883/index.md)","id":"CVE-2022-25883","markdown":"https://insights.sbomify.com/CVE-2022-25883/index.md","name":"CVE-2022-25883","record":{"aliases":["AZL-27207","AZL-27208","AZL-43534","AZL-43717","AZL-44694","AZL-45168","CLSA-2026-1772496674","CLSA-2026-1773015263","CLSA-2026-1773015264","CLSA-2026-1775089629","CLSA-2026-1775089654","CLSA-2026-1776386161","CLSA-2026-1779065204","CLSA-2026-1779238050","CLSA-2026-1784509771","CLSA-2026-1784769500","CLSA-2026-1792473179","CLSA-2026-1792473264","DEBIAN-CVE-2022-25883","GHSA-c2qf-rxjj-qqgw","MINI-7h79-62v2-3j6x","MINI-8v88-r933-jw5h","ROOT-APP-NPM-CVE-2022-25883","UBUNTU-CVE-2022-25883","openSUSE-SU-2024:14012-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript semver library","requires_auth":"none","summary":"An attacker can cause a denial of service by providing untrusted data to the semver library's range function, triggering excessive CPU consumption.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"semver","vendor":"npmjs"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.","ecosystems":["npm","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"semver vulnerable to Regular Expression Denial of Service","id":"CVE-2022-25883","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":7,"n_references":6,"next":{"headline":"Denial of Service (DoS)","id":"CVE-2022-25885"},"packages":[{"ecosystem":"npm","fixed":["5.7.2"],"introduced":["2.0.0-alpha"],"last_affected":[],"package":"semver","purl":null,"source":"GHSA-c2qf-rxjj-qqgw"},{"ecosystem":"npm","fixed":["5.7.2"],"introduced":["2.0.0-alpha"],"last_affected":[],"package":"semver","purl":"pkg:npm/semver","source":"GHSA-c2qf-rxjj-qqgw"},{"ecosystem":"npm","fixed":["6.3.1"],"introduced":["6.0.0"],"last_affected":[],"package":"semver","purl":null,"source":"GHSA-c2qf-rxjj-qqgw"},{"ecosystem":"npm","fixed":["6.3.1"],"introduced":["6.0.0"],"last_affected":[],"package":"semver","purl":"pkg:npm/semver","source":"GHSA-c2qf-rxjj-qqgw"},{"ecosystem":"npm","fixed":["7.5.2"],"introduced":["7.0.0"],"last_affected":[],"package":"semver","purl":null,"source":"GHSA-c2qf-rxjj-qqgw"},{"ecosystem":"npm","fixed":["7.5.2"],"introduced":["7.0.0"],"last_affected":[],"package":"semver","purl":"pkg:npm/semver","source":"GHSA-c2qf-rxjj-qqgw"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.7.0.4.git74.3426c0a-9.1"],"introduced":["0"],"last_affected":[],"package":"velociraptor","purl":"pkg:rpm/opensuse/velociraptor\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14012-1"}],"prev":{"headline":"Directory Traversal in onnx","id":"CVE-2022-25882"},"products":["semver"],"published":"2023-06-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-06","vendors":["n/a"]},"summary":"An attacker can cause a denial of service by providing untrusted data to the semver library's range function, triggering excessive CPU consumption.","url":"https://insights.sbomify.com/CVE-2022-25883/"}