OS Command Injection Affecting php55-pgsql package, versions <0:5.5.26-1.103.amzn1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
6% (94th 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-PHP55PGSQL-1687758
  • published27 Sept 2021
  • disclosed16 May 2016

Introduced: 16 May 2016

CVE-2015-4642  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 php55-pgsql to version 0:5.5.26-1.103.amzn1 or higher.
This issue was patched in ALAS-2015-562.

NVD Description

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

The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.