Intel

AIKIDO-2024-10536

ghost is vulnerable to Insecure Inherited Permissions

Insecure Inherited Permissions Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 16, 2024

85

High Risk

This Affects:

jsghost
0.0.1 - 5.104.0
Fixed in 5.105.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to improper handling of file permissions for uploaded files. Previously, uploaded files retained their original permissions, potentially leaving them executable and creating a security risk. The issue has been addressed by enforcing 0644 permissions on all files uploaded via the Ghost importer, ensuring they are non-executable and significantly reducing the risk of exploitation.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

ghost is vulnerable to Insecure Inherited Permissions in versions 0.0.1 - 5.104.0.

How to fix this

Upgrade the ghost library to the patch version.