PDF Invoices & Packing Slips for WooCommerce <= 3.7.6 - Authenticated (Shop Manager+) SQL Injection
Strategic Overview
- Status
- Patched in 3.7.7
- Affected Plugin
- PDF Invoices & Packing Slips for WooCommerce
- Affected Version
<= 3.7.6- CVSS
- 7.2High
- Weakness type
- CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CVE
CVE-2024-22147
At a glance
CVE-2024-22147 is a high-severity Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in the PDF Invoices & Packing Slips for WooCommerce WordPress plugin, affecting versions <= 3.7.6. It carries a CVSS score of 7.2 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account at Shop Manager level or above. The issue is fixed in version 3.7.7; sites on affected versions should update now. Disclosed January 2024, reported by beluga.
Vulnerability Overview
The PDF Invoices & Packing Slips for WooCommerce plugin for WordPress is vulnerable to SQL Injection via the get_numbers() function in all versions up to, and including, 3.7.6 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with shop manager-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
PDF Invoices & Packing Slips for WooCommerce <= 3.7.6 carries this weakness at get_numbers(), and reaching it takes an account at Shop Manager level or above. SQL injection happens when request data is concatenated into a query instead of being bound as a parameter, letting an attacker change the structure of the statement rather than just its values.
A working injection can read any table the database user can see, which on a WordPress install means user records, password hashes and session or API secrets stored in options. For PDF Invoices & Packing Slips for WooCommerce the fix is 3.7.7: builds <= 3.7.6 are affected, anything from 3.7.7 onward is not.
Remediation
Update to version 3.7.7, or a newer patched version
How does WordSec protect against this?
An attacker needs Shop Manager access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: PDF Invoices & Packing Slips for WooCommerce 3.7.7 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Other vulnerabilities in PDF Invoices & Packing Slips for WooCommerce
- 7.2CVE-2024-3047: PDF Invoices & Packing Slips for WooCommerce SSRF
CVE-2024-3047 - 7.2CVE-2024-3045: PDF Invoices & Packing Slips for WooCommerce Stored XSS
CVE-2024-3045 - 6.6CVE-2026-39472: PDF Invoices & Packing Slips… PHP Object Injection
CVE-2026-39472 - 6.1CVE-2022-2537: WooCommerce PDF Invoices & Packing… Reflected XSS
CVE-2022-2537 - 6.1WooCommerce PDF Invoices & Packing Slips <= 2.14.5 XSS
- 6.1CVE-2017-18506: WooCommerce PDF Invoices & Packing Slips <= 2.0.12 XSS
CVE-2017-18506 - 5.4CVE-2022-2092: WooCommerce PDF Invoices & Packing Slips Reflected XSS
CVE-2022-2092 - 5.3CVE-2024-50421: WooCommerce PDF Invoices… Missing Authorization
CVE-2024-50421
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C