SQL Injection Affecting php-ZendFramework-Db-Adapter-Pdo-Pgsql package, versions <0:1.12.20-1.12.amzn1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
4.12% (91st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN201803-PHPZENDFRAMEWORKDBADAPTERPDOPGSQL-1703768
  • published27 Sept 2021
  • disclosed17 Feb 2017

Introduced: 17 Feb 2017

CVE-2016-4861  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 php-ZendFramework-Db-Adapter-Pdo-Pgsql to version 0:1.12.20-1.12.amzn1 or higher.
This issue was patched in ALAS-2016-767.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-ZendFramework-Db-Adapter-Pdo-Pgsql package and not the php-ZendFramework-Db-Adapter-Pdo-Pgsql package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

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.