CVE-2024-25391: rt-thread · Stack-based Buffer Overflow
Affects rt-threadSource CVE Database V5
Not known to be exploited · CVSS 8.4 High : upgrade to 5.0.3 soon.
Data as of 26 Oct 2026, 12:54 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.0.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade rt-thread/rt-thread to 5.0.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubrt-thread/rt-threadpkg:github/rt-thread/rt-threadOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Monitor RT-Thread vendor communications closely and apply security patches immediately once available to address CVE-2024-25391.
- Restrict local access to devices running RT-Thread by enforcing strict physical security controls and network segmentation to limit attacker proximity.
- Implement runtime protections such as stack canaries, address space layout randomization (ASLR), and memory protection units (MPUs) where supported by the hardware and RTOS configuration.
- Conduct thorough code audits and static analysis on custom RT-Thread applications to identify and remediate similar buffer overflow risks.
- Employ intrusion detection systems and anomaly detection to monitor for unusual local activity indicative of exploitation attempts.
- Educate operational technology (OT) and embedded system teams about the risks of local vulnerabilities and the importance of secure device management.
- Where feasible, isolate critical RT-Thread devices from less secure network segments to reduce attack surface.
- Consider deploying endpoint protection solutions tailored for embedded systems that can detect exploitation behaviors.
Description
A stack buffer overflow occurs in libc/posix/ipc/mqueue.c in RT-Thread through 5.0.2.
References
- github.com/RT-Thread/rt-thread/issues/8287 (opens in a new tab)
- github.com/hnsecurity/vulns/blob/main/HNS-2024-05-rt-thread.txt (opens in a new tab)
- security.humanativaspa.it/multiple-vulnerabilities-in-rt-thread-rtos/ (opens in a new tab)
- seclists.org/fulldisclosure/2024/Mar/28 (opens in a new tab)
- openwall.com/lists/oss-security/2024/03/05/1 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Mar/28 (opens in a new tab)