Skip to content
OpenAdvisories
Medium · 6.8 CVE-2025-1686 EUVD-2025-5321GHSA-p75g-cxfj-7wrx

Pebble has Arbitrary Local File Inclusion (LFI) Vulnerability via `include` macro

Published Feb 27, 2025 · Updated Apr 19, 2026 · Assigned by snyk

Description

Versions of the package io.pebbletemplates:pebble from 0 and before 4.1.0 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.

Workaround

This vulnerability can be mitigated by disabling the include macro in Pebble Templates:

java
new PebbleEngine.Builder()
.registerExtensionCustomizer(new DisallowExtensionCustomizerBuilder()
.disallowedTokenParserTags(List.of("include"))
.build())
.build();

Affected products

VendorProductAffectedFixed
— io.pebbletemplates:pebble < 4.1.0 4.1.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling dependency-track-bundled 4.13.5-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven io.pebbletemplates:pebble <= 3.2.3 — GHSA-p75g-cxfj-7wrx

References