6.8
MEDIUM
CVE-2025-1686
Apache Pebble Templates File Inclusion Vulnerability
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();

INFO

Published Date :

Feb. 27, 2025, 5:15 a.m.

Last Modified :

April 7, 2025, 6:29 p.m.

Remotely Exploitable :

Yes !

Impact Score :

4.0

Exploitability Score :

2.3
Affected Products

The following products are affected by CVE-2025-1686 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Pebbletemplates pebble
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-1686.

URL Resource
https://github.com/PebbleTemplates/pebble/issues/680 Issue Tracking
https://github.com/PebbleTemplates/pebble/issues/688 Vendor Advisory Issue Tracking
https://pebbletemplates.io/wiki/tag/include Product
https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 Exploit Third Party Advisory
https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 Exploit Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-1686 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-1686 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 07, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
    Added CPE Configuration OR *cpe:2.3:a:pebbletemplates:pebble:*:*:*:*:*:*:*:*
    Added Reference Type Snyk: https://github.com/PebbleTemplates/pebble/issues/680 Types: Issue Tracking
    Added Reference Type Snyk: https://github.com/PebbleTemplates/pebble/issues/688 Types: Issue Tracking, Vendor Advisory
    Added Reference Type Snyk: https://pebbletemplates.io/wiki/tag/include Types: Product
    Added Reference Type CISA-ADP: https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 Types: Exploit, Third Party Advisory
    Added Reference Type Snyk: https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 Types: Exploit, Third Party Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Feb. 27, 2025

    Action Type Old Value New Value
    Added CWE CWE-73
    Added Reference https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594
  • New CVE Received by [email protected]

    Feb. 27, 2025

    Action Type Old Value New Value
    Added 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();
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
    Added CWE CWE-73
    Added Reference https://github.com/PebbleTemplates/pebble/issues/680
    Added Reference https://github.com/PebbleTemplates/pebble/issues/688
    Added Reference https://pebbletemplates.io/wiki/tag/include
    Added Reference https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability