{
  "id": "CVE-2025-21590",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21590",
  "published_at": "2025-03-12T13:59:43.038Z",
  "title": "Junos OS: An local attacker with shell access can execute arbitrary code",
  "vendor": "Juniper Networks",
  "product": "Junos OS",
  "cvss": {
    "score": 6.7,
    "source": "cna",
    "vector": "CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2025-03-13",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 1
  },
  "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: An local"
  },
  "description": "An Improper Isolation or Compartmentalization vulnerability in the kernel of Juniper Networks Junos OS allows a local attacker with high privileges to compromise the integrity of the device.\n\nA local attacker with access to the shell is able to inject arbitrary code which can compromise an affected device.\nThis issue is not exploitable from the Junos CLI.\nThis issue affects Junos OS: \n\n\n\n  *  All versions before 21.2R3-S9,\n  *  21.4 versions before 21.4R3-S10, \n  *  22.2 versions before 22.2R3-S6, \n  *  22.4 versions before 22.4R3-S6, \n  *  23.2 versions before 23.2R2-S3, \n  *  23.4 versions before 23.4R2-S4,\n  *  24.2 versions before 24.2R1-S2, 24.2R2.",
  "cwe": "CWE-653",
  "cpes": [
    "cpe:2.3:o:juniper:junos:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r2-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r2-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s4:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s5:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s6:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s7:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3-s8:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.2:r3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r2-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r2-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s4:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s5:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s6:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s7:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s8:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3-s9:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:21.4:r3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:-:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r1-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r1-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r2-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r2-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r3-s1:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r3-s2:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r3-s3:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r3-s4:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r3-s5:*:*:*:*:*:*",
    "cpe:2.3:o:juniper:junos:22.2:r3:*:*:*:*:*:*",
    "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:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Juniper Networks",
        "product": "Junos OS",
        "ranges": [
          "\u003c 21.2R3-S9",
          "\u003e= 21.4, \u003c 21.4R3-S10",
          "\u003e= 22.2, \u003c 22.2R3-S6",
          "\u003e= 22.4, \u003c 22.4R3-S6",
          "\u003e= 23.2, \u003c 23.2R2-S3",
          "\u003e= 23.4, \u003c 23.4R2-S4",
          "\u003e= 24.2, \u003c 24.2R1-S2, 24.2R2"
        ],
        "fixed_in": [
          "21.2R3-S9",
          "21.4R3-S10",
          "22.2R3-S6",
          "22.4R3-S6",
          "23.2R2-S3",
          "23.4R2-S4",
          "24.2R1-S2, 24.2R2"
        ]
      }
    ],
    "solutions": [
      "The following software releases have been updated to resolve this specific issue: 21.2R3-S9, 21.4R3-S10, 22.2R3-S6, 22.4R3-S6, 23.2R2-S3, 23.4R2-S4, 24.2R1-S2, 24.2R2, 24.4R1, and all subsequent releases.\n\n\n \n\n\nPlease note that this issue is not fixed for all platforms in the releases specified in the solution section.\n\n\nFor the following products the fix is only available in these releases:\n\n\nSRX300 Series   21.2R3-S9, 23.4R2-S5*, 24.4R1\n\n\nSRX550HM    22.2R3-S7*\n\n\nEX4300 Series     21.4R3-S11*  (except EX4300-48MP which has fixes available as indicated in the solution)\n\n\nEX4600                21.4R3-S11*  (except EX4650 which has fixes available as indicated in the solution)\n\n\nACX1000, ACX1100, ACX2100, ACX2200, ACX4000,\n\n\nACX500               21.2R3-S9\n\n\nMX104                21.2R3-S9\n\n\n* Future Release"
    ],
    "upgrade": [
      "Upgrade Junos OS to 21.2R3-S9 or 21.4R3-S10 or 22.2R3-S6 or 22.4R3-S6 or 23.2R2-S3 or 23.4R2-S4 or 24.2R1-S2, 24.2R2 or later."
    ],
    "workarounds": [
      "It is strongly recommended to mitigate the risk of exploitation by restricting shell access to trusted users only."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://supportportal.juniper.net/JSA93446"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
