@electron/asar is vulnerable to Path Traversal
66
CVE Score
Medium
Path Traversal
@electron/asar reads, extracts, and packs ASAR archives without fully validating the untrusted header, file offsets, or entry paths. A crafted archive can declare an oversized header or file size that triggers large buffer allocations, supply offsets that read outside the archive bounds, use .. sequences in unpacked-file names to read files outside the .unpacked directory, or contain circular symlinks that cause unbounded recursion. Packing a source directory that contains symlinks with absolute or traversing targets could also place links outside the destination package. The fix adds strict header and offset validation, constrains unpacked reads and extraction to the target directory, and adds circular-symlink detection with a depth limit.
Upgrade the @electron/asar library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application uses this library to read, extract, or pack untrusted ASAR archives or source directories.
3.2.1 - 4.2.0
Fixed in 4.2.1@electron/asar is vulnerable to Path Traversal in versions 3.2.1 - 4.2.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.