CVE-2019-6338: Drupal/drupal Drupal Core Third-party PEAR Archive_Tar Vulnerability
HIGHCVE-2019-6338 is a HIGH (CVSS 8.0) drupal core third-party pear archive_tar vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Drupal/drupal libraries in the Packagist ecosystem. The issue involves drupal core third-party pear archive_tar library is vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 7.62.0, 8.5.9, 8.6.6.
CVE-2019-6338 at a Glance
Security Impact
CVSS: 8.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-6338
To remediate this vulnerability, upgrade all affected Drupal/drupal 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 drupal/drupal to 7.62.0
Upgrade drupal/drupal to 8.5.9
Upgrade drupal/drupal to 8.6.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for drupal/drupal
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-6338, inspect your project dependencies for Drupal/drupal:
inspect dependencies for drupal/drupal
Analyze the terminal output to locate any version of Drupal/drupal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.62.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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Drupal/drupal, 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-6338 Affected Drupal/drupal Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
drupal/drupal
|
Packagist |
≥ 7.0.0
< 7.62.0
|
7.62.0
|
|
drupal/drupal
|
Packagist |
≥ 8.0.0
< 8.5.9
|
8.5.9
|
|
drupal/drupal
|
Packagist |
≥ 8.6.0
< 8.6.6
|
8.6.6
|
References
Frequently Asked Questions
What is CVE-2019-6338?
Which Drupal/drupal versions are affected?
What version fixes CVE-2019-6338?
Is drupal/drupal affected?
What is the CVSS score of CVE-2019-6338?
What CWE is associated with CVE-2019-6338?
How can I check Packagist dependencies for CVE-2019-6338?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6rmq-x2hv-vxpp",
"modified" : "2024-02-05T15:41:44Z",
"published" : "2019-12-02T18:11:25Z",
"aliases" : [ "CVE-2019-6338" ],
"summary" : "Drupal core third-party PEAR Archive_Tar library is vulnerable to Deserialization of Untrusted Data",
"details" : "In Drupal Core versions 7.x prior to 7.62, 8.6.x prior to 8.6.6 and 8.5.x prior to 8.5.9; Drupal core uses the third-party PEAR Archive_Tar library. This library has released a security update which impacts some Drupal configurations. Refer to CVE-2018-1000888 for details",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/drupal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.62.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/drupal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.5.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/drupal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.6.0"
}, {
"fixed" : "8.6.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-6338"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-6338.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2019/02/msg00032.html"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2019/dsa-4370"
}, {
"type" : "WEB",
"url" : "https://www.drupal.org/sa-core-2019-001"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/106706"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-12-02T00:34:49Z",
"nvd_published_at" : "2019-01-22T14:29:00Z"
}
}