Source. This article is based on GitHub Security Advisory GHSA-243g-fjgc-p572: Catalog API file read/write in bigbridge/product-import. Details were checked against it on November 28, 2026; check the source for later changes.
On 26 November 2026 the maintainers of bigbridge/product-import, a Composer module for bulk product imports into Magento 2, published advisory GHSA-243g-fjgc-p572. The product import REST endpoint did not limit which local directories it could touch. A caller with the right permission could write files outside the import directories and read any file the web server user can read. The advisory lists patched releases 1.7.9 and 1.8.2. It has no CVE identifier at the time of writing, and it rates the severity as Moderate (CVSS 6.6). We read it at the GitHub advisory and in the Packagist advisory feed.
Moderate is not the same as harmless. The advisory says that, depending on web server configuration, the file write can lead to code execution. That is why a Magento shop with this module installed should treat it as a same-week job.
Who is affected
The affected ranges are 1.0.0 up to but not including 1.7.9, and 1.8.0 up to but not including 1.8.2. The advisory states that the endpoint exists whenever the module is enabled, including on shops that only use the CLI command or the PHP API. The CLI command and the PHP API themselves are not affected by the web flaw.
The caller needs the Magento_Catalog::products ACL resource. In practice that means admin users with catalog access, and integrations (API tokens) that have catalog access. The advisory rates attack complexity as high and privileges required as high, so this is not an anonymous attack. It matters most when an admin account or integration token is stolen, shared with an agency, or held by a plugin you do not fully trust.
Check your installed version
composer show bigbridge/product-import | grep versions
composer why bigbridge/product-import
If the first command prints anything below 1.7.9 on the 1.7 line, or below 1.8.2 on the 1.8 line, you are in the affected range. If Composer says the package is not installed, this advisory does not apply to that codebase.
The fix
- Pick your branch. The advisory names 1.8.2 for the 1.8 line and 1.7.9 for the 1.7 line. It adds that the 1.7.9 fix is for PHP versions below 8.1, so check the advisory text for your PHP version before choosing.
- Update the package in a staging copy first:
composer require bigbridge/product-import:1.8.2 # or, on the 1.7 line: composer require bigbridge/product-import:1.7.9 - Run your normal Magento deployment steps (setup upgrade, compile, static content) the way you do for any module update.
- Re-run one real import against staging and watch for the breaking changes below.
What the patch changes
Per the maintainers, web API imports now resolve every local path with realpath and require it to sit inside an allowed directory: pub/media/import or var/product-import. That applies to the local image-source-dir, the image-cache-dir, and any local image or download files named in the import XML. Images with a disallowed extension are no longer downloaded or copied. Across all import routes (web API, CLI and PHP API), images must now pass a getimagesize check as real JPEG, PNG or GIF files.
Breaking changes to expect
These are patch releases, but the advisory lists three setups that may stop working:
- Web API imports whose
image-cache-diror localimage-source-diris outside the allowed directories now fail with HTTP 400. The advisory notes thatimage-cache-dir=/tmp, which earlier documentation used as an example, falls in this group. - Web API imports that point at local image or download files outside the allowed directories reject those products with an error.
- On every route, a file that is not a real JPEG, PNG or GIF (the advisory gives a WebP or SVG renamed to
.jpgas an example) now rejects the product. Before, it imported and then failed later during Magento image resizing.
The fix for the first two is to move the files into an allowed directory, or to register your own directory through the localFileRoots argument of BigBridge\ProductImport\Api\ProductImportWebApi in a di.xml of your own module. The advisory warns against adding any directory that the web server serves with PHP enabled, or that holds files a catalog admin should not be able to read. Imports that use only image URLs, or local files inside the allowed directories, are not affected.
If you cannot upgrade right now
The advisory gives these options, in order of preference:
- Upgrade to 1.8.2 or 1.7.9. This is the recommended route.
- For versions 1.5.3 through 1.8.1, the maintainers say standalone patches are available. Ask them through the advisory page rather than from a third party.
- If you do not use the web API, block
/rest/*/V1/bigbridge/productsand/rest/V1/bigbridge/productsat the web server. - Review which admin roles and integrations hold the
Magento_Catalog::productsresource, and remove it where it is not needed.
One more point from the advisory: code that calls ImportConfig and Importer directly is not restricted by default. If that code processes directories or XML from a less trusted source, set $config->localFileRoots to the directories it may read from and write to.
How to confirm the fix worked
We have not run this upgrade ourselves, so treat these as checks to make on your own staging copy, based on what the advisory describes:
composer show bigbridge/product-importreports 1.8.2 or 1.7.9 (or higher on your line).- A web API import that sets
image-cache-dirto a directory outside the allowed ones now returns HTTP 400. If it still succeeds, the old code is still deployed. - Your regular imports still complete, and any product rejected for a non-image file is a data problem you can now see and fix.
- Look at the web server access log for past calls to the
/V1/bigbridge/productsroutes from accounts or IPs you do not recognise, and review the contents ofpub/mediafor files you did not put there.
When this points to a bigger problem
A bulk import module with an HTTP endpoint, a broad catalog permission and no path checks is a common shape in older Magento builds: third-party modules added over the years, API tokens nobody has reviewed, and a composer.lock that has not moved in a long time. If you also find a PHP version near its end of life, our PHP 5.6/7.x to 8 upgrade guide and the modernisation roadmap show the order we work in, and the security checklist for legacy platforms covers the permission and file-write review. If the shop itself is still on Magento 1, see rescue versus rebuild. For hands-on help with module updates, import pipelines and ACL reviews, see our Magento development service.
Frequently asked questions
Which versions of bigbridge/product-import fix GHSA-243g-fjgc-p572?
The advisory lists 1.8.2 for the 1.8 line and 1.7.9 for the 1.7 line. Affected ranges are 1.0.0 to below 1.7.9 and 1.8.0 to below 1.8.2.
Can I block the vulnerable endpoint instead of upgrading?
If you do not use the web API, the advisory says you can block /rest/*/V1/bigbridge/products and /rest/V1/bigbridge/products at the web server. Upgrading is still the recommended fix.
Who can exploit this flaw?
The advisory says the caller needs the Magento_Catalog::products ACL resource, which covers admin users and integrations with catalog access. It is not an anonymous attack.
Running Magento with third-party import modules?
We review Magento modules, API integrations and admin permissions, apply security updates safely, and fix the imports that break afterwards.
See our Magento Development