CVE-2025-1686
Java vulnerability analysis and mitigation

Overview

CVE-2025-1686 affects all versions of the io.pebbletemplates:pebble package, which is a Java templating engine inspired by Twig. The vulnerability was discovered by Jonathan Leitschuh and publicly disclosed on February 24, 2025. The issue relates to External Control of File Name or Path vulnerability via the include tag, which affects the template engine's security (Snyk Advisory).

Technical details

The vulnerability is classified as CWE-73 (External Control of File Name or Path) and has received a CVSS v4.0 score of 6.1 (Medium) from Snyk. The technical assessment indicates that while the attack can be performed over the network and requires no special conditions, it does require high-level privileges. The vulnerability specifically affects the include tag functionality in Pebble Templates, which can be exploited when PebbleTemplate is created with PebbleEngine#getLiteralTemplate (Snyk Advisory).

Impact

A high-privileged attacker can access sensitive local files by crafting malicious notification templates that leverage the include tag. This could lead to unauthorized access to system files such as /etc/passwd or /proc/1/environ, potentially exposing sensitive system information (Snyk Advisory).

Mitigation and workarounds

While there is no fixed version available, the vulnerability can be mitigated by disabling the include macro in Pebble Templates using the following configuration: new PebbleEngine.Builder().registerExtensionCustomizer(new DisallowExtensionCustomizerBuilder().disallowedTokenParserTags(List.of("include")).build()).build() (Snyk Advisory).

Community reactions

The vulnerability was initially reported under the Open Source Security Foundation (OpenSSF) Model Outbound Vulnerability Disclosure Policy on July 15, 2024. Despite multiple attempts to contact the maintainers between July 2024 and February 2025, no response was received, leading to the public disclosure of the vulnerability (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-30001HIGH7.3
  • JavaJava
  • org.apache.streampark:streampark
NoNoOct 10, 2025
CVE-2025-37727MEDIUM5.7
  • JavaJava
  • org.elasticsearch:elasticsearch
NoYesOct 10, 2025
CVE-2025-62238MEDIUM4.8
  • JavaJava
  • com.liferay:com.liferay.account.admin.web
NoYesOct 10, 2025
CVE-2025-62237MEDIUM4.8
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesOct 10, 2025
CVE-2025-62239MEDIUM4.6
  • JavaJava
  • com.liferay:com.liferay.portal.workflow.kaleo.designer.web
NoYesOct 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management