github libgit2/libgit2 v0.27.4
libgit2 v0.27.4

latest releases: v1.8.0, v1.7.2, v1.6.5...
5 years ago

This is a security release fixing out-of-bounds reads when
processing smart-protocol "ng" packets.

When parsing an "ng" packet, we keep track of both the current position
as well as the remaining length of the packet itself. But instead of
taking care not to exceed the length, we pass the current pointer's
position to strchr, which will search for a certain character until
hitting NUL. It is thus possible to create a crafted packet which
doesn't contain a NUL byte to trigger an out-of-bounds read.

The issue was discovered by the oss-fuzz project, issue 9406.

Don't miss a new libgit2 release

NewReleases is sending notifications on new releases.