Critical Vulnerabilities in Git Package: USN-5810-4 Update Required
Summary
USN-5810-4: git vulnerabilities. Affects git versions < 1:1.9.1-1ubuntu0.10+esm1. Fixed in 1:1.9.1-1ubuntu0.10+esm1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Git is a widely used version control system that enables developers to track changes in source code during software development. It is known for its speed, efficiency, and support for distributed, non-linear workflows. However, certain vulnerabilities have been identified that could allow attackers to exploit Git's handling of specific commands and attributes, potentially leading to crashes or arbitrary code execution.
Vulnerability Detail
The vulnerabilities identified in Git, specifically CVE-2022-23521 and CVE-2022-41903, stem from improper handling of gitattributes and certain commands. These flaws could allow an attacker to craft malicious inputs that may crash the application or execute arbitrary code, posing significant risks to systems utilizing affected versions of Git.
How To Fix
Minimum fixed version
1:1.9.1-1ubuntu0.10+esm1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade git
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary measure, users can avoid using specific gitattributes or commands that are known to trigger the vulnerabilities until the package is updated. However, this is not a long-term solution and updating the package is strongly recommended.
Conclusion
In summary, the vulnerabilities in Git pose serious risks that can lead to crashes or arbitrary code execution. It is crucial for users to update to the patched version to mitigate these risks. Additionally, utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for git →
FAQ
The vulnerabilities are CVE-2022-23521 and CVE-2022-41903, which involve improper handling of gitattributes and certain commands.
You can check your Git version by running 'git --version' in your terminal. If it is below 1:1.9.1-1ubuntu0.10+esm1, it is affected.
Failing to update Git could expose your system to crashes and arbitrary code execution, which may lead to data loss or unauthorized access.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
References
Related vulnerabilities
Recent vulnerabilities recorded for git.