CVE-2025-1686

Source
https://cve.org/CVERecord?id=CVE-2025-1686
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1686.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-1686
Aliases
Related
Published
2025-02-27T05:00:05.848Z
Modified
2026-07-08T07:57:58.080928288Z
Severity
  • 4.8 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
[none]
Details

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();

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1686.json",
    "cna_assigner": "snyk",
    "cwe_ids": [
        "CWE-73"
    ]
}
References

Affected packages

Git / github.com/pebbletemplates/pebble

Affected ranges

Type
GIT
Repo
https://github.com/pebbletemplates/pebble
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:pebbletemplates:pebble_templates:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "4.1.0"
        }
    ]
}

Affected versions

3.*
3.1.5
3.1.6
3.2.0
3.2.1
3.2.2
3.2.3
3.2.4
4.*
4.0.0
v0.*
v0.0.2-alpha
v0.0.3-alpha
v0.1.0-beta
v0.1.1-beta
v0.1.2-beta
v0.1.3-beta
v0.1.4-beta
v0.1.5-beta
v0.2.0-beta
v0.3.0-beta
v0.4.0-beta
v1.*
v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2
v1.4.3
v1.4.4
v1.4.5
v1.5.0
v1.5.1
v1.5.2
v1.6.0
v2.*
v2.0.0
v2.2.0
v2.2.1
v2.2.2
v2.2.3
v3.*
v3.0.0
v3.0.0.BETA01
v3.0.1
v3.0.10
v3.0.2
v3.0.4
v3.0.5
v3.0.6
v3.0.7
v3.0.8
v3.0.9
v3.1.0
v3.1.1
v3.1.2
v3.1.3
v3.1.4
v3.1.5
v3.1.6
v3.2.0
v3.2.1
v3.2.2
v3.2.3
v3.2.4
v4.*
v4.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1686.json"