Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.pebbletemplates/pebble
  4. ›
  5. CVE-2025-1686

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

February 28, 2025 (updated April 24, 2026)

If untrusted user input is used to dynamically create a PebbleTemplate with the method PebbleEngine#getLiteralTemplate, then an attacker can include arbitrary local files from the file system into the generated template, leaking potentially sensitive information into the output of PebbleTemplate#evaluate. This is done via the include macro.

References

  • github.com/JLLeitschuh/security-research/security/advisories/GHSA-p75g-cxfj-7wrx
  • github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329
  • github.com/PebbleTemplates/pebble/issues/680
  • github.com/PebbleTemplates/pebble/issues/688
  • github.com/PebbleTemplates/pebble/pull/715
  • github.com/advisories/GHSA-p75g-cxfj-7wrx
  • nvd.nist.gov/vuln/detail/CVE-2025-1686
  • pebbletemplates.io/wiki/tag/include
  • security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594

Code Behaviors & Features

Detect and mitigate CVE-2025-1686 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.2.3

Solution

Unfortunately, there is no solution available yet.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-73: External Control of File Name or Path

Source file

maven/io.pebbletemplates/pebble/CVE-2025-1686.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:48 +0000.