VulnarioBlogGit vulnerabilities

Git Vulnerabilities: The 10 Most Critical Git Security Bugs (CVEs)

Git vulnerabilities are security flaws in Git that attackers can abuse to steal data, take over a server or interrupt a service. Git is the distributed version control system used by almost every software team. The National Vulnerability Database (NVD) lists 41 CVEs for Git, 8 of them rated critical, and none were published in the last 12 months. CISA lists 1 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.

This guide lists the 10 most critical Git security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Git security basics, the current end-of-life dates and a free way to be told about the next Git CVE as soon as it is published.

Key takeaways

  • 1 CVE is in CISA's KEV catalog, so attackers have exploited it in the wild.
  • 8 Git CVEs are rated critical (CVSS v3), and 0 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2025-48384, published Jul 8, 2025.
  • Supported Git releases today (per endoflife.date): 2.56, 2.55, 2.54, 2.53, 2.52, 2.51. Releases not on the list are past their announced end of life.
  • You can monitor Git for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Git CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical Git CVEs at a glance

Most critical Git vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2025-483848.0 High2025-07-08Git Link FollowingYes
2CVE-2022-235219.8 Critical2023-01-17Integer overflowNo
3CVE-2022-419039.8 Critical2023-01-17Integer overflowNo
4CVE-2014-93909.8 Critical2020-02-12Improper input validationNo
5CVE-2019-13539.8 Critical2020-01-24Critical security flawNo
6CVE-2018-194869.8 Critical2018-11-23Critical security flawNo
7CVE-2018-174569.8 Critical2018-10-06Remote code executionNo
8CVE-2016-23159.8 Critical2016-04-08Memory buffer overflowNo
9CVE-2016-23249.8 Critical2016-04-08Memory buffer overflowNo
10CVE-2022-392608.8 High2022-10-19Heap buffer overflowNo

Each Git CVE explained

1. CVE-2025-48384: Git Link Following

  • CVSS 8.0 High
  • In CISA KEV (added 2025-08-25)
  • Published 2025-07-08
  • CWE-59
What NVD says
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read.
How it can be attacked
Can be exploited remotely over the network with high attack complexity, needing low privileges and user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 2.43.7; 2.44.0 to before 2.44.4; 2.45.0 to before 2.45.4; 2.46.0 to before 2.46.4
What to do
Upgrade to the fixed release for your branch (2.43.7, 2.44.4, 2.45.4) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2025-48384 (opens in a new tab)

2. CVE-2022-23521: Integer overflow

  • CVSS 9.8 Critical
  • Published 2023-01-17
  • CWE-190
What NVD says
Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 2.30.6; 2.31.0 through 2.31.5; 2.32.0 through 2.32.4; 2.33.0 through 2.33.5
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2022-23521 (opens in a new tab)

3. CVE-2022-41903: Integer overflow

  • CVSS 9.8 Critical
  • Published 2023-01-17
  • CWE-190
What NVD says
Git is distributed revision control system. `git log` can display commits in an arbitrary format using its `--format` specifiers. This functionality is also exposed to `git archive` via the `export-subst` gitattribute. When processing the padding operators, there is a integer overflow in `pretty.c::format_and_pad_commit()` where a `size_t` is stored improperly as an `int`, and then added as an offset to a `memcpy()`.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 2.30.6; 2.31.0 through 2.31.5; 2.32.0 through 2.32.4; 2.33.0 through 2.33.5
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2022-41903 (opens in a new tab)

4. CVE-2014-9390: Improper input validation

  • CVSS 9.8 Critical
  • Published 2020-02-12
  • CWE-20
What NVD says
Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and OS X; Mercurial before 3.2.3 on Windows and OS X; Apple Xcode before 6.2 beta 3; mine all versions before 08-12-2014; libgit2 all versions up to 0.21.2; Egit all versions before 08-12-2014; and JGit all versions before 08-12-2014 allow remote Git servers to execute arbitrary commands via a tree…
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 1.8.5.6; 1.9.0 to before 1.9.5; 2.0.0 to before 2.0.5; 2.1.0 to before 2.1.4
What to do
Upgrade to the fixed release for your branch (1.8.5.6, 1.9.5, 2.0.5) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2014-9390 (opens in a new tab)

5. CVE-2019-1353: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2020-01-24
What NVD says
An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6, v2.15.4, and v2.14.6. When running Git in the Windows Subsystem for Linux (also known as "WSL") while accessing a working directory on a regular Windows drive, none of the NTFS protections were active.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.14.0 to before 2.14.6; 2.15.0 to before 2.15.4; 2.16.0 to before 2.16.6; 2.17.0 to before 2.17.3
What to do
Upgrade to the fixed release for your branch (2.14.6, 2.15.4, 2.16.6) or a later one, then restart the service.

