GHSA-2rq5-699j-x7p6

Suggest an improvement
Source
https://github.com/advisories/GHSA-2rq5-699j-x7p6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-2rq5-699j-x7p6/GHSA-2rq5-699j-x7p6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2rq5-699j-x7p6
Aliases
Published
2023-03-15T21:30:25Z
Modified
2023-11-08T04:11:51Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Arbitrary local file read vulnerability during template rendering
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2023-03-16T13:27:03Z",
    "nvd_published_at":  "2023-03-15T20:15:00Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / swig-templates

Package

Name
swig-templates
View open source insights on deps.dev
Purl
pkg:npm/swig-templates

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.0.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-2rq5-699j-x7p6/GHSA-2rq5-699j-x7p6.json"

npm / swig

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
1.4.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-2rq5-699j-x7p6/GHSA-2rq5-699j-x7p6.json"