Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain adjacent network access
-
DeliverySend crafted UDS diagnostic request
-
ExploitTrigger memcpy overflow in send_diagnostic_request
-
ExecutionOverwrite stack return address
-
ImpactExecute arbitrary code with service privileges
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must have adjacent network access to the target system running vulnerable uds-c library, meaning physical proximity to automotive diagnostic network (CAN bus access), connection to same vehicle WiFi/Ethernet segment, or compromise of device on diagnostic subnet. The send_diagnostic_request function must be reachable via network-facing diagnostic service interface. Exploitation requires crafting UDS request where 1 + pid_length + payload_length exceeds 6 bytes (MAX_DIAGNOSTIC_PAYLOAD_SIZE), easily achieved with standard pid_length=2 and payload_length=7. No authentication or user interaction required (PR:N/UI:N), but adjacent network requirement (AV:A) limits attack surface to local/physical network rather than internet-scale remote exploitation. Systems exposing diagnostic interfaces only via physically secured OBD-II ports or air-gapped test networks face lower practical risk than those with wireless diagnostic capabilities. |
| Impact | CVSS 8.8 (High) reflects adjacent network attack vector (AV:A), low complexity (AC:L), no privileges required (PR:N), and complete CIA impact. However, real-world risk is constrained by several factors: the library targets automotive diagnostic systems typically isolated on CAN/vehicle networks rather than internet-exposed infrastructure; the adjacent network requirement limits attackers to same subnet/physical proximity; and no CISA KEV listing or public exploit confirmation suggests theoretical rather than active exploitation. The 4-byte overflow is deterministic and stack-based, making exploitation technically feasible for skilled attackers with network access to vulnerable automotive systems. Primary risk applies to embedded automotive applications, diagnostic tools, and testing infrastructure using this library. Absence of EPSS data and CPE placeholder (cpe:2.3:a:n/a:n/a) indicates limited tracking of real-world deployments, making comprehensive impact assessment difficult. This is a high-severity issue for affected automotive systems but likely affects a narrow deployment base compared to enterprise software vulnerabilities. |
| Exploit ScenarioDerived | Attacker on adjacent network (same WiFi, Ethernet segment, or CAN bus) crafts malicious UDS diagnostic request with payload_length=7 and pid_length=2. The send_diagnostic_request function copies 10 bytes into 6-byte stack buffer, overwriting 4 bytes of adjacent stack memory. By controlling overflow content, attacker corrupts return address or function pointers to redirect execution to attacker-controlled code. Successful exploitation grants arbitrary code execution with privileges of the diagnostic service process, potentially enabling ECU reprogramming, data exfiltration, or denial of service in automotive systems. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 01, 2026
Stack buffer overflow in miaofng/uds-c library allows adjacent network attackers to execute arbitrary code via crafted diagnostic payload. The send_diagnostic_request function allocates only 6 bytes for MAX_DIAGNOSTIC_PAYLOAD_SIZE but accepts up to 7 bytes of payload (MAX_UDS_REQUEST_PAYLOAD_LENGTH), enabling 4-byte overflow when combined with pid_length=2. Affects commit e506334e270d77b20c0bc259ac6c7d8c9b702b7a from October 2016 and likely later versions unless patched. No CISA KEV listing or EPSS data indicates exploitation remains theoretical; vulnerability appears in automotive diagnostic library with limited deployment exposure.
RemediationAI
Review the vulnerability analysis at https://gist.github.com/sgInnora/f4ac66faeefe07a653ceeb3f58cdc381 for technical details. Check upstream repositories (miaofng/uds-c and openxc/uds-c) for commits adding bounds validation on payload_length parameter in send_diagnostic_request function; no specific patched version number is confirmed from available data. If using affected commit e506334e270d77b20c0bc259ac6c7d8c9b702b7a or nearby versions, apply source-level patch adding check: if (1 + pid_length + payload_length > MAX_DIAGNOSTIC_PAYLOAD_SIZE) return error before memcpy. For embedded systems where patching is infeasible, implement network-layer mitigations: restrict access to diagnostic interfaces using firewall rules allowing only trusted diagnostic tools, deploy network segmentation isolating vehicle/CAN networks from untrusted adjacent networks, and implement message filtering to reject UDS requests exceeding safe payload sizes at the gateway level. Note that disabling diagnostic services may impact legitimate maintenance and telemetry functions. Systems using this library only on physically isolated test benches face lower risk than production vehicle deployments.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in uds-c, a C implementation of the Unified Diagnostic Services (UDS) protocol used in automotive ECU communication (ISO 14229). The send_diagnostic_request function performs a memcpy operation into a 6-byte stack buffer starting at offset 1+pid_length (typically 1+2=3) for payload_length bytes. With MAX_UDS_REQUEST_PAYLOAD_LENGTH defined as 7, the maximum write is 1+2+7=10 bytes into a 6-byte buffer, creating a 4-byte overflow. The vulnerability stems from missing bounds validation on the payload_length parameter before the memcpy call, a classic CWE-120 (Buffer Copy without Checking Size of Input) pattern. This library appears to be a fork or variant of the OpenXC uds-c implementation, suggesting the vulnerability may exist in related codebases.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
miaofng/uds-c commit e506334e270d77b20c0bc259ac6c7d8c9b702b7a (2016-10-05) contains a stack buffer overflow in send_diagnostic_request. A 6-byte stack buffer (MAX_DIAGNOSTIC_PAYLOAD_SIZE=6) receives memcpy at offset 1+pid_length with payload_length bytes. MAX_UDS_REQUEST_PAYLOAD_LENGTH=7, so 1+2+7=10 exceeds buffer by 4 bytes. No bounds check on payload_length before memcpy.
Executive ViewAI
A stack buffer overflow in the miaofng/uds-c diagnostic library (CVE-2026-37536, CVSS 8.8) enables remote code execution through crafted UDS diagnostic payloads, posing critical risk to any automotive or industrial systems integrating this component for diagnostics or communications. Organizations using this library must immediately inventory affected deployments, as the vulnerability has no available patch and could allow attackers with network access to execute arbitrary code on diagnostic systems.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to diagnostic systems to trusted internal networks only; (2) Implement egress filtering to prevent exfiltration from compromised diagnostic components; (3) Disable UDS diagnostic services on production systems not requiring active diagnostics; (4) Deploy behavioral monitoring and IDS rules for malformed diagnostic payloads; (5) Evaluate community forks or alternative libraries with active security maintenance.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-26689
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB