CVE-2015-3156: Trove Openstack DBaaS (Trove) Improper Link Vulnerability

MODERATE
Advisory Identifier: GHSA-98c8-36p9-gw66
CVSS 5.5
CWE-59
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2015-3156
GHSA Identifier GHSA-98c8-36p9-gw66
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Trove
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

trove fixed: 4.0.0a0
pip install trove>=4.0.0a0
Verify Direct and Transitive Dependencies

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

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.

CVE-2015-3156 Affected Trove Versions

1 component(s)
Fixed Versions:
4.0.0a0
Product / Package Ecosystem Affected Versions Fixed Version
trove
PyPI
< 4.0.0a0
4.0.0a0

References

NVD — CVE-2015-3156 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-3156
Security Fix Commit FIX COMMIT
https://github.com/openstack/trove/commit/61774984aa2bacfe89867fc39a402a6a4cfb8f33
bugs.launchpad.net/trove/+bug/1398195 WEB
https://bugs.launchpad.net/trove/+bug/1398195
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1216073
Trove Source Repository REPOSITORY
https://github.com/openstack/trove
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/experimental/cassandra/service.py#L230
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/experimental/mongodb/service.py#L176
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/experimental/redis/service.py#L236
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/datastore/mysql/service.py#L790
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/experimental/couchbase_impl.py#L30
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/mysql_impl.py#L110
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/mysql_impl.py#L36
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/backup/mysql_impl.py#L55
Trove Source Repository REPOSITORY
https://github.com/openstack/trove/blob/master/trove/guestagent/strategies/restore/mysql_impl.py#L194

Frequently Asked Questions

What is CVE-2015-3156?
CVE-2015-3156 is a security vulnerability in Trove involving Openstack DBaaS (Trove) Improper Link Resolution Before File Access under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Trove versions are affected?
Affected versions include releases prior to 4.0.0a0 across affected packages: trove.
What version fixes CVE-2015-3156?
Upgrading to 4.0.0a0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is trove affected?
Yes, trove is affected in releases prior to 4.0.0a0. Upgrade your dependency to 4.0.0a0 or later.
What is the CVSS score of CVE-2015-3156?
CVE-2015-3156 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2015-3156?
CVE-2015-3156 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (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.).
How can I check PyPI dependencies for CVE-2015-3156?
Run the dependency tree command: 'pip show trove'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}