CVE-2019-20455: Globalpayments/php sdk Improper Certificate Validation Vulnerability
MODERATECVE-2019-20455 is a MODERATE (CVSS 5.9) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Globalpayments/php sdk libraries in the Packagist ecosystem. The issue involves improper certificate validation in heartland & global payments php sdk. Remediation is available by upgrading affected packages to version 2.0.0.
CVE-2019-20455 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2019-20455
To remediate this vulnerability, upgrade all affected Globalpayments/php sdk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade globalpayments/php-sdk to 2.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for globalpayments/php-sdk
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-20455, inspect your project dependencies for Globalpayments/php sdk:
inspect dependencies for globalpayments/php-sdk
Analyze the terminal output to locate any version of Globalpayments/php sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Globalpayments/php sdk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-20455 Affected Globalpayments/php sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
globalpayments/php-sdk
|
Packagist |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is CVE-2019-20455?
Which Globalpayments/php sdk versions are affected?
What version fixes CVE-2019-20455?
Is globalpayments/php-sdk affected?
What is the CVSS score of CVE-2019-20455?
What CWE is associated with CVE-2019-20455?
How can I check Packagist dependencies for CVE-2019-20455?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pm77-c4q7-3fwj",
"modified" : "2021-10-08T22:58:55Z",
"published" : "2021-10-12T16:31:12Z",
"aliases" : [ "CVE-2019-20455" ],
"summary" : "Improper Certificate Validation in Heartland & Global Payments PHP SDK",
"details" : "Gateways/Gateway.php in Heartland & Global Payments PHP SDK before 2.0.0 does not enforce SSL certificate validations.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "globalpayments/php-sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-20455"
}, {
"type" : "WEB",
"url" : "https://github.com/globalpayments/php-sdk/pull/8"
}, {
"type" : "WEB",
"url" : "https://github.com/globalpayments/php-sdk/pull/8/commits/c86e18f28c5eba0d6ede7d557756d978ea83d3c9"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/globalpayments/php-sdk"
}, {
"type" : "WEB",
"url" : "https://github.com/globalpayments/php-sdk/compare/1.3.3...2.0.0"
}, {
"type" : "WEB",
"url" : "https://github.com/globalpayments/php-sdk/releases/tag/2.0.0"
}, {
"type" : "WEB",
"url" : "https://winterdragon.ca/global-payments-vulnerability"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-08T22:58:55Z",
"nvd_published_at" : "2020-02-14T16:15:00Z"
}
}