Vulnerabilities / CVE-2025-34468

critical

CVE-2025-34468

libcoap versions up to and including 4.3.5, prior to commit 30db3ea, c ...

Published Modified CWE 121, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD.

Description

libcoap versions up to and including 4.3.5, prior to commit 30db3ea, contain a stack-based buffer overflow in address resolution when attacker-controlled hostname data is copied into a fixed 256-byte stack buffer without proper bounds checking. A remote attacker can trigger a crash and potentially achieve remote code execution depending on compiler options and runtime memory protections. Exploitation requires the proxy logic to be enabled (i.e., the proxy request handling code path in an application using libcoap).

Affected packages and fixed versions

SourcePackageFixed in
debian 12libcoap3no fix listed
debian 13libcoap34.3.4-1.1+deb13u3
debian 14libcoap34.3.5-3
echolibcoap34.3.4-1.1+deb13u3
rapidfort alpine 3.20libcoap4.3.5b-r0
rapidfort alpine 3.21libcoap4.3.5b-r0
rapidfort alpine 3.22libcoap4.3.5b-r0
rapidfort alpine 3.23libcoap4.3.5b-r0
rapidfort alpine 3.24libcoap4.3.5b-r0
rapidfort debian 12libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort debian 13libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort fedora 43libcoap, libcoap-devel, libcoap-doc and 1 more4.3.5b-1.fc43
Show all 15 entries from 12 sources
SourcePackageFixed in
debian 12libcoap3no fix listed
debian 13libcoap34.3.4-1.1+deb13u3
debian 14libcoap34.3.5-3
echolibcoap34.3.4-1.1+deb13u3
rapidfort alpine 3.20libcoap4.3.5b-r0
rapidfort alpine 3.21libcoap4.3.5b-r0
rapidfort alpine 3.22libcoap4.3.5b-r0
rapidfort alpine 3.23libcoap4.3.5b-r0
rapidfort alpine 3.24libcoap4.3.5b-r0
rapidfort debian 12libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort debian 13libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort fedora 43libcoap4.3.5b-1.fc43
rapidfort fedora 43libcoap-devel4.3.5b-1.fc43
rapidfort fedora 43libcoap-doc4.3.5b-1.fc43
rapidfort fedora 43libcoap-utils4.3.5b-1.fc43

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.