OSV-2023-56 Heap-buffer-overflow in git_oid_raw_cmp

Not scored Published

A heap-buffer overflow in the Git library allows attackers to cause denial of service or potentially execute code via crafted commit graph files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is OSV-2023-56?

OSV-2023-56 is a memory corruption vulnerability in libgit2, published on 7 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55724

Crash type: Heap-buffer-overflow READ {*}
Crash state:
git_oid_raw_cmp
commit_graph_parse_oid_lookup
git_commit_graph_file_parse

Which versions are affected by OSV-2023-56?

1 open source package ship an affected version, including libgit2.

PackageAffectedFixed in
libgit2 OSS-FuzzAll versionsNone

How do I fix OSV-2023-56?

No fix has been published for OSV-2023-56 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is OSV-2023-56 being exploited?

There is no known exploitation of OSV-2023-56 in the wild and no public exploit code.

Sources

Is OSV-2023-56 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free