{"id":"CVE-2025-59957","aliases":["CVE-2025-59957"],"related":[],"kind":"vulnerability","state":"published","title":"Junos OS: EX4600 Series and QFX5000 Series: An attacker with physical access can open a persistent backdoor","summary":"An Origin Validation Error vulnerability in an insufficient protected file of Juniper Networks Junos OS on EX4600 Series and QFX5000 Series allows an unauthenticated attacker with physical access to the device to create a backdoor which allows complete control of the system.\n\nWhen a device isn't configured with a root password, an attacker can modify a specific file. It's contents will be added to the Junos configuration of the device without being visible. This allows for the addition of any configuration unknown \n\nto the actual operator, which includes users, IP addresses and other configuration which could allow unauthorized access to the device.\nThis exploit is persistent across reboots and even zeroization.\n\nThe indicator of compromise is a modified /etc/config/<platform>-defaults[-flex].conf file. Review that file for unexpected configuration statements, or compare it to an unmodified version which can be extracted from the original Juniper software image file. For details on the extraction procedure please contact Juniper Technical Assistance Center (JTAC).\n\nTo restore the device to a trusted initial configuration the system needs to be reinstalled from physical media. \n\nThis issue affects Junos OS on EX4600 Series and QFX5000 Series:\n\n\n\n  *  All versions before 21.4R3,\n  *  22.2 versions before 22.2R3-S3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An Origin Validation Error vulnerability in an insufficient protected file of Juniper Networks Junos OS on EX4600 Series and QFX5000 Series allows an unauthenticated attacker with physical access to the device to create a backdoor which allows complete control of the system.\n\nWhen a device isn't configured with a root password, an attacker can modify a specific file. It's contents will be added to the Junos configuration of the device without being visible. This allows for the addition of any configuration unknown \n\nto the actual operator, which includes users, IP addresses and other configuration which could allow unauthorized access to the device.\nThis exploit is persistent across reboots and even zeroization.\n\nThe indicator of compromise is a modified /etc/config/<platform>-defaults[-flex].conf file. Review that file for unexpected configuration statements, or compare it to an unmodified version which can be extracted from the original Juniper software image file. For details on the extraction procedure please contact Juniper Technical Assistance Center (JTAC).\n\nTo restore the device to a trusted initial configuration the system needs to be reinstalled from physical media. \n\nThis issue affects Junos OS on EX4600 Series and QFX5000 Series:\n\n\n\n  *  All versions before 21.4R3,\n  *  22.2 versions before 22.2R3-S3.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad de error de validación de origen en un archivo insuficientemente protegido de Juniper Networks Junos OS en las series EX4600 y QFX5000 permite a un atacante no autenticado con acceso físico al dispositivo crear una puerta trasera que permite el control completo del sistema.\n\nCuando un dispositivo no está configurado con una contraseña de root, un atacante puede modificar un archivo específico. Sus contenidos serán añadidos a la configuración de Junos del dispositivo sin ser visibles. Esto permite la adición de cualquier configuración desconocida para el operador real, lo que incluye usuarios, direcciones IP y otra configuración que podría permitir el acceso no autorizado al dispositivo.\nEste exploit es persistente a través de los reinicios e incluso la puesta a cero.\n\nEl indicador de compromiso es un archivo /etc/config/<platform>-defaults[-flex].conf modificado. Revise ese archivo en busca de declaraciones de configuración inesperadas, o compárelo con una versión sin modificar que se puede extraer del archivo de imagen de software original de Juniper. Para obtener detalles sobre el procedimiento de extracción, póngase en contacto con el Centro de Asistencia Técnica de Juniper (JTAC).\n\nPara restaurar el dispositivo a una configuración inicial de confianza, el sistema necesita ser reinstalado desde medios físicos.\n\nEste problema afecta a Junos OS en las series EX4600 y QFX5000:\n\n  * Todas las versiones anteriores a 21.4R3,\n  * versiones 22.2 anteriores a 22.2R3-S3.","source":"nvd"}],"published":"2025-10-09T15:43:23.110Z","modified":"2026-10-08T13:10:00.200Z","severity":{"scorer":"juniper","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:U/RE:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"juniper","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":6.8,"rating":"MEDIUM"},{"scorer":"juniper","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:U/RE:H","score":7,"rating":"HIGH"}],"cwes":["CWE-346"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"21.4R3","status":"affected"},{"type":"semver","introduced":"22.2","fixed":"22.2R3-S3","status":"affected"}],"vendor":"Juniper Networks","product":"Junos OS","platforms":["EX4600","QFX5000"],"source":"cvelist"},{"ranges":[{"status":"affected","fixed":"21.4"},{"status":"affected","version":"21.4"},{"status":"affected","version":"21.4"},{"status":"affected","version":"21.4"},{"status":"affected","version":"21.4"},{"status":"affected","version":"21.4"},{"status":"affected","version":"21.4"},{"status":"affected","version":"21.4"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"},{"status":"affected","version":"22.2"}],"vendor":"juniper","product":"junos","cpe":"cpe:2.3:o:juniper:junos:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://supportportal.juniper.net/JSA103146","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://supportportal.juniper.net/s/article/EX-QFX-Procedure-to-format-install-QFX5K-device-using-a-USB","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://support.juniper.net/support/requesting-support/","tags":["technical-description","vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"juniper","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-09T19:45:08.214Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59957","url":"https://www.cve.org/CVERecord?id=CVE-2025-59957","licence":"CVE Terms of Use","modified":"2025-10-09T19:49:29.942Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59957","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59957","licence":"Public domain","modified":"2026-10-08T13:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:05.706Z","epss":{"score":0.00184,"percentile":0.08378,"date":"2026-12-01T12:00:22.000Z"}}