ApostropheCMS import-export tar guard misses './..' because it is a literal '../' substring test
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npm@apostrophecms/import-export |
< 3.7.0→ 3.7.0 |
3.7.0 |
| apostrophecmsapostrophe | — | Not listed |
| @apostrophecmsimport-export | — | Not listed |
Original description The description as published by the source.
ApostropheCMS is an open-source Node.js content management system. Prior to 3.7.0 of the import-export module, an authenticated importer can submit a tar entry whose normalized destination targets a directory while bypassing the literal parent-path substring guard. Opening that directory as a write stream emits an unhandled filesystem error that can terminate the Node.js process; the source establishes this static primitive but not an end-to-end exploit or controlled arbitrary file read or write. This issue is fixed in version 3.7.0.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com