1. Archivio CVE
  2. 2025
  3. CVE-2025-21597

CVE-2025-21597

5.3 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H 5.3 – Media

Descrizione

An Improper Check for Unusual or Exceptional Conditions vulnerability in routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved allows an unauthenticated, logically adjacent BGP peer to cause Denial of Service (DoS). On all Junos OS and Junos OS Evolved platforms, when BGP rib-sharding and update-threading are configured, and a BGP peer flap is done with specific timing, rpd crashes and restarts. Continuous peer flapping at specific time intervals will result in a sustained Denial of Service (DoS) condition. This issue affects eBGP and iBGP, in both IPv4 and IPv6 implementations. This issue requires a remote attacker to have at least one established BGP session. The issue can occur with or without logical-systems enabled. This issue affects: Junos OS: * All versions before 20.4R3-S8, * 21.2 versions before 21.2R3-S6, * 21.3 versions before 21.3R3-S5, * 21.4 versions before 21.4R3-S4, * 22.1 versions before 22.1R3-S3, * 22.2 versions before 22.2R3-S1, * 22.3 versions before 22.3R3, * 22.4 versions before 22.4R3. Junos OS Evolved: * All versions before 21.2R3-S6-EVO, * 21.3-EVO versions before 21.3R3-S5-EVO, * 21.4-EVO versions before 21.4R3-S4-EVO, * 22.1-EVO versions before 22.1R3-S3-EVO, * 22.2-EVO versions before :22.2R3-S1-EVO, * 22.3-EVO versions before 22.3R3-EVO, * 22.4-EVO versions before 22.4R3-EVO.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
juniper junos < 20.4 –
juniper junos 20.4 –
juniper junos 20.4 r1 –
juniper junos 20.4 r1-s1 –
juniper junos 20.4 r2 –
juniper junos 20.4 r2-s1 –
juniper junos 20.4 r2-s2 –
juniper junos 20.4 r3 –
juniper junos 20.4 r3-s1 –
juniper junos 20.4 r3-s2 –
juniper junos 20.4 r3-s3 –
juniper junos 20.4 r3-s4 –
juniper junos 20.4 r3-s5 –
juniper junos 20.4 r3-s6 –
juniper junos 20.4 r3-s7 –
juniper junos 21.2 –
juniper junos 21.2 r1 –
juniper junos 21.2 r1-s1 –
juniper junos 21.2 r1-s2 –
juniper junos 21.2 r2 –
juniper junos 21.2 r2-s1 –
juniper junos 21.2 r2-s2 –
juniper junos 21.2 r3 –
juniper junos 21.2 r3-s1 –
juniper junos 21.2 r3-s2 –
juniper junos 21.2 r3-s3 –
juniper junos 21.2 r3-s4 –
juniper junos 21.2 r3-s5 –
juniper junos 21.3 –
juniper junos 21.3 r1 –
juniper junos 21.3 r1-s1 –
juniper junos 21.3 r1-s2 –
juniper junos 21.3 r2 –
juniper junos 21.3 r2-s1 –
juniper junos 21.3 r2-s2 –
juniper junos 21.3 r3 –
juniper junos 21.3 r3-s1 –
juniper junos 21.3 r3-s2 –
juniper junos 21.3 r3-s3 –
juniper junos 21.3 r3-s4 –
juniper junos 21.4 –
juniper junos 21.4 r1 –
juniper junos 21.4 r1-s1 –
juniper junos 21.4 r1-s2 –
juniper junos 21.4 r2 –
juniper junos 21.4 r2-s1 –
juniper junos 21.4 r2-s2 –
juniper junos 21.4 r3 –
juniper junos 21.4 r3-s1 –
juniper junos 21.4 r3-s2 –
juniper junos 21.4 r3-s3 –
juniper junos 22.1 –
juniper junos 22.1 r1 –
juniper junos 22.1 r1-s1 –
juniper junos 22.1 r1-s2 –
juniper junos 22.1 r2 –
juniper junos 22.1 r2-s1 –
juniper junos 22.1 r2-s2 –
juniper junos 22.1 r3 –
juniper junos 22.1 r3-s1 –
juniper junos 22.1 r3-s2 –
juniper junos 22.2 –
juniper junos 22.2 r1 –
juniper junos 22.2 r1-s1 –
juniper junos 22.2 r1-s2 –
juniper junos 22.2 r2 –
juniper junos 22.2 r2-s1 –
juniper junos 22.2 r2-s2 –
juniper junos 22.2 r3 –
juniper junos 22.3 –
juniper junos 22.3 r1 –
juniper junos 22.3 r1-s1 –
juniper junos 22.3 r1-s2 –
juniper junos 22.3 r2 –
juniper junos 22.3 r2-s1 –
juniper junos 22.3 r2-s2 –
juniper junos 22.4 –
juniper junos 22.4 r1 –
juniper junos 22.4 r1-s1 –
juniper junos 22.4 r1-s2 –
juniper junos 22.4 r2 –
juniper junos 22.4 r2-s1 –
juniper junos 22.4 r2-s2 –
juniper junos os evolved 22.1 r3-s2 –
juniper junos os evolved 22.2 –
juniper junos os evolved 22.2 r1 –
juniper junos os evolved 22.2 r1-s1 –
juniper junos os evolved 22.2 r1-s2 –
juniper junos os evolved 22.2 r2 –
juniper junos os evolved 22.2 r2-s1 –
juniper junos os evolved 22.2 r2-s2 –
juniper junos os evolved 22.2 r3 –
juniper junos os evolved 22.3 –
juniper junos os evolved 22.3 r1 –
juniper junos os evolved 22.3 r1-s1 –
juniper junos os evolved 22.3 r1-s2 –
juniper junos os evolved 22.3 r2 –
juniper junos os evolved 22.3 r2-s1 –
juniper junos os evolved 22.3 r2-s2 –
juniper junos os evolved 22.4 –

