1. Archivio CVE
  2. 2021
  3. CVE-2021-31888

CVE-2021-31888

8.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 8.8 – Alta

Descrizione

A vulnerability has been identified in APOGEE MBC (PPC) (BACnet) (All versions), APOGEE MBC (PPC) (P2 Ethernet) (All versions), APOGEE MEC (PPC) (BACnet) (All versions), APOGEE MEC (PPC) (P2 Ethernet) (All versions), APOGEE PXC Compact (BACnet) (All versions < V3.5.4), APOGEE PXC Compact (P2 Ethernet) (All versions < V2.8.19), APOGEE PXC Modular (BACnet) (All versions < V3.5.4), APOGEE PXC Modular (P2 Ethernet) (All versions < V2.8.19), Desigo PXC00-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC00-U (All versions >= V2.3 and < V6.30.016), Desigo PXC001-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC100-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC12-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC128-U (All versions >= V2.3 and < V6.30.016), Desigo PXC200-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC22-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC22.1-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC36.1-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC50-E.D (All versions >= V2.3 and < V6.30.016), Desigo PXC64-U (All versions >= V2.3 and < V6.30.016), Desigo PXM20-E (All versions >= V2.3 and < V6.30.016), Nucleus NET (All versions), Nucleus ReadyStart V3 (All versions < V2017.02.4), Nucleus Source Code (All versions), TALON TC Compact (BACnet) (All versions < V3.5.4), TALON TC Modular (BACnet) (All versions < V3.5.4). FTP server does not properly validate the length of the “MKD/XMKD” command, leading to stack-based buffer overflows. This may result in Denial-of-Service conditions and Remote Code Execution. (FSMD-2021-0018)

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
siemens apogee modular building controller firmware tutte –
siemens apogee modular equiment controller firmware tutte –
siemens apogee pxc compact firmware < 2.8.19 –
siemens apogee pxc compact firmware < 3.5.4 –
siemens apogee pxc modular firmware < 2.8.19 –
siemens apogee pxc modular firmware < 3.5.4 –
siemens desigo pxc00-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc00-u firmware >= 2.3 < 6.30.016 –
siemens desigo pxc001-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc100-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc12-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc128-u firmware >= 2.3 < 6.30.016 –
siemens desigo pxc200-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc22-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc22.1-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc36.1-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc50-e.d firmware >= 2.3 < 6.30.016 –
siemens desigo pxc64-u firmware >= 2.3 < 6.30.016 –
siemens desigo pxm20-e firmware >= 2.3 < 6.30.016 –
siemens nucleus net tutte –
siemens nucleus readystart v3 < 2017.02.4 –
siemens nucleus source code tutte –
siemens talon tc compact firmware < 3.5.4 –
siemens talon tc modular firmware < 3.5.4 –
Tutte le 25 vulnerabilità di Siemens Nucleus Net
Tutte le 20 vulnerabilità di Siemens Nucleus Readystart V3
Tutte le 25 vulnerabilità di Siemens Nucleus Source Code

Tipo di vulnerabilità

CWE-170 Improper Null Termination

The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Integrità, Disponibilità Leggere la memoria, Eseguire codice o comandi non autorizzati
Riservatezza, Integrità, Disponibilità Interruzione del servizio: arresto o riavvio, Leggere la memoria, Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria
Integrità, Disponibilità Modificare la memoria, Interruzione del servizio: arresto o riavvio
Integrità, Riservatezza, Disponibilità, Controllo degli accessi, Altro Alterare la logica di esecuzione, Eseguire codice o comandi non autorizzati

Come si previene

Requisiti Use a language that is not susceptible to these issues. However, be careful of null byte interaction errors (CWE-626) with lower-level constructs that may be written in a language that is susceptible.
Sviluppo Ensure that all string functions used are understood fully as to how they append null characters. Also, be wary of off-by-one errors when appending nulls to the end of strings.
Sviluppo If performance constraints permit, special code can be added that validates null-termination of string buffers, this is a rather naive and error-prone solution.
Sviluppo Switch to bounded string manipulation functions. Inspect buffer lengths involved in the buffer overrun trace reported with the defect.
Sviluppo Add code that fills buffers with nulls (however, the length of buffers still needs to be inspected, to ensure that the non null-terminated string is not written at the physical end of the buffer).

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 47 CVE di tipo CWE-170, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org