{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-59957 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-59957 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-59957 is a high-severity authentication bypass vulnerability in Juniper Junos, published on 9 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-59957 and fix it if it is affected.\n\nWhat it is: CVE-2025-59957 is a high-severity authentication bypass vulnerability in Juniper Junos, published on 9 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-59957 in the wild and no public exploit code.\n\nAffected product: Juniper Junos. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-59957/ (Markdown: https://insights.sbomify.com/CVE-2025-59957/index.md)","id":"CVE-2025-59957","markdown":"https://insights.sbomify.com/CVE-2025-59957/index.md","name":"CVE-2025-59957","record":{"aliases":["GHSA-f6j3-wrc2-m228"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["privilege_escalation","account_takeover"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Juniper network switch","requires_auth":"none","summary":"An attacker with physical access can modify a configuration file to create a persistent backdoor, gaining complete control of the device.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"juniper","cpe":[{"product":"junos","vendor":"juniper"}],"cvss":{"score":7,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"description":"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/\u003cplatform\u003e-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  *  All versions before 21.4R3,\n  *  22.2 versions before 22.2R3-S3.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Junos OS: EX4600 Series and QFX5000 Series: An attacker with physical access can open a persistent backdoor","id":"CVE-2025-59957","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"juniper:junos","products":["juniper:junos"],"type":"auth_bypass","year":"2025"},"n_packages":0,"n_references":3,"next":{"headline":"Junos OS Evolved: PTX Series: When a firewall filter rejects traffic these packets are erroneously sent to the RE","id":"CVE-2025-59958"},"packages":[],"prev":{"headline":"AgentAPI exposed user chat history via a DNS rebinding attack","id":"CVE-2025-59956"},"products":["Junos OS"],"published":"2025-10-09","related":[{"cvss_score":9.8,"headline":"Juniper Junos OS EX Series and SRX Series PHP External Variable Modification","id":"CVE-2023-36845","kev_date_added":"2023-11-13","published":"2023-08-17"},{"cvss_score":8.8,"headline":"Juniper Junos OS Path Traversal","id":"CVE-2020-1631","kev_date_added":"2022-03-25","published":"2020-05-04"},{"cvss_score":6.7,"headline":"Juniper Junos OS Improper Isolation or Compartmentalization","id":"CVE-2025-21590","kev_date_added":"2025-03-13","published":"2025-03-12"},{"cvss_score":5.3,"headline":"Juniper Junos OS SRX Series Missing Authentication for Critical Function","id":"CVE-2023-36851","kev_date_added":"2023-11-13","published":"2023-09-26"},{"cvss_score":5.3,"headline":"Juniper Junos OS EX Series PHP External Variable Modification","id":"CVE-2023-36844","kev_date_added":"2023-11-13","published":"2023-08-17"},{"cvss_score":5.3,"headline":"Juniper Junos OS SRX Series Missing Authentication for Critical Function","id":"CVE-2023-36846","kev_date_added":"2023-11-13","published":"2023-08-17"},{"cvss_score":5.3,"headline":"Juniper Junos OS EX Series Missing Authentication for Critical Function","id":"CVE-2023-36847","kev_date_added":"2023-11-13","published":"2023-08-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-09","vendors":["Juniper Networks"]},"summary":"An attacker with physical access can modify a configuration file to create a persistent backdoor, gaining complete control of the device.","url":"https://insights.sbomify.com/CVE-2025-59957/"}