{
  "id": "CVE-2024-38475",
  "url": "https://poc.griffinguard.io/cve/CVE-2024-38475",
  "published_at": "2024-07-01T18:15:12.292Z",
  "title": "Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.",
  "vendor": "Apache Software Foundation",
  "product": "Apache HTTP Server",
  "cvss": {
    "score": 9.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2025-05-01",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 304
  },
  "first_poc": {
    "created_at": "2024-08-18T11:30:50Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 47.7,
    "repo": "p0in7s/CVE-2024-38475",
    "source": "github"
  },
  "poc_repo_count": 6,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. \n\nSubstitutions in server context that use a backreferences or variables as the first segment of the substitution are affected.  Some unsafe RewiteRules will be broken by this change and the rewrite flag \"UnsafePrefixStat\" can be used to opt back in once ensuring the substitution is appropriately constrained.",
  "cwe": "CWE-116",
  "cvss_by_source": {
    "cisa-adp": 9.1
  },
  "repos": [
    {
      "repo": "p0in7s/CVE-2024-38475",
      "url": "https://github.com/p0in7s/CVE-2024-38475",
      "created_at": "2024-08-18T11:30:50Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 17,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-11-17T13:24:35Z"
    },
    {
      "repo": "mrmtwoj/apache-vulnerability-testing",
      "url": "https://github.com/mrmtwoj/apache-vulnerability-testing",
      "created_at": "2024-10-05T20:32:45Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 136,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-10-14T07:15:31Z"
    },
    {
      "repo": "soltanali0/CVE-2024-38475",
      "url": "https://github.com/soltanali0/CVE-2024-38475",
      "created_at": "2024-12-12T10:23:32Z",
      "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": "2021-07-13T12:59:54Z"
    },
    {
      "repo": "watchtowrlabs/watchTowr-vs-SonicWall-PreAuth-RCE-Chain",
      "url": "https://github.com/watchtowrlabs/watchTowr-vs-SonicWall-PreAuth-RCE-Chain",
      "created_at": "2025-05-01T21:02:10Z",
      "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": "2022-02-18T14:37:47Z"
    },
    {
      "repo": "abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC",
      "url": "https://github.com/abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC",
      "created_at": "2025-05-07T00:02:36Z",
      "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": "2023-11-08T18:53:33Z"
    },
    {
      "repo": "syaifulandy/CVE-2024-38475",
      "url": "https://github.com/syaifulandy/CVE-2024-38475",
      "created_at": "2025-05-09T07:51:45Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-01-19T07:00:17Z"
    },
    {
      "repo": "kr-ale/Stapler",
      "url": "https://github.com/kr-ale/Stapler",
      "created_at": "2025-11-18T19:20:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2025-10-20T21:29:03Z"
    },
    {
      "repo": "burjoy/Apache-2.4.58-Proof-of-Concept",
      "url": "https://github.com/burjoy/Apache-2.4.58-Proof-of-Concept",
      "created_at": "2026-05-14T03:45:50Z",
      "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": "2019-06-02T14:14:33Z"
    },
    {
      "repo": "Nyakki-Labs-0x420/Myesve",
      "url": "https://github.com/Nyakki-Labs-0x420/Myesve",
      "created_at": "2026-05-31T18:12:18Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2026-02-10T17:30:24Z"
    },
    {
      "repo": "akabul0us/apache_poc",
      "url": "https://github.com/akabul0us/apache_poc",
      "created_at": "2026-10-17T19:53:34Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-04-22T03:34:57Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-38475.yaml",
      "source": "nuclei",
      "title": "nuclei template: Sonicwall - Pre-Authentication Arbitrary File Read",
      "published_at": "2025-05-02T00:18:34Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/{var}/{var}{var}",
      "protocol": "https",
      "repos": [
        "abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC",
        "soltanali0/CVE-2024-38475"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC/poc.py:155",
        "soltanali0/CVE-2024-38475/script.py:18"
      ]
    },
    {
      "method": "GET",
      "path_template": "/../../index.html",
      "protocol": "https",
      "repos": [
        "abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC/poc.py:97"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}/../../index.html",
      "protocol": "https",
      "repos": [
        "abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC/poc.py:134"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}{var}/{var}/{var}{var}",
      "protocol": "http",
      "repos": [
        "p0in7s/CVE-2024-38475"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "p0in7s/CVE-2024-38475/CVE-2024-38475.py:31"
      ]
    },
    {
      "method": "POST",
      "path_template": "/tmp/temp.db%3f.1.1.1.1a-1.css",
      "body_markers": [
        "tool=TRACEROUTE6_CMD",
        "target=;"
      ],
      "content_type": "application/x-www-form-urlencoded;charset=UTF-8",
      "protocol": "http",
      "repos": [
        "watchtowrlabs/watchTowr-vs-SonicWall-PreAuth-RCE-Chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "watchtowrlabs/watchTowr-vs-SonicWall-PreAuth-RCE-Chain/watchTowr-vs-SonicWall-PreAuth-RCE-Chain.py:99"
      ]
    }
  ],
  "rules": []
}
