CVE-2025-1686

Severity CVSS v4.0:
MEDIUM
Type:
Unavailable / Other
Publication date:
27/02/2025
Last modified:
07/04/2025

Description

All versions of the package io.pebbletemplates:pebble are vulnerable to External Control of File Name or Path via the include tag. A high privileged attacker can access sensitive local files by crafting malicious notification templates that leverage this tag to include files like /etc/passwd or /proc/1/environ.<br /> <br /> Workaround<br /> <br /> This vulnerability can be mitigated by disabling the include macro in Pebble Templates:<br /> <br /> java<br /> new PebbleEngine.Builder()<br /> .registerExtensionCustomizer(new DisallowExtensionCustomizerBuilder()<br /> .disallowedTokenParserTags(List.of("include"))<br /> .build())<br /> .build();

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:pebbletemplates:pebble:*:*:*:*:*:*:*:*