Skip to main content
No exploitation reportedFix available

CVE-2022-25766

No exploitation reported by the sources we read.

  • Published2022-03-21
  • Fixed in1.5.20
  • WeaknessCWE-88

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-03-2118:15CVE publishedNVD
  2. 2026-12-0204:55EPSS crossed 10 %FIRST EPSS

Versions per branch

NVD · OSV
Ungit project ungit
BranchAffectedFixed in
1.5< 1.5.201.5.20

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Fix

  1. Update Ungit project ungit to 1.5.20

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.18.8known since 2026-10-23
  • NVDCVSS 3.18.8read 2026-10-23
  • NVDCVSS 2.06.5read 2026-10-23
  • NVDweakness (CWE)CWE-88read 2026-10-23
  • FIRST EPSSEPSS score34.5 %read 2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2022-03-28

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2022-03-21
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-hf8c-xr89-vfm5

Frequently asked questions

What is CVE-2022-25766?

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.

Is CVE-2022-25766 actively exploited?

Active exploitation of CVE-2022-25766 has not been confirmed. Its EPSS score was 34.5% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-25766?

CVE-2022-25766 has a CVSS v3 base score of 8.8 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running ungit? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record