{"api_version":"1","generated_at":"2026-07-23T14:12:22+00:00","cve":"CVE-2022-25766","urls":{"html":"https://cve.report/CVE-2022-25766","api":"https://cve.report/api/cve/CVE-2022-25766.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25766","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25766"},"summary":{"title":"CVE-2022-25766","description":"The package ungit before 1.5.20 are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-03-21 18:15:00","updated_at":"2023-08-08 14:21:00"},"problem_types":["CWE-88"],"metrics":[],"references":[{"url":"https://github.com/FredrikNoren/ungit/pull/1510","name":"https://github.com/FredrikNoren/ungit/pull/1510","refsource":"MISC","tags":[],"title":"Fix potential remote code exec by jung-kim · Pull Request #1510 · FredrikNoren/ungit · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","name":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","refsource":"MISC","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099","name":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099","refsource":"MISC","tags":[],"title":"Remote Code Execution (RCE) in ungit | CVE-2022-25766 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md#1520","name":"MISC:https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","refsource":"MITRE","tags":[],"title":"ungit/CHANGELOG.md at master · FredrikNoren/ungit · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25766","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25766","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Alessio Della Libera of Snyk Research Team","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"25766","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ungit_project","cpe5":"ungit","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-03-21T17:14:03.409654Z","ID":"CVE-2022-25766","STATE":"PUBLIC","TITLE":"Remote Code Execution (RCE)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ungit","version":{"version_data":[{"version_affected":"<","version_value":"1.5.20"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Remote Code Execution (RCE)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099","name":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099"},{"refsource":"MISC","url":"https://github.com/FredrikNoren/ungit/pull/1510","name":"https://github.com/FredrikNoren/ungit/pull/1510"},{"refsource":"MISC","url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","name":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520"}]},"description":{"description_data":[{"lang":"eng","value":"The package ungit before 1.5.20 are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},"credit":[{"lang":"eng","value":"Alessio Della Libera of Snyk Research Team"}]},"nvd":{"publishedDate":"2022-03-21 18:15:00","lastModifiedDate":"2023-08-08 14:21:00","problem_types":["CWE-88"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ungit_project:ungit:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.5.20","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}