Bug 2348665 (CVE-2025-1686) - CVE-2025-1686 io.pebbletemplates:pebble: Path Traversal Vulnerability in Pebble Templates
Summary: CVE-2025-1686 io.pebbletemplates:pebble: Path Traversal Vulnerability in Pebb...
Keywords:
Status: NEW
Alias: CVE-2025-1686
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 06:01 UTC by OSIDB Bzimport
Modified: 2025-02-27 19:51 UTC (History)
30 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-27 06:01:15 UTC
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();


Note You need to log in before you can comment on or make changes to this bug.