Code Injection in Pug - CVE-2024-36361

 

Code Injection in Pug - CVE-2024-36361

Published: February 3, 2025 / Updated: February 7, 2025


Vulnerability identifier: #VU103495
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-36361
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to Pug allows JavaScript code execution if an application accepts untrusted input for the name option of the compileClient, compileFileClient, or compileClientWithDependenciesTracked function. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.


Affected software

Pug
DB2 Warehouse on Cloud Pak for Data
DB2 on Cloud Pak for Data

How to mitigate CVE-2024-36361

Install updates from vendor's website.

Pug - update to 3.0.3
DB2 Warehouse on Cloud Pak for Data - update to 4.8.8
DB2 on Cloud Pak for Data - update to 4.8.8

External References

Related Security Bulletins