SecurityContext

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

IdName
CWE-73External Control of File Name or Path

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594nvd2025-02-27

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329Patch
https://github.com/PebbleTemplates/pebble/pull/715Issue Tracking, Patch
https://github.com/PebbleTemplates/pebble/issues/688Issue Tracking, Vendor Advisory
https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594Exploit, Third Party Advisory
https://github.com/PebbleTemplates/pebble/issues/680Issue Tracking
https://pebbletemplates.io/wiki/tag/includeProduct

Products

ProductAffectedPlatform boundSourcesUrl
pebbletemplates:pebble_templates< 4.1.0nonvd/v1/products/pebbletemplates/pebble_templates

Projects

RepositoryLink kindsIndexedUrl
pebbletemplates/pebblecommit, fix, issues, package, pullyes/v1/repositories/pebbletemplates/pebble
JLLeitschuh/security-researchsecurity_advisoryyes/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