{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-1686","id":"CVE-2025-1686","title":"Pebble has Arbitrary Local File Inclusion (LFI) Vulnerability via `include` macro","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.\r\r Workaround\r\rThis vulnerability can be mitigated by disabling the ","descriptionLong":"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();","published":"2025-02-27T05:00:05.848Z","updated":"2026-10-28T10:59:18.279387929Z","reserved":"2025-02-25T10:32:01.608Z","status":"Analyzed","rejected":false,"assigner":"snyk","metric":{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P","rating":"medium","source":"snyk"},"metrics":[{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P","rating":"medium","source":"snyk"},{"version":"4.0","score":4.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"snyk.io"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:L/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N/E:P","rating":"medium","source":"snyk"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","rating":"medium","source":"snyk.io"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["io.pebbletemplates:pebble"],"affectedProducts":[{"vendor":"n/a","product":"io.pebbletemplates:pebble","defaultStatus":null,"versions":[{"version":"0","lessThan":"4.1.0","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"io.pebbletemplates:pebble","purl":"pkg:maven/io.pebbletemplates/pebble","ranges":["<=3.2.3"],"fixed":[],"advisory":"GHSA-p75g-cxfj-7wrx"}],"cwes":["CWE-73"],"aliases":["GHSA-p75g-cxfj-7wrx"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JAVA-IOPEBBLETEMPLATES-8745594","tags":["exploit","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/PebbleTemplates/pebble/issues/680","tags":["Issue Tracking","report","web"]},{"url":"https://pebbletemplates.io/wiki/tag/include","tags":["Product","web"]},{"url":"https://github.com/PebbleTemplates/pebble/issues/688","tags":["Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://github.com/PebbleTemplates/pebble/commit/b3451c8f305a1a248fbcc2363fd307d0baaee329","tags":["Patch","fix","web"]},{"url":"https://github.com/PebbleTemplates/pebble/pull/715","tags":["Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1686.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1686","tags":["advisory"]},{"url":"https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-p75g-cxfj-7wrx","tags":["web"]},{"url":"https://github.com/PebbleTemplates/pebble","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00847,"epssPercentile":0.58844,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-1686","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1686","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-1686","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p75g-cxfj-7wrx","ok":true,"note":"GHSA-p75g-cxfj-7wrx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-1686","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}