CVE-2025-1686 Details
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();
A vulnerability allowing arbitrary local file inclusion has been identified in all versions of the Pebble templating engine, specifically through the use of the include tag. This issue arises because the include tag can be exploited to access sensitive local files, such as /etc/passwd or /proc/1/environ. The vulnerability requires a high-privileged attacker who can create malicious notification templates that leverage the include tag to access these files.
This vulnerability can be mitigated by disabling the include macro in Pebble Templates. This can be done by creating a new PebbleEngine instance and registering an extension customizer that disallows the include tag.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/PebbleTemplates/pebble/pull/715 | CVE | Issue TrackingPatch |
| https://github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329 | [email protected] | Patch |
| https://github.com/PebbleTemplates/pebble/issues/680 | [email protected] | Issue Tracking |
| https://github.com/PebbleTemplates/pebble/issues/688 | [email protected] | Issue TrackingVendor Advisory |
| https://pebbletemplates.io/wiki/tag/include | [email protected] | Product |
| https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-73 | External Control of File Name or Path | CISA-ADP |
| CWE-73 | External Control of File Name or Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pebbletemplates pebble templates | < 4.1.0 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 5, 2026 | Modified Analysis | [email protected] |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 19, 2026 | CVE Modified | [email protected] |
| Dec 19, 2025 | CVE Modified | CVE |
| Apr 7, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 27, 2025 | New CVE Received | [email protected] |