251 Advisories in wolfSSL, the TLS Library Inside Billions of Devices
We reviewed wolfSSL and published 251 advisories: 6 Critical, 40 High, 72 Medium and 133 Low. The standard build held up well. The serious problems were in the options device makers switch on, and half of them are memory corruption.
wolfSSL is a TLS library for small devices. TLS is what encrypts a network connection and proves who is at the other end, and on servers and laptops that job usually belongs to OpenSSL. wolfSSL does it in a fraction of the space, small enough for a sensor, a modem or a car component, and that is why device makers choose it.
By wolfSSL's own count, its products secure more than 2 billion applications and devices, and there are over 5 billion copies in production. The company lists routers, IP phones, printers, card readers, cars, industrial automation, smart grid equipment, smart home hubs and databases among the places it runs. It does not name most of its customers, as a matter of policy. The public names include MySQL, its first major user, and the open source projects that bundle it: OpenWrt, curl, Mongoose and Ubuntu. Its published case studies cover Cinterion cellular modules, the INSTEON smart home hub, Sensity's networked LED lighting and Gesytec's temperature monitoring receivers.
A company can be running wolfSSL without having chosen it, because it arrives inside modules and products bought from someone else.
What we have published lately
This is the largest batch we have released. Our advisory tracker at pop.byteray.co.uk now holds 354 advisories across 11 projects, and nearly all of them are in the software underneath a product.
In the last few months that has meant 68 advisories in EDK II, the open source UEFI firmware, and eight vulnerabilities in the U-Boot bootloader, most of them fixed in the 2026.10 release candidates. We published four in OP-TEE, the trusted execution environment used on Arm devices, and a flaw in lwIP's MQTT client that lets a malicious broker run code on the device that connects to it. There are smaller sets for InHand 5G modems, the EVerest electric vehicle charging stack, OpenBSD, MongoDB, Zabbix and curl. In October we wrote up a single wolfSSL bug, in its support for Silicon Labs secure chips. It was one of the first findings from the review this post is about.
The tracker has grown enough that we added filters for vendor and severity, so you can pull up one project's advisories on their own.
251 advisories, and where they were
The wolfSSL set is 251 advisories: 6 Critical, 40 High, 72 Medium and 133 Low. Most of the testing was on wolfSSL 5.9.2.
A standard wolfSSL build, the kind you get with default settings on a Linux server, held up well. All six Critical findings and most of the High ones need an option that is switched off by default.
That is less reassuring than it sounds, because device makers rarely ship the default. wolfSSL is built to be tailored. You turn on support for your chip, pick a memory model that suits a small board, and add the OpenSSL compatibility layer so existing code keeps working. The serious bugs were in those options. So the question for anyone shipping wolfSSL is which options their build has on, and each advisory states the configuration it needs.
Memory corruption, half of the serious findings
wolfSSL is written in C, a language that leaves it to the programmer to keep every piece of data inside the memory set aside for it. When that slips, data from the network lands on top of something else, or the program keeps using memory it has already given back. The usual result is a crash, and with enough control over what gets written an attacker can run code on the device. Of the 46 Critical and High advisories, 23 are bugs of this kind.
Five of the six Critical advisories are one mistake repeated in different parts of the handshake. On builds that use one of wolfSSL's alternative maths libraries and allow Diffie-Hellman keys larger than 4096 bits, wolfSSL worked out a shared key that was bigger than the space set aside for it. The excess, up to 512 bytes, was written over whatever sat next to it in memory.
This happens during the opening handshake, before either side has proved its identity. On a server, anyone who can reach the TLS port can trigger it, with no account and no certificate. We reproduced it as a crash. Whether an attacker can go from there to running code depends on the device, and we did not demonstrate that. The attacker cannot freely choose the bytes that get written, which makes it harder.
Three High advisories trace back to a single line. Some embedded compilers only accept C89, the 1989 version of the language, and wolfSSL has a build mode for them. C89 has no function that formats text with a length limit, so in that mode wolfSSL swaps in the one without a limit.
When a program on such a build prints a certificate or a certificate request, for a log or an admin page, text from that certificate is formatted into a fixed space of 80 or 129 bytes. A longer value runs past the end, and whoever supplied the certificate decides how far. We reproduced all three. In one test a certificate with a 200-character name was enough.
Another group is memory that gets used after it has been released. A server can keep TLS sessions in its own store and hand one back to wolfSSL when a client returns. In three places wolfSSL released a session the application still held. The next client to ask for that session, which takes no credentials, made the server read memory it no longer owned and release it a second time. Whether a server is exposed depends on how its own code talks to wolfSSL.
Small boards often have no general-purpose memory manager, so wolfSSL can run from fixed pools that the device maker sets aside. In two findings, memory taken from a pool is handed back to the wrong owner. A client can cause the first through the hostname it asks for, and the server crashes when the connection closes. A server can cause the second in a client by sending an unusually long value with a session ticket.
wolfSSL also ships a traffic inspection tool that decrypts captured TLS sessions for monitoring. One of the Critical key exchange findings is in that tool, and in two High ones a crafted record makes it read past the end of its buffer. The attacker there is one end of a connection being watched.
Devices that all share the same random numbers
Encryption keys are secret only if the random numbers behind them cannot be predicted. For a list of embedded platforms where wolfSSL had no hardware random source to call, it compiled in a placeholder that hands back 0, 1, 2, 3 and so on.
The build prints a warning and finishes. The device then works normally, and every key it generates is the same as on every other device built that way, after every reboot. Anyone with the public source code can calculate those keys. We built it and got identical output from two separate runs. This is the sixth Critical advisory.
Twelve High advisories cover a milder version of the same problem on specific platforms, including VxWorks 6.x, TI-RTOS, Zephyr, Nucleus and Microchip PIC32 builds without the hardware generator. There the seed comes from the clock, a tick counter or a generator that was never meant for cryptography, all of which an attacker can guess or narrow down.
A software update does not fully repair this one. If a product shipped with a weak seed, the keys it has already generated have to be treated as known and replaced. wolfSSL's fix for the placeholder makes the build stop with an error unless the integrator supplies a real random source or explicitly accepts the weak one.
Getting in without the client certificate
Many device fleets and internal services use client certificates, so that only enrolled devices can connect. TLS also lets a returning client skip the full handshake by presenting a ticket from an earlier session. wolfSSL treated a valid ticket as proof that the client had been authenticated, and the ticket carried no record of whether a certificate had ever been checked.
Where a server handed out tickets on a connection that did not require a certificate and accepted them on one that did, a client with no certificate could connect to the protected one. We reproduced this on TLS 1.2 and TLS 1.3. The server's own verification result read as success, so an application that trusted that result had no sign the check had been skipped.
A second finding affects servers that reuse a connection object for the next client instead of creating a new one. wolfSSL left part of the previous client's session behind. The next client could resume that session with no credentials at all, and the connection that followed was protected by keys that anyone watching the network could calculate. We found this one by reading the code and did not build an exploit for it.
Encryption that repeats itself
Ciphers such as AES-GCM need a fresh one-time value for every message. If the value repeats, someone who captures the traffic can start recovering what was sent and can forge messages that pass as genuine.
We found six places where wolfSSL reused that value or set it to all zeros, while reporting success to the application. Five are in the OpenSSL compatibility interface, in its handling of AES-CCM, ARIA and SM4, and most of them show up when an application encrypts more than one message with the same cipher object. The sixth is in an optional multi-threaded mode, where data went out damaged and the application was told it had been sent.
wolfSSL's own TLS connections do not go through that compatibility interface, so the exposure is in applications that call it directly.
The findings to look at first
The table lists the findings above and the other High ones we would check first. Each row links to an advisory with the affected configuration and the fix or workaround.
| Finding | What it allows | Advisory |
|---|---|---|
| Oversized key exchange on builds with the alternative maths library | Memory corruption before authentication. Crash confirmed. | BYTERAY-2026-0293 to 0297 |
| Placeholder random seed | The same predictable keys on every device | BYTERAY-2026-0298 |
| Weak random seeds on twelve embedded platforms | Guessable keys | BYTERAY-2026-0325 to 0336 |
| Session ticket accepted in place of a client certificate | Access without a certificate | BYTERAY-2026-0304 |
| Leftover session on a reused server connection | Takeover of the previous client's session, with readable traffic | BYTERAY-2026-0307 |
| Repeated or all-zero value in authenticated encryption | Message recovery and forgery | BYTERAY-2026-0319 to 0324 |
| Certificate printing in C89 builds | A long value in a certificate overflows the stack of the program that prints it | BYTERAY-2026-0308 to 0310 |
| Session cache frees a session the application still holds | Use of freed memory when a client resumes a session | BYTERAY-2026-0299 to 0301 |
| Pool memory released to the wrong owner | A remote crash and memory corruption, triggered by the hostname a client asks for or by a server's session ticket | BYTERAY-2026-0302, 0303 |
| Traffic inspection tool reads past its buffer | A crash of the monitoring process | BYTERAY-2026-0312, 0314 |
| Compressed record handling | A peer writes about 17 KB past a buffer. Fixed in 5.9.4. | BYTERAY-2026-0337 |
| Silicon Labs secure chip support | Memory corruption while a certificate is being read | BYTERAY-2026-0220 |
Reported to wolfSSL
We reported every one of these findings to wolfSSL before publishing, and their engineers have been working through the reports and fixing the code. Each advisory on the tracker shows its current status.
If you ship wolfSSL
These are the things to take to your engineering team.
- Find out where wolfSSL is, including inside modules and products you buy, and which version.
- Get the list of build options that are switched on and compare it with the advisories.
- Search your build logs for the phrase "write a real random seed". If it is there, plan to replace the keys those devices generated.
- If you use client certificates and session tickets together, keep separate ticket keys for endpoints with different rules until you have the fix.
- For each advisory that applies to you, check its status on the tracker and ask your supplier when the fix reaches the version you ship.
All 251 advisories are on pop.byteray.co.uk, and this view shows the wolfSSL set on its own.