Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Lifecycle Timeline
6DescriptionCVE.org
A maliciously crafted RTE file, when parsed through Autodesk Revit, can force a Heap-Based Overflow vulnerability. A malicious actor can leverage this vulnerability to cause a crash, read sensitive data, or execute arbitrary code in the context of the current process.
AnalysisAI
CVE-2025-5040 is a heap-based buffer overflow vulnerability in Autodesk Revit's RTE file parser that allows local attackers with user interaction to trigger memory corruption. Successful exploitation enables arbitrary code execution, sensitive data theft, or application denial of service within the Revit process context. This vulnerability requires a maliciously crafted RTE file and user action to open it, making it a moderate-to-high priority for organizations using Revit for design workflows.
Technical ContextAI
The vulnerability exists in Autodesk Revit's RTE (Revit Template Exchange or similar binary format) file parsing logic, which fails to properly validate buffer boundaries during deserialization. CWE-122 (Heap-based Buffer Overflow) indicates the vulnerability occurs in dynamically allocated memory rather than the stack, potentially allowing attackers to corrupt heap metadata, bypass security mechanisms, or hijack object pointers. The RTE parser likely lacks adequate bounds checking when reading variable-length fields or nested structures from untrusted input, a common issue in legacy CAD file format parsers. Affected CPE would be: cpe:2.3:a:autodesk:revit:*:*:*:*:*:*:*:* (all versions until patched). The vulnerability stems from unsafe memory operations common in C/C++-based CAD applications handling complex binary formats.
RemediationAI
- IMMEDIATE: Disable opening untrusted RTE files; educate users not to open RTE files from untrusted sources (email, external file shares). 2. PATCH: Apply Autodesk's security update for Revit once released (check Autodesk Security Advisories at https://www.autodesk.com/trust/security-advisories). Patch version not specified in description; contact Autodesk support for availability. 3. WORKAROUND: Validate RTE files programmatically before opening (requires custom tools or Autodesk guidance). 4. DETECTION: Monitor for suspicious Revit crashes or unexpected memory errors in logs; implement file integrity checking for RTE repositories. 5. NETWORK: Restrict RTE file distribution through email filters if possible; use centralized, scanned file repositories.
A maliciously crafted RCS file, when parsed through Autodesk Revit, can force an Out-of-Bounds Write vulnerability. Rate
A maliciously crafted JPG file, when linked or imported into certain Autodesk applications, can force a Heap-Based Overf
A maliciously crafted DWG file, when parsed through Autodesk Revit, can cause a Stack-Based Buffer Overflow vulnerabilit
A maliciously crafted PDF file, when linked or imported into Autodesk applications, can force a Heap-Based Overflow vuln
A maliciously crafted PDF file, when parsed through Autodesk applications, can force a Memory Corruption vulnerability.
A maliciously crafted PDF file, when linked or imported into Autodesk applications, can force a Heap-Based Overflow vuln
Use-After-Free vulnerability (CWE-416) in Autodesk Revit triggered by maliciously crafted RFA (Revit Family) files that
A maliciously crafted DWG file, when parsed through certain Autodesk applications, can force an Out-of-Bounds Write vuln
CVE-2025-5037 is a memory corruption vulnerability in Autodesk Revit triggered by parsing maliciously crafted RFA, RTE,
A maliciously crafted SKP file, when linked or imported into Autodesk Revit, can be used to cause a Heap-based Overflow.
A maliciously crafted DLL file, when placed in the same directory as an RVT file could be loaded by Autodesk Revit, and
A maliciously crafted RFA file, when parsed through Autodesk Revit, can force a Stack-Based Buffer Overflow. Rated high
Same weakness CWE-122 – Heap-based Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-20991