CVE-2025-1686: Pebble Templates - File Inclusion
- Cve: CVE-2025-1686
- Name: Pebble Templates - File Inclusion
- 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();
- Impact: Attackers can access sensitive local files, potentially leading to information disclosure or system compromise.
- Remediation: Disable the include macro in Pebble Templates as a workaround; update to the latest version when available.
- Vulnerability type: file_inclusion
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00847
- Epss percentile: 0.58835
- Assignee: [email protected]
- Published at: 2025-02-27T05:15:14Z
- Age in days: 635
- Modified at: 2026-06-17T08:39:35Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-1686
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-73 | External Control of File Name or Path |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 | nvd | 2025-02-27 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329 | Patch |
| https://github.com/PebbleTemplates/pebble/pull/715 | Issue Tracking, Patch |
| https://github.com/PebbleTemplates/pebble/issues/688 | Issue Tracking, Vendor Advisory |
| https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 | Exploit, Third Party Advisory |
| https://github.com/PebbleTemplates/pebble/issues/680 | Issue Tracking |
| https://pebbletemplates.io/wiki/tag/include | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pebbletemplates:pebble_templates | < 4.1.0 | no | nvd | /v1/products/pebbletemplates/pebble_templates |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pebbletemplates/pebble | commit, fix, issues, package, pull | yes | /v1/repositories/pebbletemplates/pebble |
| JLLeitschuh/security-research | security_advisory | yes | /v1/repositories/JLLeitschuh/security-research |
Index
- Repositories: 5
- Repositories high signal: 5
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-02-27
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts