Vulnerability · Published Mar 9, 2024 · Assigned by GitHub_M

CVE-2024-28184WeasyPrint allows the attachment of arbitrary files and URLs to a PDF

High 7.4

In plain English

A high-severity security flaw in WeasyPrint from Kozea. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)0.7%top 45.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13weasyprint61.2-1DEBIAN-CVE-2024-28184
Debian:14weasyprint61.2-1DEBIAN-CVE-2024-28184
PyPIweasyprint61.2GHSA-35jj-wx47-4w8r
PyPIweasyprint61.2PYSEC-2026-2033
Ubuntu:22.04:LTSweasyprintno fix listedUBUNTU-CVE-2024-28184
Ubuntu:24.04:LTSweasyprintno fix listedUBUNTU-CVE-2024-28184
Ubuntu:25.10weasyprintno fix listedUBUNTU-CVE-2024-28184
Ubuntu:26.04:LTSweasyprintno fix listedUBUNTU-CVE-2024-28184
Ubuntu:26.10weasyprintno fix listedUBUNTU-CVE-2024-28184

Affected products (as reported)

VendorProductVersions
Kozea WeasyPrint >= 61.0, <= 61.1

Weakness: CWE-829 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

References