CVE-2015-3156: Trove Openstack DBaaS (Trove) Improper Link Vulnerability
MODERATECVE-2015-3156 is a MODERATE (CVSS 5.5) openstack dbaas (trove) improper link vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Trove libraries in the PyPI ecosystem. The issue involves openstack dbaas (trove) improper link resolution before file access. Remediation is available by upgrading affected packages to version 4.0.0a0.
CVE-2015-3156 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2015-3156
To remediate this vulnerability, upgrade all affected Trove dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install trove>=4.0.0a0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show trove
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2015-3156, inspect your installed packages using pip:
pip show trove
Analyze the terminal output to locate any version of Trove in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0a0), your application is affected.
Note: The pip show trove command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Trove, 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-2015-3156 Affected Trove Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
trove
|
PyPI |
< 4.0.0a0
|
4.0.0a0
|
References
Frequently Asked Questions
What is CVE-2015-3156?
Which Trove versions are affected?
What version fixes CVE-2015-3156?
Is trove affected?
What is the CVSS score of CVE-2015-3156?
What CWE is associated with CVE-2015-3156?
How can I check PyPI dependencies for CVE-2015-3156?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-98c8-36p9-gw66",
"modified" : "2024-05-14T21:19:05Z",
"published" : "2022-05-17T01:57:31Z",
"aliases" : [ "CVE-2015-3156" ],
"summary" : "Openstack DBaaS (Trove) Improper Link Resolution Before File Access ",
"details" : "The `_write_config` function in `trove/guestagent/datastore/experimental/mongodb/service.py`, `reset_configuration` function in `trove/guestagent/datastore/experimental/postgresql/service/config.py`, `write_config` function in `trove/guestagent/datastore/experimental/redis/service.py`, `_write_mycnf` function in `trove/guestagent/datastore/mysql/service.py`, `InnoBackupEx::_run_prepare` function in `trove/guestagent/strategies/restore/mysql_impl.py`, `InnoBackupEx::cmd` function in `trove/guestagent/strategies/backup/mysql_impl.py`,`MySQLDump::cmd` in `trove/guestagent/strategies/backup/mysql_impl.py`, `InnoBackupExIncremental::cmd` function in `trove/guestagent/strategies/backup/mysql_impl.py`, `_get_actual_db_status` function in `trove/guestagent/datastore/experimental/cassandra/system.py` and `trove/guestagent/datastore/experimental/cassandra/service.py`, and multiple class CbBackup methods in `trove/guestagent/strategies/backup/experimental/couchbase_impl.py` in Openstack DBaaS (aka Trove) as packaged in Openstack before 2015.1.0 (aka Kilo) allows local users to write to configuration files via a symlink attack on a temporary file.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "trove"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.0a0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-3156"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/commit/61774984aa2bacfe89867fc39a402a6a4cfb8f33"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/trove/+bug/1398195"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1216073"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/trove"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/experimental/cassandra/service.py#L230"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/experimental/mongodb/service.py#L176"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/experimental/redis/service.py#L236"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/mysql/service.py#L790"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/experimental/couchbase_impl.py#L30"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/mysql_impl.py#L110"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/mysql_impl.py#L36"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/mysql_impl.py#L55"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/restore/mysql_impl.py#L194"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-14T21:19:05Z",
"nvd_published_at" : "2017-08-11T21:29:00Z"
}
}