Arbitrary Code Injection Affecting php-pgsql package, versions <0:5.3.8-3.19.amzn1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
5.01% (92nd 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-PHPPGSQL-1661021
  • published27 Sept 2021
  • disclosed3 Nov 2011

Introduced: 3 Nov 2011

CVE-2011-3379  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 php-pgsql to version 0:5.3.8-3.19.amzn1 or higher.
This issue was patched in ALAS-2011-7.

NVD Description

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

The is_a function in PHP 5.3.7 and 5.3.8 triggers a call to the __autoload function, which makes it easier for remote attackers to execute arbitrary code by providing a crafted URL and leveraging potentially unsafe behavior in certain PEAR packages and custom autoloaders.

CVSS Base Scores

version 3.1