CVE-2025-1686
Pebbletemplates Pebble vulnerability
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();
Affected products
Pebble. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pebbletemplates Pebble runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/JLLeitschuh/security-research/security/advisories/GHSA-p75g-cxfj-7wrx
- nvd.nist.gov/vuln/detail/CVE-2025-1686
- github.com/PebbleTemplates/pebble/issues/680
- github.com/PebbleTemplates/pebble/issues/688
- pebbletemplates.io/wiki/tag/include
- security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594
- github.com/PebbleTemplates/pebble/pull/715
- github.com/advisories/GHSA-p75g-cxfj-7wrx
- nvd.nist.gov/vuln/detail/CVE-2025-1686
- cve.org/CVERecord?id=CVE-2025-1686
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.