CVE-2023-25345
7.5high
Arbitrary local file read vulnerability during template rendering
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.05% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-2rq5-699j-x7p6
Description
Directory traversal vulnerability in swig-templates thru 2.0.4 and swig thru 1.4.2, allows attackers to read arbitrary files via the include or extends tags.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| swig-templates (npm) | up to 2.0.4 | GitHub Advisory Database |
| swig (npm) | up to 1.4.2 | GitHub Advisory Database |
| swig-templates_project swig-templates | up to 2.0.4 | NVD |
| swig_project swig | up to 1.4.2 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
References
| https://github.com/node-swig/swig-templates/issues/88 | exploit, issue-tracking, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-25345 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-25345 changed 2025-02-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2rq5-699j-x7p6 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-25345 changed 2026-06-17 | Public domain |