CVE-2025-1686
MEDIUM 4.8CVSS 4.0Pebble has Arbitrary Local File Inclusion (LFI) Vulnerability via `include` macro
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();
- Published
- 27 Feb 2025
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Analyzed
- Weakness
- CWE-73
- Also known as
- GHSA-p75g-cxfj-7wrx
- Sources
- NVDJSONOSV GHSA-p75g-cxfj-7wrxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | MEDIUM 4.8 | CVSS:4.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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:L/SI:N/SA:N | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pebbletemplates | pebble_templatescpe:2.3:a:pebbletemplates:pebble_templates:*:*:*:*:*:*:*:* |
< 4.1.0 | 4.1.0 |
| OSV | Maven | io.pebbletemplates:pebble | <= 3.2.3 |
References
- https://github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329 · Patch, WEB
- https://github.com/PebbleTemplates/pebble/issues/680 · Issue Tracking, WEB
- https://github.com/PebbleTemplates/pebble/issues/688 · Issue Tracking, Vendor Advisory, WEB
- https://pebbletemplates.io/wiki/tag/include · Product, WEB
- https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594 · Exploit, Third Party Advisory, WEB
- https://github.com/PebbleTemplates/pebble/pull/715 · Issue Tracking, Patch, WEB
- https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-p75g-cxfj-7wrx · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-1686 · ADVISORY
- https://github.com/PebbleTemplates/pebble · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 27 Feb 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Feb 2025)