NVD record for CVE-2019-1353 (opens in a new tab)

6. CVE-2018-19486: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2018-11-23
  • CWE-426
What NVD says
Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of $PATH) in certain cases involving the run_command() API and run-command.c, because there was a dangerous change from execvp to execv during 2017.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 2.19.2
What to do
Upgrade to 2.19.2 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-19486 (opens in a new tab)

7. CVE-2018-17456: Remote code execution

  • CVSS 9.8 Critical
  • Published 2018-10-06
  • CWE-88
What NVD says
Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive "git clone" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.14.0 to before 2.14.5; 2.15.0 to before 2.15.3; 2.16.0 to before 2.16.5; 2.17.0 to before 2.17.2
What to do
Upgrade to the fixed release for your branch (2.14.5, 2.15.3, 2.16.5) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-17456 (opens in a new tab)

8. CVE-2016-2315: Memory buffer overflow

  • CVSS 9.8 Critical
  • Published 2016-04-08
  • CWE-119
What NVD says
revision.c in git before 2.7.4 uses an incorrect integer data type, which allows remote attackers to execute arbitrary code via a (1) long filename or (2) many nested trees, leading to a heap-based buffer overflow.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.7.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2016-2315 (opens in a new tab)

9. CVE-2016-2324: Memory buffer overflow

  • CVSS 9.8 Critical
  • Published 2016-04-08
  • CWE-119
What NVD says
Integer overflow in Git before 2.7.4 allows remote attackers to execute arbitrary code via a (1) long filename or (2) many nested trees, which triggers a heap-based buffer overflow.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 2.7.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2016-2324 (opens in a new tab)

10. CVE-2022-39260: Heap buffer overflow

  • CVSS 8.8 High
  • Published 2022-10-19
  • CWE-122
What NVD says
Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can be used to implement Git's push/pull functionality via SSH.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 2.30.6; 2.31.0 to before 2.31.5; 2.32.0 to before 2.32.4; 2.33.0 to before 2.33.5
What to do
Upgrade to the fixed release for your branch (2.30.6, 2.31.5, 2.32.4) or a later one, then restart the service.

NVD record for CVE-2022-39260 (opens in a new tab)

Git end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid Git vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Git releases are 2.56, 2.55, 2.54, 2.53, 2.52, 2.51.

Git release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Git 2.56Sep 28, 2026Not announced2.56.0Supported
Git 2.55Jun 29, 2026Not announced2.55.0Supported
Git 2.54Apr 20, 2026Not announced2.54.0Supported
Git 2.53Feb 2, 2026Not announced2.53.0Supported
Git 2.52Nov 17, 2025Not announced2.52.0Supported
Git 2.51Aug 18, 2025Not announced2.51.2Supported
Git 2.50Jun 16, 2025Not announced2.50.1Supported
Git 2.49Mar 14, 2025Not announced2.49.1Supported

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your Git is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

git --version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

Git security checklist

  1. Never expose management ports or dashboards to the internet without authentication.
  2. Rotate tokens and credentials, and keep them out of repositories and logs.
  3. Apply least privilege to pipelines, runners and service accounts.
  4. Update the tool and its plugins or extensions on a schedule.
  5. Pin versions of images and dependencies, and scan them.

Your stack is bigger than Git. A flaw anywhere in the chain can be the way in, so also review our guides to GitHub vulnerabilities, GitLab vulnerabilities and Bitbucket vulnerabilities.

How to get alerted about new Git vulnerabilities

NVD received 0 new Git CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Git and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run Git alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Git vulnerabilities

What are the most critical Git vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Git CVEs include CVE-2025-48384 (CVSS 8.0), CVE-2022-23521 (CVSS 9.8), CVE-2022-41903 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have Git vulnerabilities been exploited in real attacks?

Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 1 Git CVE, including CVE-2025-48384. Treat these as the highest priority to patch.

How many vulnerabilities does Git have?

As of Nov 3, 2026 the National Vulnerability Database lists 41 CVEs for Git, with 8 rated critical by CVSS v3. 0 were published in the previous twelve months.

Which Git versions are still supported?

As of Nov 3, 2026, endoflife.date lists these Git releases as supported: 2.56, 2.55, 2.54, 2.53, 2.52, 2.51. Releases that are not listed are past their announced end of life.

How do I check which Git version I run?

Run git --version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new Git CVE is published?

Add Git to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Git and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is Git secure?

Git is as secure as its patch level. NVD published 0 new Git CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2025-48384?

CVE-2025-48384 is a high Git vulnerability with a CVSS score of 8.0, published Jul 8, 2025. Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF).

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.