# CVE-2025-1686: Pebble has Arbitrary Local File Inclusion (LFI) Vulnerability via `include` macro

- Severity: Medium 6.1 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-02-27T05:00:05.848Z
- Modified: 2026-09-10T03:50:22.817Z
- Also known as: GHSA-p75g-cxfj-7wrx
- Related: CVE-2025-27137
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## 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();

(As written by CVE List.)

## Affected

- io.pebbletemplates:pebble: before 4.1.0
- io.pebbletemplates:pebble (Maven): up to 3.2.3
- pebbletemplates pebble_templates: before 4.1.0

## Every score

- snyk: CVSS:4.0 6.1 Medium `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`
- snyk: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N/E:P`
- GitHub: CVSS:3.1 6.8 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594> (exploit, third-party-advisory, web)
- <https://github.com/PebbleTemplates/pebble/issues/680> (issue-tracking, web)
- <https://pebbletemplates.io/wiki/tag/include> (product, web)
- <https://github.com/PebbleTemplates/pebble/issues/688> (issue-tracking, vendor-advisory, web)
- <https://github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329> (patch, 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)

## Sources

- CVE List: [CVE-2025-1686](https://www.cve.org/CVERecord?id=CVE-2025-1686), CVE Terms of Use, modified 2026-04-19
- GitHub Advisory Database: [GHSA-p75g-cxfj-7wrx](https://github.com/advisories/GHSA-p75g-cxfj-7wrx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-1686](https://nvd.nist.gov/vuln/detail/CVE-2025-1686), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1686 · Whole record: https://cve.day/CVE-2025-1686.json · Rebuilt by cve.day 2026-11-25T22:58:54.574Z
