art-template - Path Traversal in Sub-Template Resolution via include()/extend()
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| art-template | art-template | unknown |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Art-template | Art-template |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.558% probability within 30 days)
| Link | Providers |
|---|---|
| https://github.com/aui/art-template |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | art-template's sub-template resolution logic (src/compile/adapter/resolve-filename.js), used by both the include() and extend() template directives, resolves the target file path via path.resolve(root, filename) with no check afterward that the result remains inside root. Because path.resolve() discards root entirely when filename is an absolute path, and does not block '../' traversal sequences, and the resolved path is passed directly to fs.readFileSync() in loader.js with its contents compiled and rendered, an application that lets a sub-template name be influenced by external input (e.g. a query parameter passed into {{include page}}) allows an attacker to read arbitrary files on disk that the Node process can access. | art-template's sub-template resolution logic (src/compile/adapter/resolve-filename.js), used by both the include and extend template directives, resolves the target file path via path.resolve(root, filename) with no check afterward that the result remains inside root. |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | art-template: Path Traversal in Sub-Template Resolution via include()/extend() | art-template - Path Traversal in Sub-Template Resolution via include()/extend() |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Art-template
Art-template art-template |
|
| Vendors & Products |
Art-template
Art-template art-template |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | art-template's sub-template resolution logic (src/compile/adapter/resolve-filename.js), used by both the include() and extend() template directives, resolves the target file path via path.resolve(root, filename) with no check afterward that the result remains inside root. Because path.resolve() discards root entirely when filename is an absolute path, and does not block '../' traversal sequences, and the resolved path is passed directly to fs.readFileSync() in loader.js with its contents compiled and rendered, an application that lets a sub-template name be influenced by external input (e.g. a query parameter passed into {{include page}}) allows an attacker to read arbitrary files on disk that the Node process can access. | |
| Title | art-template: Path Traversal in Sub-Template Resolution via include()/extend() | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV3_1
|