{"id":"CVE-2025-1686","published":"2025-02-27T05:00:05Z","modified":"2026-04-19T07:54:57Z","title":"Versions of the package io.pebbletemplates:pebble from 0 and before 4.1.0 are vulnerable to External Control of File…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.\r\r Workaround\r\rThis vulnerability can be mitigated by disabling the include macro in Pebble Templates:\r\rjava\rnew PebbleEngine.Builder()\r            .registerExtensionCustomizer(new DisallowExtensionCustomizerBuilder()\r                    .disallowedTokenParserTags(List.of(\"include\"))\r                    .build())\r            .build();","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01167,"percentile":0.67153,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594","tags":[]},{"url":"https://github.com/PebbleTemplates/pebble/issues/680","tags":[]},{"url":"https://pebbletemplates.io/wiki/tag/include","tags":[]},{"url":"https://github.com/PebbleTemplates/pebble/issues/688","tags":[]},{"url":"https://github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329","tags":[]},{"url":"https://github.com/PebbleTemplates/pebble/pull/715","tags":[]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":13.43},{"name":"CVSS severity","points":4.76}]},"affectedVersions":[{"vendor":"n/a","product":"io.pebbletemplates:pebble","versions":["< 4.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-27T14:44:07.532280Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"io.pebbletemplates:pebble","vulnerableRanges":["<=3.2.3"],"patched":[],"from":["GHSA-p75g-cxfj-7wrx"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-5321","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-dependencytrack-dependency-track-cve-2025-27137","parents":[{"from":"CVE-2025-27137","to":"CVE-2025-1686","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-p75g-cxfj-7wrx","via":"related"}]}]}}