{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "29.0.0"
              },
              {
                "fixed": "29.0.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "36ae775aa7c9af22bf33645a2d8807206ec6c85f"
            },
            {
              "fixed": "3bb0c9b012f0e87ccddd37e4782d3fb5ae2025a6"
            }
          ],
          "repo": "https://github.com/nextcloud/server",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "28.0.0"
              },
              {
                "fixed": "28.0.6"
              }
            ]
          },
          "events": [
            {
              "introduced": "e15fcecaf0d382cebff924ec2b1f5319e130c0e8"
            },
            {
              "fixed": "5481d81792b3eec0fddbb8bf56d78c1188519509"
            }
          ],
          "repo": "https://github.com/nextcloud/server",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "27.0.0"
              },
              {
                "fixed": "27.1.10"
              }
            ]
          },
          "events": [
            {
              "introduced": "add4e4365a4040d2e4e6aa79c0d03c3edd78583c"
            },
            {
              "fixed": "f7e1218ad98ab77de36edb7bd3ad3124d6e78ba9"
            }
          ],
          "repo": "https://github.com/nextcloud/server",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5m5g-hw8c-2236"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-706"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52515.json"
  },
  "details": "Nextcloud Server is a self hosted personal cloud system. After an admin enables the default-disabled SVG preview provider, a malicious user could upload a manipulated SVG file referencing paths. If the file would exist the preview of the SVG would preview the other file instead. It is recommended that the Nextcloud Server is upgraded to 27.1.10, 28.0.6 or 29.0.1 and Nextcloud Enterprise Server is upgraded to 24.0.12.15, 25.0.13.10, 26.0.13.4, 27.1.10, 28.0.6 or 29.0.1.",
  "id": "CVE-2024-52515",
  "modified": "2026-04-01T23:09:13.824865986Z",
  "published": "2024-11-15T17:03:09.033Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://hackerone.com/reports/2484499"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52515.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nextcloud/security-advisories/security/advisories/GHSA-5m5g-hw8c-2236"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-52515"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nextcloud/server/commit/7e1c30f82a63fbea8c269e0eec38291377f32604"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nextcloud/server/pull/45340"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Nextcloud Server has incomplete sanitization of SVG files allows to embed other images into previews"
}