Mostrate 100 configurazioni su 150. L'elenco completo è su NVD.

Tutte le 793 vulnerabilità di Juniper Junos
Tutte le 250 vulnerabilità di Juniper Junos Os Evolved

Tipo di vulnerabilità

CWE-754 Controllo improprio di condizioni anomale o eccezionali

Il prodotto non controlla, o controlla in modo errato, condizioni anomale che non dovrebbero presentarsi spesso durante il normale funzionamento.

Impatto sui sistemi

AmbitoImpatto
Integrità, Disponibilità Interruzione del servizio: arresto o riavvio, Stato imprevisto

Come si previene

Requisiti · Scelta del linguaggio Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Choose languages with features such as exception handling that force the programmer to anticipate unusual conditions that may generate exceptions. Custom exceptions may need to be developed to handle unusual business-logic conditions. Be careful not to pass sensitive exceptions back to the user (CWE-209, CWE-248).
Sviluppo Check the results of all functions that return a value and verify that the value is expected.
Sviluppo If using exception handling, catch and throw specific exceptions instead of overly-general exceptions (CWE-396, CWE-397). Catch and handle exceptions as locally as possible so that exceptions do not propagate too far up the call stack (CWE-705). Avoid unchecked or uncaught exceptions where feasible (CWE-248).
Sviluppo Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success. If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files. Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not. Exposing additional information to a potential attacker in the context of an exceptional condition can help the attacker determine what attack vectors are most likely to succeed beyond DoS.
Sviluppo · Validazione dell’input Considera ogni input come potenzialmente malevolo. Adotta una validazione per «elenco di valori ammessi»: accetta solo gli input che rispettano rigorosamente le specifiche e rifiuta, o trasforma in qualcosa di conforme, tutto il resto. Nel validare considera tutte le proprietà rilevanti: lunghezza, tipo, intervallo dei valori ammessi, input mancanti o in più, sintassi, coerenza tra campi collegati e rispetto delle regole di business (per esempio «barca» è sintatticamente valido perché contiene solo lettere, ma non lo è se il campo deve contenere solo colori come rosso o blu). Non limitarti a cercare input malevoli o malformati: quasi certamente ne sfuggirà qualcuno, soprattutto se l’ambiente del codice cambia, lasciando all’attaccante lo spazio per aggirare la validazione. Le liste di valori vietati restano utili per rilevare possibili attacchi o scartare subito gli input più malformati.
Architettura e progettazione · Sviluppo If the program must fail, ensure that it fails gracefully (fails closed). There may be a temptation to simply let the program fail poorly in cases such as low memory conditions, but an attacker may be able to assert control before the software has fully exited. Alternately, an uncontrolled failure could cause cascading problems with other downstream components; for example, the program could send a signal to a downstream process so the process immediately knows that a problem has occurred and has a better chance of recovery.
Architettura e progettazione Use system limits, which should help to prevent resource exhaustion. However, the product should still handle low resource conditions since they may still occur.

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

Tutte le 649 CVE di tipo CWE-754, con andamento e prevenzione

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