CVE-2026-104286: Fortinet FortiMail - Path Traversal (passive)

2026-11-29 PoC Public

Description

Fortinet FortiMail 7.2.0 through 7.2.9, 7.4.0 through 7.4.8, 7.6.0 through 7.6.6, and 8.0.0 through 8.0.1 contain a path traversal vulnerability caused by improper limitation of pathname in HTTP/HTTPS request handling, letting unauthenticated attackers write arbitrary files on the system, exploit requires crafted HTTP/HTTPS requests.

Details

CVE
CVE-2026-104286 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-104286

info:
  name: Fortinet FortiMail - Path Traversal (passive)
  author: 0x_Akoko
  severity: critical
  description: |
    Fortinet FortiMail 7.2.0 through 7.2.9, 7.4.0 through 7.4.8, 7.6.0 through 7.6.6, and 8.0.0 through 8.0.1 contain a path traversal vulnerability caused by improper limitation of pathname in HTTP/HTTPS request handling, letting unauthenticated attackers write arbitrary files on the system, exploit requires crafted HTTP/HTTPS requests.
  impact: |
    Unauthenticated attackers can write arbitrary files on the system, potentially leading to system compromise or code execution.
  remediation: |
    Update to the latest FortiMail version beyond 8.0.1.
  reference:
    - https://fortiguard.fortinet.com/psirt/FG-IR-26-175
    - https://nvd.nist.gov/vuln/detail/CVE-2026-104286
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-104286
    epss-score: 0.15652
    epss-percentile: 0.97478
    cwe-id: CWE-22
    cpe: cpe:2.3:a:fortinet:fortimail:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: fortinet
    product: fortimail
    shodan-query: http.title:"FortiMail"
    fofa-query: title="FortiMail"
  tags: cve,cve2026,fortinet,fortimail,path-traversal,passive,kev,vkev,vd

http:
  - method: GET
    path:
      - "{{BaseURL}}/m/"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "FortiMail")'
        condition: and

      - type: dsl
        dsl:
          - 'compare_versions(version, ">= 7.0.0") && compare_versions(version, "<= 7.0.9")'
          - 'compare_versions(version, ">= 7.2.0") && compare_versions(version, "<= 7.2.9")'
          - 'compare_versions(version, ">= 7.4.0") && compare_versions(version, "<= 7.4.8")'
          - 'compare_versions(version, ">= 7.6.0") && compare_versions(version, "<= 7.6.6")'
          - 'compare_versions(version, ">= 8.0.0") && compare_versions(version, "<= 8.0.1")'
        condition: or

    extractors:
      - type: regex
        name: version
        part: body
        internal: true
        group: 1
        regex:
          - '(?i)FortiMail\s+([0-9]+\.[0-9]+\.[0-9]+)'

      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)FortiMail\s+([0-9]+\.[0-9]+\.[0-9]+)'
# digest: 490a004630440220620b9539b5695119cdf73c571ba9b76919f37e952a502dc233f2a6d7a0994065022057b3280c2f0ba6859f1437eafe5189971d4b3b2edf2a1e23ba2e1f1be20e93f4:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life