FICHE CVE

CVE-2026-16770

Publiée le 2026-08-13 · Dernière modification le 2026-08-26

🇫🇷 EN BREF

Les applications Perl utilisant la bibliothèque `PDF::WebKit` (version 1.2 et versions antérieures) pour convertir du HTML en PDF sont concernées. Un attaquant peut intégrer des balises meta spécialement conçues dans un document HTML pour modifier les paramètres du convertisseur, lui permettant ainsi de lire des fichiers locaux sur le serveur ou d'écrire des fichiers dans des chemins arbitraires. Cela peut être exécuté à distance sans authentification ni interaction de l'utilisateur, à condition que l'application génère un rendu à partir d'entrées HTML non fiables.

CVSS 3.19.8 CRITIQUE
Type de faiblesse
Publiée2026-08-13
Dernière modification2026-08-26

DÉTAIL DU VECTEUR CVSS

Vecteur d'attaqueRéseau
Complexité d'attaqueFaible
Privilèges requisAucun
Interaction utilisateurAucune
PortéeInchangée
Impact sur la confidentialitéÉlevé
Impact sur l'intégritéÉlevé
Impact sur la disponibilitéÉlevé

RÉFÉRENCES

Description officielle du NVD (en anglais)

PDF::WebKit versions through 1.2 for Perl allow argument injection into wkhtmltopdf via meta tags in the source document. For an HTML string or file source, the constructor collects every <meta name="pdf-webkit-KEY" content="VALUE"> element in the document head through _pdf_webkit_meta_tags and turns each one into a wkhtmltopdf command line option. KEY is normalized to an option name matching --[a-z0-9-]+ but is not checked against an allow list, VALUE is passed through unchanged as the argument that follows it, and a VALUE of "yes" emits the option as a bare flag. BUILD merges the meta derived options last, so they also override the module defaults and the options passed to new. Switches such as --enable-local-file-access and --cookie-jar are reachable this way. The renderer is executed with an argument list rather than a shell command, so this is argument injection and not shell injection. Any caller that renders untrusted HTML lets the document choose the renderer's options and override those set by the application, including options that read local files into the resulting PDF or write to a chosen path. A URL source is not scanned, and the scan is skipped when XML::LibXML, a recommended dependency, is not installed.