Home / CVE-2024-31852
CVE-2024-31852: is it exploited, and which versions are affected and fixed?
CVE-2024-31852 is a vulnerability its CVE record describes as "LLVM before 18.1.3 generates code in which the LR register can be overwritten without data being saved to the stack, and thus there can sometimes be an exploitable error in the flow of control". It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). The record names no affected version range. No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.9, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:30 UTC.
What is CVE-2024-31852?
LLVM before 18.1.3 generates code in which the LR register can be overwritten without data being saved to the stack, and thus there can sometimes be an exploitable error in the flow of control. This affects the ARM backend and can be demonstrated with Clang. NOTE: the vendor perspective is "we don't have strong objections for a CVE to be created ... It does seem that the likelihood of this miscompile enabling an exploit remains very low, because the miscompile resulting in this JOP gadget is such that the function is most likely to crash on most valid inputs to the function. So, if this function is covered by any testing, the miscompile is most likely to be discovered before the binary is shipped to production."
From the CVE record by mitre, last updated December 4, 2024, 21:06 UTC.
How severe is CVE-2024-31852?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-31852 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, July 31, 2024)
- EPSS
- 0.99% probability of exploitation activity in the next 30 days, percentile 63.7 (FIRST EPSS, scores of December 3, 2026)
Where are the vendor advisories and references?
- https://github.com/llvm/llvm-project/issues/80287
- https://llvm.org/docs/Security.html
- https://bugs.chromium.org/p/llvm/issues/detail?id=69
- https://github.com/llvmbot/llvm-project/commit/0e16af8e4cf3a66ad5d078d52744ae2776f9c4b2
When was it published, and where is the official record?
- Reserved
- April 5, 2024
- Published
- April 5, 2024, 00:00 UTC
- CVE record updated
- December 4, 2024, 21:06 UTC by mitre
- NVD
- Deferred, last modified June 17, 2026, 07:28 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:30 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Which other CVEs were published on April 5, 2024?
- Apr 5, 2024CVE-2024-3357 SourceCodester Aplaya Beach Resort Online Reservation System: cross-site scripting (XSS)
- Apr 5, 2024CVE-2024-3356 SourceCodester Aplaya Beach Resort Online Reservation System: SQL injection
- Apr 5, 2024CVE-2024-27912 Lenovo Printers: improper input validation
- Apr 5, 2024CVE-2024-27911 Lenovo Printers: missing authorization
- Apr 5, 2024CVE-2024-27910 Lenovo Printers: missing authorization
- Apr 5, 2024CVE-2024-27909 Lenovo Printers: improper input validation
- Apr 5, 2024CVE-2024-27908 Lenovo Printers: buffer overflow
- Apr 5, 2024CVE-2024-23592 Lenovo Synaptics Fingerprint Readers: improperly Implemented Security Check for Standard
Every CVE published on April 5, 2024
Questions about CVE-2024-31852
Is CVE-2024-31852 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.99% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which version fixes CVE-2024-31852?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2024-31852?
Medium (5.9, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2024-31852?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.