CVE-2023-25345 Arbitrary local file read vulnerability during template rendering
Attackers can read arbitrary files via directory traversal in swig-templates and swig libraries using include or extends tags.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-25345?
CVE-2023-25345 is a high-severity path traversal vulnerability in n/a, published on 15 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2023-25345?
4 open source packages ship an affected version, including swig and swig-templates. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
swig npm | All versions to 1.4.2 | None |
swig npm | All versions to 1.4.2 | None |
swig-templates npm | All versions to 2.0.4 | None |
swig-templates npm | All versions to 2.0.4 | None |
Products include Swig-Templates Project Swig-Templates, Swig Project Swig.
How do I fix CVE-2023-25345?
No fix has been published for CVE-2023-25345 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-25345 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25345 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-2rq5-699j-x7p6.