CVE-2022-46161: GHSL-2022-068: Remote Code Execution (RCE) in PDFMake - CVE-2022-46161

Published Dec 6, 2022
·
Updated

pdfmake is an open source client/server side PDF printing in pure JavaScript. In versions up to and including 0.2.5 pdfmake contains an unsafe evaluation of user controlled input. Users of pdfmake are thus subject to arbitrary code execution in the context of the process running the pdfmake code. There are no known fixes for this issue. Users are advised to restrict access to trusted user input.

Other sources

The dev-playground of pdfmake lacks sandboxing/sanitization of the data sent to the server (which flows to eval()).

GitHub Security Lab

Affected Software

2 affected components
Pdfmake Project Pdfmake<=0.2.5
Pdfmake Pdfmake<=0.2.5

Event History

Dec 6, 2022
Advisory Published
via GitHub Security Lab·12:00 AM
Data Sourced
via GitHub Security Lab·12:00 AM
DescriptionWeakness
CVE Published
via MITRE·06:47 PM
Data Sourced
via MITRE·06:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-46161?

CVE-2022-46161 is a vulnerability in pdfmake, an open source client/server side PDF printing library in JavaScript, that allows for arbitrary code execution.

2

What is the severity of CVE-2022-46161?

CVE-2022-46161 has a severity rating of critical with a score of 9.8.

3

What software versions are affected by CVE-2022-46161?

Versions up to and including 0.2.5 of pdfmake are affected by CVE-2022-46161.

4

How can I fix CVE-2022-46161?

To fix CVE-2022-46161, it is recommended to upgrade to a version of pdfmake that is higher than 0.2.5.

5

Where can I find more information about CVE-2022-46161?

More information about CVE-2022-46161 can be found at the following references: [Reference 1](https://github.com/bpampuch/pdfmake/blob/802813970ac6de68a0bd0931b74150b33da0dd18/dev-playground/server.js#L32), [Reference 2](https://securitylab.github.com/advisories/GHSL-2022-068_pdfmake/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203