{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-22239 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-22239 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-22239 is a high-severity vulnerability in Juniper Junos Os Evolved, published on 18 Oct 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-22239 and fix it if it is affected.\n\nWhat it is: CVE-2022-22239 is a high-severity vulnerability in Juniper Junos Os Evolved, published on 18 Oct 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-22239 in the wild and no public exploit code.\n\nAffected product: Juniper Junos Os Evolved. 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-2022-22239/ (Markdown: https://insights.sbomify.com/CVE-2022-22239/index.md)","id":"CVE-2022-22239","markdown":"https://insights.sbomify.com/CVE-2022-22239/index.md","name":"CVE-2022-22239","record":{"aliases":["GHSA-h38r-wg7q-9555"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Junos OS Evolved","requires_auth":"low_privilege","summary":"A local attacker can escalate privileges to root via the ssh CLI command in Junos OS Evolved, requiring an upgrade to secure the device.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"juniper","cpe":[{"product":"junos_os_evolved","vendor":"juniper"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-250","name":"Execution with Unnecessary Privileges"}],"description":"An Execution with Unnecessary Privileges vulnerability in Management Daemon (mgd) of Juniper Networks Junos OS Evolved allows a locally authenticated attacker with low privileges to escalate their privileges on the device and potentially remote systems. This vulnerability allows a locally authenticated attacker with access to the ssh operational command to escalate their privileges on the system to root, or if there is user interaction on the local device to potentially escalate privileges on a remote system to root. This issue affects Juniper Networks Junos OS Evolved: All versions prior to 20.4R3-S5-EVO; 21.1-EVO versions prior to 21.1R3-EVO; 21.2-EVO versions prior to 21.2R2-S1-EVO, 21.2R3-EVO; 21.3-EVO versions prior to 21.3R2-EVO. This issue does not affect Juniper Networks Junos OS.","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 Evolved: The ssh CLI command always runs as root which can lead to privilege escalation","id":"CVE-2022-22239","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"juniper:junos_os_evolved","products":["juniper:junos_os_evolved"],"type":"privilege_escalation","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Denial of service in Junos OS","id":"CVE-2022-22240"},"packages":[],"prev":{"headline":"Junos OS and Junos OS Evolved: The rpd process will crash when a malformed incoming RESV message is processed","id":"CVE-2022-22238"},"products":["Junos OS Evolved"],"published":"2022-10-18","related":[{"cvss_score":9.3,"headline":"Junos OS Evolved: PTX Series: A vulnerability allows a unauthenticated, network-based attacker to execute code as root","id":"CVE-2026-21902","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":8.8,"headline":"Junos OS Evolved: Shell Injection vulnerability in the gNOI server","id":"CVE-2023-28983","kev_date_added":null,"published":"2023-04-17"},{"cvss_score":8.7,"headline":"Denial of service in Junos OS Evolved","id":"CVE-2025-21599","kev_date_added":null,"published":"2025-01-09"},{"cvss_score":8.7,"headline":"Junos OS Evolved: TCP session state is not always cleared on the Routing Engine leading to DoS","id":"CVE-2024-47502","kev_date_added":null,"published":"2024-10-11"},{"cvss_score":8.7,"headline":"Junos OS Evolved: ACX 7000 Series: Protocol specific DDoS configuration affects other protocols","id":"CVE-2024-39531","kev_date_added":null,"published":"2024-07-11"},{"cvss_score":8.7,"headline":"Junos OS Evolved: A high rate of SSH connections causes a Denial of Service","id":"CVE-2024-39562","kev_date_added":null,"published":"2024-07-10"},{"cvss_score":8.5,"headline":"Junos OS Evolved: Local, authenticated attacker can gain privileged access to FPCs","id":"CVE-2026-33788","kev_date_added":null,"published":"2026-04-09"}],"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-05-10","vendors":["Juniper Networks"]},"summary":"A local attacker can escalate privileges to root via the ssh CLI command in Junos OS Evolved, requiring an upgrade to secure the device.","url":"https://insights.sbomify.com/CVE-2022-22239/"}