Skip to content
Heist/ feed
Back to feed
High

macro-pdfviewer's preview in WYSIWYG editor allows accessing any PDF document as the last author

Type: advisorySources: OSV

macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. The PDF Viewer macro allows an attacker to view any attachment using the "Delegate my view right" feature as long as the attacker can view a page whose last author has access to the attachment. For this, the attacker only needs to provide the reference to a PDF file to the macro. To obtain the reference of the desired attachment, the attacker can access the Page Index, Attachments tab. Even if the UI shows N/A, the user can inspect the page and check the HTTP request that fetches the live data entries. The attachment URL is available in the returned JSON for all attachments, including protected ones and allows getting the necessary values. This vulnerability is fixed in version 2.5.6.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-52298
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 03:24 UTC · Revision 1

Source evidence

macro-pdfviewer's preview in WYSIWYG editor allows accessing any PDF document as the last author

core-osv · Original source

Published 13 Nov 2024, 15:42 UTC

macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. The PDF Viewer macro allows an attacker to view any attachment using the "Delegate my view right" feature as long as the attacker can view a page whose last author has access to the attachment. For this, the attacker only needs to provide the reference to a PDF file to the macro. To obtain the reference of the desired attachment, the attacker can access the Page Index, Attachments tab. Even if the UI shows N/A, the user can inspect the page and check the HTTP request that fetches the live data entries. The attachment URL is available in the returned JSON for all attachments, including protected ones and allows getting the necessary values. This vulnerability is fixed in version 2.5.6.

osv:CVE-2024-52298
Complete source record
{
  "id": "cf6e1a5106e744bd18e0bd9d98239da32b05f800f844324dbd55b5cf1508e4fa",
  "url": "https://osv.dev/vulnerability/CVE-2024-52298",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "macro-pdfviewer's preview in WYSIWYG editor allows accessing any PDF document as the last author",
    "summary": "macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. The PDF Viewer macro allows an attacker to view any attachment using the \"Delegate my view right\" feature as long as the attacker can view a page whose last author has access to the attachment. For this, the attacker only needs to provide the reference to a PDF file to the macro. To obtain the reference of the desired attachment, the attacker can access the Page Index, Attachments tab. Even if the UI shows N/A, the user can inspect the page and check the HTTP request that fetches the live data entries. The attachment URL is available in the returned JSON for all attachments, including protected ones and allows getting the necessary values. This vulnerability is fixed in version 2.5.6.",
    "evidence": "osv:CVE-2024-52298",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-52298",
      "aliases": [
        "CVE-2024-52298",
        "GHSA-hph4-7j37-7c97"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwikisas/macro-pdfviewer",
              "type": "GIT",
              "events": [
                {
                  "introduced": "468d3efe0b26e0e8d590dd07b57c1384ce45a853"
                },
                {
                  "fixed": "8b5e3f4e44d9d0fe2447358fe4d1b706b7101633"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.6.2"
                      },
                      {
                        "fixed": "2.5.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:pdf_viewer_macro:*:*:*:*:pro:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.5.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "macro-pdfviewer-2.5.5",
            "macro-pdfviewer-2.5.4",
            "macro-pdfviewer-2.5.3",
            "macro-pdfviewer-2.5.2",
            "macro-pdfviewer-2.5.1",
            "macro-pdfviewer-2.5",
            "macro-pdfviewer-2.4",
            "macro-pdfviewer-2.3.3",
            "macro-pdfviewer-2.3.2",
            "macro-pdfviewer-2.3.1",
            "macro-pdfviewer-2.3",
            "macro-pdfviewer-2.2.1",
            "macro-pdfviewer-2.2",
            "macro-pdfviewer-2.1.1",
            "macro-pdfviewer-2.2-RC-1",
            "macro-pdfviewer-2.1",
            "macro-pdfviewer-2.0.3",
            "macro-pdfviewer-2.0.2",
            "macro-pdfviewer-2.0.1",
            "macro-pdfviewer-2.0",
            "macro-pdfviewer-1.9.4",
            "macro-pdfviewer-1.9.3",
            "macro-pdfviewer-1.9.2",
            "macro-pdfviewer-1.9.1",
            "macro-pdfviewer-1.9",
            "macro-pdfviewer-1.8.3",
            "macro-pdfviewer-1.8.2",
            "macro-pdfviewer-1.8.1",
            "macro-pdfviewer-1.8",
            "macro-pdfviewer-1.7",
            "xwiki-macro-pdfviewer-1.6.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52298.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.514223507Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52298.json",
        "https://github.com/xwikisas/macro-pdfviewer/security/advisories/GHSA-hph4-7j37-7c97",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-52298"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-615"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52298.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-52298",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492178,
  "published_at": "2024-11-13T15:42:42.501+00:00"
}