{
  "id": "CVE-2026-33791",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-33791",
  "published_at": "2026-04-09T21:38:52.747Z",
  "title": "Junos OS and Junos OS Evolved: Execution of crafted CLI commands allows for arbitrary shell injection as root",
  "vendor": "Juniper Networks",
  "product": "Junos OS",
  "cvss": {
    "score": 8.4,
    "source": "cna",
    "vector": "CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:L/AU:Y/R:A/V:C/RE:M/U:Amber"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": {
    "category": "Router / network device",
    "confidence": "high",
    "reason": "known edge product: Juniper Networks Junos OS Junos OS and Junos"
  },
  "description": "An OS Command Injection vulnerability in the CLI processing of Juniper Networks Junos OS and Junos OS Evolved allows a local, high-privileged attacker executing specific, crafted CLI commands to inject arbitrary shell commands as root, leading to a complete compromise of the system.\n\nCertain 'set system' commands, when executed with crafted arguments, are not properly sanitized, allowing for arbitrary shell injection. These shell commands are executed as root, potentially allowing for complete control of the vulnerable system.\nThis issue affects:\n\nJunos OS: \n\n\n\n  *  all versions before 22.4R3-S8, \n  *  from 23.2 before 23.2R2-S5, \n  *  from 23.4 before 23.4R2-S7, \n  *  from 24.2 before 24.2R2-S2, \n  *  from 24.4 before 24.4R2, \n  *  from 25.2 before 25.2R2; \n\n\n\n\nJunos OS Evolved: \n\n\n\n  *  all versions before 22.4R3-S8-EVO, \n  *  from 23.2 before 23.2R2-S5-EVO, \n  *  from 23.4 before 23.4R2-S7-EVO, \n  *  from 24.2 before 24.2R2-S2-EVO, \n  *  from 24.4 before 24.4R2-EVO, \n  *  from 25.2 before 25.2R1-S1-EVO, 25.2R2-EVO.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:o:juniper:junos:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r2-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r2-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3-s3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3-s4:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3-s5:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3-s6:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3-s7:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.4:r3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r2-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r2-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r2-s3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r2-s4:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.2:r2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r2-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r2-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r2-s3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r2-s4:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r2-s5:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r2-s6:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:23.4:r2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.2:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.2:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.2:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.2:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.2:r2-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.2:r2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.4:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.4:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.4:r1-s3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:24.4:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:25.2:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:25.2:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:25.2:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:25.2:r1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Juniper Networks",
        "product": "Junos OS",
        "ranges": [
          "\u003c 22.4R3-S8",
          "\u003e= 23.2, \u003c 23.2R2-S5",
          "\u003e= 23.4, \u003c 23.4R2-S7",
          "\u003e= 24.2, \u003c 24.2R2-S2",
          "\u003e= 24.4, \u003c 24.4R2",
          "\u003e= 25.2, \u003c 25.2R2"
        ],
        "fixed_in": [
          "22.4R3-S8",
          "23.2R2-S5",
          "23.4R2-S7",
          "24.2R2-S2",
          "24.4R2",
          "25.2R2"
        ]
      },
      {
        "vendor": "Juniper Networks",
        "product": "Junos OS Evolved",
        "ranges": [
          "\u003c 22.4R3-S8-EVO",
          "\u003e= 23.2, \u003c 23.2R2-S5-EVO",
          "\u003e= 23.4, \u003c 23.4R2-S7-EVO",
          "\u003e= 24.2, \u003c 24.2R2-S2-EVO",
          "\u003e= 24.4, \u003c 24.4R2-EVO",
          "\u003e= 25.2, \u003c 25.2R1-S1-EVO, 25.2R2-EVO"
        ],
        "fixed_in": [
          "22.4R3-S8-EVO",
          "23.2R2-S5-EVO",
          "23.4R2-S7-EVO",
          "24.2R2-S2-EVO",
          "24.4R2-EVO",
          "25.2R1-S1-EVO, 25.2R2-EVO"
        ]
      }
    ],
    "solutions": [
      "The following software releases have been updated to resolve this specific issue: \nJunos OS 22.4R3-S8, 23.2R2-S5, 23.4R2-S7, 24.2R2-S2, 24.4R2, 25.2R2, 25.4R1, and all subsequent releases.\n\n\n\n\nJunos OS Evolved 22.4R3-S8-EVO, 23.2R2-S5-EVO, 23.4R2-S7-EVO, 24.2R2-S2-EVO, 24.4R2-EVO, 25.2R1-S1-EVO, 25.2R2-EVO, 25.4R1-EVO, and all subsequent releases."
    ],
    "upgrade": [
      "Upgrade Junos OS to 22.4R3-S8 or 23.2R2-S5 or 23.4R2-S7 or 24.2R2-S2 or 24.4R2 or 25.2R2 or later.",
      "Upgrade Junos OS Evolved to 22.4R3-S8-EVO or 23.2R2-S5-EVO or 23.4R2-S7-EVO or 24.2R2-S2-EVO or 24.4R2-EVO or 25.2R1-S1-EVO, 25.2R2-EVO or later."
    ],
    "workarounds": [
      "One of the following mitigations will prevent malicious exploitation:\n  *  Use access lists or firewall filters to limit access to the CLI only from trusted hosts and administrators.\n  *  Avoid configuring access to any part of the 'set system'​ stanza for non-privileged users."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://kb.juniper.net/JSA107875"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://supportportal.juniper.net/JSA107875"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
