The libcurl CVEs that matter for a device are the ones whose code is compiled into its libcurl build and reachable through the protocols, proxy settings and TLS backend the firmware actually uses, starting with the SOCKS5 heap overflow CVE-2023-38545 in libcurl 7.69.0 to 8.3.0.
To handle them, find every libcurl copy and its version in the image, record its protocols and TLS library, rank matches with EPSS and KEV data, then upgrade or patch, disable unused features and track curl's own advisories.
Key takeaways
- Because libcurl is the default HTTP and file-transfer library on embedded Linux, and it is often present more than once.
- The curl project rates each flaw Low, Medium, High or Critical, never with a number.
- The table below shows the pattern with five advisories.
- Unpack the image, locate every libcurl copy (shared and static), read the version string and confirm it against the package or build record.
Why does libcurl show up in so many firmware scans?
Because libcurl is the default HTTP and file-transfer library on embedded Linux, and it is often present more than once. Firmware update clients, cloud connectors, telemetry agents, provisioning scripts and web management back ends all use it, either through the shared libcurl.so.4 or as a statically linked copy inside one binary. curl's own advisories carry the same reminder: "libcurl is used by many applications, but not always advertised as such!"
The number of published CVEs is large. The curl project's security page listed 239 curl and libcurl vulnerabilities on 2026-11-11, and its release table shows 21 published vulnerabilities for 8.22.0, the release before the current 8.23.0 (14 October 2026). Counting the project's JSON vulnerability data for older versions that device images still carry, 7.88.1 (the Debian bookworm base) has 66 entries and 7.68.0 has 74. Many apply only to specific protocols, options or TLS libraries, yet a version-only scan lists them all, including flaws in TFTP, SMB, LDAP or NTLM code a lean device build never compiled. The work is narrowing that list to what is actually in the build.
How does the curl project rate its own vulnerabilities?
The curl project rates each flaw Low, Medium, High or Critical, never with a number. Its disclosure policy says it does "not support CVSS as a method to grade security vulnerabilities" and weighs "necessary build configuration, protocols involved, platform specifics" among other factors. Critical is reserved for flaws "easily exploitable by a remote unauthenticated attacker" leading to code execution "with a common configuration on a popular platform." The 239 entries in the JSON data split like this:
| curl severity | Entries (vuln.json, 2026-11-14) |
|---|---|
| Critical | 2 |
| High | 41 |
| Medium | 94 |
| Low | 102 |
The same policy lists issues the project does not treat as vulnerabilities at all, such as small memory leaks and transfers that never end. The security page also names two retracted CVEs (CVE-2019-15601, CVE-2023-32001) and two it calls "plain lies" (CVE-2020-19909, CVE-2023-52071). Scanners can still report those four; the curl page is the evidence for dismissing them.
Other scores can differ sharply. For CVE-2023-38545, NVD's primary CVSS 3.1 score is 9.8, the CISA-ADP score is 8.8, and curl rates it High. For a device, curl's build-configuration view is usually closer to the real exposure.
Which curl CVEs matter for embedded devices?
The table below shows the pattern with five advisories. Severity is the curl project's own rating; EPSS is FIRST data dated 2026-11-28; none of the five was in CISA's KEV catalog (version 2026.11.27).
| CVE | Area | Affected libcurl | curl severity | Build or use condition | EPSS |
|---|---|---|---|---|---|
| CVE-2023-38545 | SOCKS5 proxy handshake, heap overflow | 7.69.0 to 8.3.0 | High | SOCKS5 with remote hostname resolution, download buffer under 65541 bytes | 0.180, ~97.8th percentile |
| CVE-2026-92392 | HTTP/2 upload, use-after-free | 8.12.0 to 8.22.0 | High | HTTP/2 support built in and used for uploads | 0.0078, ~53rd percentile |
| CVE-2024-6197 | ASN.1 parser frees a stack buffer | 8.6.0 to 8.8.0 | Medium | GnuTLS, wolfSSL, Schannel, Secure Transport or mbedTLS backend | 0.0223, ~83rd percentile |
| CVE-2024-2398 | HTTP/2 server push memory leak | 7.44.0 to 8.6.0 | Medium | Application enables HTTP/2 server push | 0.0252, ~86th percentile |
| CVE-2023-38546 | Cookie injection with "none" file | 7.9.1 to 8.3.0 | Low | Duplicated easy handles with cookies enabled | 0.0191, ~80th percentile |
CVE-2023-38545 in detail. The curl advisory explains that when curl passes a hostname to a SOCKS5 proxy for remote resolution, names longer than 255 bytes should switch to local resolution, but "due to a bug, the local variable that means 'let the host resolve the name' could get the wrong value during a slow SOCKS5 handshake" and the too-long hostname is copied into the heap download buffer. The advisory states that an overflow "is only possible in applications that do not set CURLOPT_BUFFERSIZE or set it smaller than 65541." A malicious server redirecting to a crafted URL is one route in. The code path is used when an application sets CURLPROXY_SOCKS5_HOSTNAME or a socks5h:// proxy, including through the http_proxy, HTTPS_PROXY or ALL_PROXY environment variables.
TLS backend matters. Embedded builds often use mbedTLS or wolfSSL instead of OpenSSL to save space, and that choice moves CVEs in and out of scope. The CVE-2024-6197 advisory states that "the vulnerable code can only be reached when curl is built to use GnuTLS, wolfSSL, Schannel, Secure Transport or mbedTLS," triggered by a malicious server sending a crafted certificate. The same image with an OpenSSL-backed libcurl is not affected, although it then inherits OpenSSL's own CVEs, which our OpenSSL vulnerabilities in embedded firmware guide covers.
How do you find the libcurl version in a firmware image?
Unpack the image, locate every libcurl copy (shared and static), read the version string and confirm it against the package or build record. A practical sequence:
Unpack the root filesystemExtract the SquashFS, UBIFS, JFFS2 or ext4 image with binwalk or the vendor's tools. Find the shared library and the toolSearch for libcurl.so*and acurlbinary under/usr/lib,/liband/usr/bin. Runreadelf -dacross the ELF files to list which programs declarelibcurl.so.4as a dependency, since those are the code paths that matter later.Search for static copiesSearch every ELF file for the literal libcurl/followed by a version number, the prefix libcurl uses in its version text. A hit in an update agent or vendor daemon that does not linklibcurl.so.4is a separate, statically linked libcurl with its own version and its own patch status.Check the package or build recordOpenWrt-style images carry an opkg database with the libcurlpackage version and revision; Yocto and Buildroot builds produce manifests and license files listing it. Our Yocto and Buildroot SBOM guide covers how to get those records out of the build.Look for backports behind the versionThe version string records the upstream base, not the patch level. The Debian security tracker for CVE-2023-38545 marks bookworm's 7.88.1-10+deb12u4and bullseye's7.74.0-1.3+deb11u10as fixed by DSA-5523-1, and buster as not affected because the vulnerable code is absent. Ubuntu's CVE-2023-38545 entry likewise lists 22.04 LTS fixed in7.81.0-1ubuntu1.14and 20.04 LTS as not affected, with the note that the flaw affects 7.69 and higher. Device vendors backport in the same way; patches in the vendor SDK or GPL source release are the evidence.
Record each copy as its own SBOM entry. A package URL (purl) with the exact version, and the path of the binary that embeds it, keeps a static copy from disappearing behind the shared library's entry. Our firmware SBOM guide covers the wider inventory.
How do you see which protocols and TLS backend are compiled in?
Ask the build itself where you can, and read its link dependencies and configuration where you cannot. Three sources, in order of reliability:
| Source | What it shows | Notes |
|---|---|---|
curl -V under QEMU user-mode emulation |
Version line with TLS libraries, plus "Protocols:" and "Features:" lines | Only if the image ships the curl tool built against the same libcurl |
readelf -d libcurl.so.4 |
Linked TLS library (libssl, libmbedtls, libwolfssl, libgnutls), libnghttp2 for HTTP/2, libz, libssh2 for SFTP/SCP |
Static builds hide this, so fall back to strings and the build config |
| Build configuration | The configure line, CMake cache or package recipe options in the vendor's source release or build system | The authoritative answer for what was compiled out |
The curl manual describes the -V output directly: the first line includes "the full version of curl, libcurl and other 3rd party libraries linked with the executable," the line starting "Protocols:" "shows all protocols that libcurl reports to support," and the line starting "Features:" lists features such as HTTP2, HTTPS-proxy and AsynchDNS. If HTTP2 is missing from the features line, CVE-2026-92392 and CVE-2024-2398 do not apply. Proxy support has no line of its own in that output, so confirm from the build configuration whether libcurl was built with --disable-proxy, which removes the SOCKS code behind CVE-2023-38545.
Then check use, not only presence: look for socks5h:// and proxy variables in configuration files, init scripts and environment settings, and for HTTP/2 or proxy options in the calling programs.
What does the triage look like for one build? A worked example
Synthetic example: a firmware update agent linked against libcurl 8.5.0 with mbedTLS, configured with --disable-proxy, --disable-negotiate-auth, --disable-digest-auth, --disable-netrc, --without-nghttp2 and only HTTP and HTTPS enabled. The CVEs and their conditions are real, from curl's JSON data and advisories.
The vulnerability table data matches 55 entries to 8.5.0: 41 Low, 14 Medium, none High or Critical. The 14 Medium entries sort like this:
| Group | CVEs | Needs | This build |
|---|---|---|---|
| Negotiate connection reuse | CVE-2026-1965, CVE-2026-5545, CVE-2026-19931 | Negotiate authentication | Compiled out |
| Proxy credential leaks | CVE-2026-6253, CVE-2026-6429, CVE-2026-7168, CVE-2026-8927 | A proxy | Compiled out |
| Digest and token leaks | CVE-2026-11856, CVE-2026-3783 | Digest auth; a .netrc file |
Compiled out |
| Other protocols and backends | CVE-2025-14017, CVE-2025-5025, CVE-2024-8096, CVE-2024-2398 | LDAPS; QUIC with wolfSSL; GnuTLS; HTTP/2 push | Absent |
| mbedTLS IP-address hosts | CVE-2024-2466 | mbedTLS, server given as an IP address | Check |
CVE-2024-2466 is the one that survives: libcurl 8.5.0 and 8.6.0 built with mbedTLS skipped the certificate check entirely when the host was an IP address. If the agent's provisioning URL is https://192.0.2.10/, anyone on the network path can impersonate the update server. That is fixed in 8.7.0, and the release table lists 0 published vulnerabilities for 8.23.0, so one upgrade also clears the 41 Low entries.
How should you prioritise libcurl CVEs on a device?
Rank by build and use conditions first, exploitation data second, severity third:
- Present and reachable, high EPSS or KEV-listed: fix in the next firmware release. CVE-2023-38545 on a 7.69.0 to 8.3.0 build that uses
socks5h://is the clear example; its EPSS score puts it among the top 3% of scored CVEs. - Present, reachable, High severity, low EPSS: schedule promptly. CVE-2026-92392 on an 8.12.0 to 8.22.0 build that uploads over HTTP/2 belongs here; the curl advisory notes it "has been proven to be possible to convert into a Remote Code Execution" under a specific set of conditions.
- Compiled in but not used by any caller: remove the feature at the next rebuild and record the reasoning in a VEX statement.
- Not compiled in, or wrong TLS backend: document as not affected, with the build configuration as evidence.
A KEV listing overrides all of this; CISA's catalog (version 2026.11.27) has no curl entry. EPSS needs reading with care. CVE-2024-2398, a memory leak rated Medium, has a higher EPSS score than CVE-2026-92392, so use EPSS to order findings that are already confirmed reachable, not to replace the reachability check. Our KEV and EPSS prioritisation guide explains how the two signals combine.
How do you fix libcurl vulnerabilities in firmware?
Upgrade or patch, strip unused features from the build, rebuild and re-scan, then keep watching the curl advisories. Each curl advisory lists its own options.
Upgrade or backport. The CVE-2023-38545 advisory recommends upgrading to 8.4.0, applying the patch to the local version, or avoiding CURLPROXY_SOCKS5_HOSTNAME and socks5h:// proxies. For CVE-2026-92392 it is curl 8.23.0, the patch, or not using HTTP/2, and the advisory also lists fixed releases on older lines: 8.14.3, 8.16.2 and 8.20.2. A device pinned to an older libcurl for ABI reasons can carry the fix commit linked from each advisory, as Debian did for 7.88.1.
Build out what the product does not use. The curl INSTALL guide's "Reducing size" section tells embedded builders to "specify as many --disable- and --without- flags on the configure command-line as you can," including --disable-PROTOCOL for every unused URL scheme, --disable-proxy (HTTP and SOCKS proxies), --without-nghttp2 (HTTP/2) and --disable-cookies. Every protocol removed takes its future CVEs with it.
Rebuild, re-scan, record. Regenerate the SBOM for the new image, confirm the shipped libcurl version or patch level, and compare it with the previous release. Record "not affected" decisions for compiled-out code in a VEX document; our CSAF and VEX for device makers guide shows the format. Our BusyBox vulnerabilities and Dropbear SSH vulnerabilities guides cover the components that usually sit next to libcurl.
Track curl's advisories. The curl project is its own CVE Numbering Authority and publishes every advisory on its security page, with machine-readable OSV-format JSON that a build pipeline can poll. Per its disclosure policy, distributions on the distros@openwall list hear about High and Critical issues no more than seven days before the release. Updates still need a working delivery path to devices, which our firmware OTA update security guide covers.
What are the common libcurl triage mistakes?
- Comparing only with the newest release. Advisories also list fixes on older release lines, as CVE-2026-92392 does below.
- Counting retracted or bogus CVEs. Check the curl security page before spending time on them.
- Missing static copies. A daemon with its own libcurl does not move when the shared library is upgraded.
- Ignoring environment variables. A proxy set through
ALL_PROXYin an init script makes compiled-in proxy code reachable. - Ranking by NVD CVSS. curl's rating and the advisory's build conditions say more.
AI-assisted analysis: what SoftWSP actually runs
SoftWSP's automated scan unpacks a firmware image, catalogs the software components it can identify in the extracted file system, and records each one's name, version and identifiers. Where the image carries identifiable libcurl version evidence, such as a package database entry, it is matched against CVE records, CISA's KEV catalog and FIRST's EPSS scores. This matching is deterministic code: the code scores, and AI narrates.
AI writes the explanation on top of that matching: which libcurl CVEs matched, which are KEV-listed or have a high EPSS score, and what version evidence they rest on, with every sentence citing the component, version and record behind it. An engineer reviews every finding before the report is delivered. The manual judgements in this guide stay with that engineer: which protocols, proxy code and TLS backend are compiled in and used, whether a static copy hides inside another binary, and whether a vendor backport closes a version-matched CVE. Version matching flags Debian's patched 7.88.1 as affected by CVE-2023-38545; the review is where backport evidence turns that into a documented "not affected" decision.
For a specific image, see device & firmware security services.
This guide draws on the curl project's security page, vulnerability table, advisories for CVE-2023-38545, CVE-2023-38546, CVE-2024-2398, CVE-2024-2466, CVE-2024-6197 and CVE-2026-92392, its JSON vulnerability data, release table, disclosure policy, INSTALL guide and man page, the Debian Security Tracker, Ubuntu's CVE entry, NVD, CISA's KEV catalog (version 2026.11.27) and FIRST EPSS data dated 2026-11-28, re-read directly on 2026-11-14, with KEV and EPSS re-checked on 2026-11-29.
Put this guide to work
Frequently asked questions
Which libcurl CVEs matter most for an embedded device?
The ones whose vulnerable code is both compiled into your libcurl build and reachable through the options your firmware actually uses. CVE-2023-38545, the SOCKS5 heap buffer overflow rated High by the curl project, affects libcurl 7.69.0 to 8.3.0 but only overflows when an application uses SOCKS5 with remote hostname resolution (CURLPROXY_SOCKS5_HOSTNAME or a socks5h:// proxy, including through proxy environment variables) and leaves the download buffer below 65541 bytes. CVE-2024-6197 only exists in 8.6.0 to 8.8.0 builds that use GnuTLS, wolfSSL, Schannel, Secure Transport or mbedTLS. CVE-2026-92392, an HTTP/2 upload use-after-free rated High, needs HTTP/2 support. A version match is the start of the check, not the verdict.
How do I find the libcurl version inside a firmware image?
Unpack the root filesystem, look for libcurl.so.4 and any curl binary, and search every ELF file for the literal string "libcurl/" followed by a version number, because statically linked copies have no separate library file. Use readelf -d to see which programs list libcurl.so.4 as a dependency, and compare the result with the package database (opkg on OpenWrt-style images) or the build manifest. Treat the version as the upstream base only: Debian fixed CVE-2023-38545 in bookworm's 7.88.1-10+deb12u4 package without changing the upstream 7.88.1 version.
How do I tell which protocols and TLS backend a firmware's libcurl was built with?
If the image ships the curl tool, run curl -V under QEMU user-mode emulation: per the curl manual, its first line lists the libcurl version and linked TLS libraries, and the lines starting "Protocols:" and "Features:" show what that build supports. Without the tool, check which TLS library libcurl.so.4 links against with readelf -d (libssl, libmbedtls, libwolfssl or libgnutls), and read the build configuration in the vendor's source release or build system. The TLS backend decides whether some CVEs apply at all.
Is upgrading to the latest curl release the only fix?
No. Every curl advisory lists alternatives, typically upgrade, apply the published patch to your version, or avoid the affected feature. For CVE-2023-38545 the options are curl 8.4.0 or later, the patch, or not using socks5h:// and CURLPROXY_SOCKS5_HOSTNAME proxies. For embedded builds the most durable mitigation is configuring libcurl without unused features: the curl INSTALL guide lists --disable-PROTOCOL flags plus --disable-proxy, which removes HTTP and SOCKS proxy support entirely, and --without-nghttp2, which removes HTTP/2.
Does SoftWSP tell me whether a libcurl CVE is reachable in my firmware?
No, not automatically. SoftWSP's scan identifies software components and versions in the unpacked firmware file system and matches them against CVE records, CISA KEV and FIRST EPSS data; AI then writes a summary that cites the component, version and record behind each finding, and an engineer reviews it. Whether SOCKS5, HTTP/2 or a given TLS backend is compiled in and used, and whether a vendor backport already closes a version-matched CVE, is decided in that engineer review.
Sources
- curl project: curl CVEs (security page, all published curl/libcurl vulnerabilities)
- curl project: CVE-2023-38545, SOCKS5 heap buffer overflow (advisory, 11 October 2023)
- curl project: CVE-2024-6197, freeing stack buffer in utf8asn1str
- curl project: CVE-2024-2398, HTTP/2 push headers memory-leak
- curl project: CVE-2024-2466, TLS certificate check bypass with mbedTLS
- curl project: CVE-2023-38546, cookie injection with none file
- curl project: CVE-2026-92392, HTTP/2 upload Use-After-Free (14 October 2026)
- curl project: vulnerability data in JSON (OSV format)
- curl project: Vulnerability Disclosure Policy
- curl project: Vulnerability table (affected versions per CVE)
- curl project: How to install curl and libcurl (INSTALL, Reducing size)
- curl project: curl man page (-V, --version)
- curl project: Release table
- Debian Security Tracker: CVE-2023-38545 (curl)
- Ubuntu Security: CVE-2023-38545
- NIST NVD: CVE-2023-38545
- CISA: Known Exploited Vulnerabilities (KEV) Catalog
About this guide
SoftWSP Firmware Security Desk
Covers the Firmware vulnerabilities & fixes cluster: 135 guides.

In this cluster
Questions about this page?
