{"id":"CVE-2024-28184","published":"2024-03-09T00:50:32Z","modified":"2025-02-13T17:47:28Z","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","vendor":"Kozea","product":"WeasyPrint","tier":"tail","description":{"text":"WeasyPrint helps web developers to create PDF documents. Since version 61.0, there's a vulnerability which allows attaching content of arbitrary files and URLs to a generated PDF document, even if `url_fetcher` is configured to prevent access to files and URLs. This vulnerability has been patched in version 61.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01053,"percentile":0.6372,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-35jj-wx47-4w8r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Kozea/WeasyPrint/commit/734ee8e2dc84ff3090682f3abff056d0907c8598","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6/","tags":[]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":12.74},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"kozea","affectedVersions":[{"vendor":"Kozea","product":"WeasyPrint","versions":[">= 61.0, <= 61.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-19T14:00:17.785523Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"weasyprint","vulnerableRanges":[">=61.0, <61.2"],"patched":["61.2"],"from":["GHSA-35jj-wx47-4w8r","PYSEC-2026-2033"],"provenance":"source"}],"summary":{"text":"The flaw is in WeasyPrint, a Python library from Kozea that generates PDF documents, and it affects the PDF generation logic introduced in version 61.0 and later. An attacker with low privileges on a network-reachable system can cause a generated PDF to embed the contents of arbitrary files and URLs, even when url_fetcher has been configured to block such access, with no user interaction required and the impact crossing a security scope boundary.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:21:03Z"},"euvd":{"id":"EUVD-2024-0798","exploited":false,"provenance":"source"}}