Skip to content
Heist/ feed
Back to feed
High

The PDF viewer macro allows accessing any attachment without access right checks

Type: advisorySources: OSV

macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. Any user with view right on XWiki.PDFViewerService can access any attachment stored in the wiki as the "key" that is passed to prevent this is computed incorrectly, calling skip on the digest stream doesn't update the digest. This is fixed in 2.5.6.

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

Source evidence

The PDF viewer macro allows accessing any attachment without access right checks

core-osv · Original source

Published 13 Nov 2024, 15:29 UTC

macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. Any user with view right on XWiki.PDFViewerService can access any attachment stored in the wiki as the "key" that is passed to prevent this is computed incorrectly, calling skip on the digest stream doesn't update the digest. This is fixed in 2.5.6.

osv:CVE-2024-52299
Complete source record
{
  "id": "195a30be6b00b44d1a301fa71cbcf0b9ef5af0e550a5c62322302c4187f729a6",
  "url": "https://osv.dev/vulnerability/CVE-2024-52299",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "The PDF viewer macro allows accessing any attachment without access right checks",
    "summary": "macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. Any user with view right on XWiki.PDFViewerService can access any attachment stored in the wiki as the \"key\" that is passed to prevent this is computed incorrectly, calling skip on the digest stream doesn't update the digest. This is fixed in 2.5.6.",
    "evidence": "osv:CVE-2024-52299",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-52299",
      "aliases": [
        "CVE-2024-52299",
        "GHSA-522m-m242-jr9p"
      ],
      "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-52299.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.177501839Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52299.json",
        "https://github.com/xwikisas/macro-pdfviewer/security/advisories/GHSA-522m-m242-jr9p",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-52299"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-340"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52299.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-52299",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494940,
  "published_at": "2024-11-13T15:29:07.107+00:00"
}