OSV-2022-508 Heap-buffer-overflow in coap_split_uri_sub

Not scored Published

A heap buffer overflow in the CoAP library's URI splitting function allows attackers to cause crashes or potentially execute code via crafted network packets.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is OSV-2022-508?

OSV-2022-508 is a memory corruption vulnerability in libcoap, published on 26 Jun 2022. It can be exploited over the network, with no action from the victim.

Official description

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

Crash type: Heap-buffer-overflow READ 1
Crash state:
coap_split_uri_sub
coap_get_uri_path

Which versions are affected by OSV-2022-508?

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

PackageAffectedFixed in
libcoap OSS-FuzzAll versionsNone

How do I fix OSV-2022-508?

No fix has been published for OSV-2022-508 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-2022-508 being exploited?

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

Sources

Is OSV-2022-508 in your software?

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

Check your SBOMs for free