---
title: "GHSA-qf36-fx9f-232x: ZendFramework potential SQL Injection Vector When Using PDO_MySql"
url: https://erroneo.us/security/ghsa/GHSA-qf36-fx9f-232x/
description: "GHSA-qf36-fx9f-232x (critical, Composer (PHP)): ZendFramework potential SQL Injection Vector When Using PDOMySql. Developers using non-ASCII-compatible…"
type: advisory
section: "Security Digest"
date_published: 2024-06-07
date_modified: 2024-06-07
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-qf36-fx9f-232x"
license: All rights reserved. Quote with attribution and a link.
---

# GHSA-qf36-fx9f-232x: ZendFramework potential SQL Injection Vector When Using PDO_MySql

## Affected packages

- Composer (PHP) `zendframework/zendframework1` >= 1.10.0, < 1.10.9 → fixed: 1.10.9
- Composer (PHP) `zendframework/zendframework1` >= 1.11.0, < 1.11.6 → fixed: 1.11.6

## Details

Developers using non-ASCII-compatible encodings in conjunction with the MySQL PDO driver of PHP may be vulnerable to SQL injection attacks. Developers using ASCII-compatible encodings like UTF8 or latin1 are not affected by this PHP issue, which is described in more detail here: http://bugs.php.net/bug.php?id=47802 The PHP Group included a feature in PHP 5.3.6+ that allows any character set information to be passed as part of the DSN in PDO to allow both the database as well as the C-level driver to be aware of which charset is in use which is of special importance when PDO's quoting mechanisms are utilized, which Zend Framework also relies on.

## Sources

- [GitHub Advisory GHSA-qf36-fx9f-232x](https://github.com/advisories/GHSA-qf36-fx9f-232x)
- [framework.zend.com](https://framework.zend.com/security/advisory/ZF2011-02)
- [github.com](https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2011-02.yaml)
- [bugs.php.net](http://bugs.php.net/bug.php?id=47802)

---
Source page: https://erroneo.us/security/ghsa/GHSA-qf36-fx9f-232x/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
