CVE-2023-25345
HIGH 7.5CVSS 3.1Arbitrary local file read vulnerability during template rendering
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.
- Published
- 15 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-2rq5-699j-x7p6
- Sources
- NVDJSONOSV GHSA-2rq5-699j-x7p6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | swig-templates_project | swig-templatescpe:2.3:a:swig-templates_project:swig-templates:*:*:*:*:*:*:*:* |
<= 2.0.4 | |
| NVD | swig_project | swigcpe:2.3:a:swig_project:swig:*:*:*:*:*:*:*:* |
<= 1.4.2 | |
| OSV | npm | swig-templates | <= 2.0.4 | |
| OSV | npm | swig | <= 1.4.2 |
References
- https://github.com/node-swig/swig-templates/issues/88 · Exploit, Issue Tracking, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-25345 · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 15 Mar 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 15 Mar 2023)