# CVE-2023-25345: Arbitrary local file read vulnerability during template rendering

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-15T00:00:00.000Z
- Modified: 2026-06-17T05:41:06.723Z
- Also known as: GHSA-2rq5-699j-x7p6
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- swig-templates (npm): up to 2.0.4
- swig (npm): up to 1.4.2
- swig-templates_project swig-templates: up to 2.0.4
- swig_project swig: up to 1.4.2

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## 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

- CVE List: [CVE-2023-25345](https://www.cve.org/CVERecord?id=CVE-2023-25345), CVE Terms of Use, modified 2025-02-27
- GitHub Advisory Database: [GHSA-2rq5-699j-x7p6](https://github.com/advisories/GHSA-2rq5-699j-x7p6), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-25345](https://nvd.nist.gov/vuln/detail/CVE-2023-25345), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25345 · Whole record: https://cve.day/CVE-2023-25345.json · Rebuilt by cve.day 2026-11-25T22:58:22.465Z
