CVE-2025-1686

6.8 MEDIUM
Published: February 27, 2025 Modified: December 19, 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. 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();

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/PebbleTemplates/pebble/issues/680
Source: report@snyk.io
Issue Tracking
https://github.com/PebbleTemplates/pebble/issues/688
Source: report@snyk.io
Issue Tracking Vendor Advisory
https://pebbletemplates.io/wiki/tag/include
Source: report@snyk.io
Product
https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594
Source: report@snyk.io
Exploit Third Party Advisory
https://github.com/PebbleTemplates/pebble/pull/715
Source: af854a3a-2127-422b-91ae-364da2661108
https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit Third Party Advisory

6 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.8 / 10.0
EPSS (Exploit Probability)
0.1%
24th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

pebbletemplates