CVE-2019-3895: Octavia Openstack Octavia Access Control Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-jjgh-m322-fjx6
CVSS 5.5
CWE-284
Published
Advisory Summary

CVE-2019-3895 is a MODERATE (CVSS 5.5) openstack octavia access control vulnerability vulnerability (CWE-284: Improper Access Control) affecting Octavia libraries in the PyPI ecosystem. The issue involves openstack octavia access control vulnerability. Remediation is available by upgrading affected packages to version 0.9.0.

CVE-2019-3895 at a Glance

CVE Identifier CVE-2019-3895
GHSA Identifier GHSA-jjgh-m322-fjx6
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-284: Improper Access Control
Affected Product Octavia
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:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2019-3895

To remediate this vulnerability, upgrade all affected Octavia dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

octavia fixed: 0.9.0
pip install octavia>=0.9.0
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 octavia

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2019-3895, inspect your installed packages using pip:

pip show octavia

Analyze the terminal output to locate any version of Octavia in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.0), your application is affected.

Note: The pip show octavia command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Octavia, 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

### Description An access-control flaw was found in the Octavia service when the cloud platform was deployed using Red Hat OpenStack Platform Director. An attacker could cause new amphorae to run based on any arbitrary image. This meant that a remote attacker could upload a new amphorae image and, if requested to spawn new amphorae, Octavia would then pick up the compromised image. ### Mitigation To prevent this vulnerability: 1. Update Octavia's configuration setting (octavia.conf) to `amp_image_owner_id = $UUID_OF_SERVICE_PROJECT` on all Octavia nodes. 2. Enable the new configuration by restarting both `octavia_worker` and `octavia_health_manager`.

CVE-2019-3895 Affected Octavia Versions

1 component(s)
Fixed Versions:
0.9.0
Product / Package Ecosystem Affected Versions Fixed Version
octavia
PyPI
< 0.9.0
0.9.0

References

Frequently Asked Questions

What is CVE-2019-3895?
CVE-2019-3895 is a security vulnerability in Octavia involving Openstack Octavia Access Control Vulnerability under CWE-284: Improper Access Control.
Which Octavia versions are affected?
Affected versions include releases prior to 0.9.0 across affected packages: octavia.
What version fixes CVE-2019-3895?
Upgrading to 0.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is octavia affected?
Yes, octavia is affected in releases prior to 0.9.0. Upgrade your dependency to 0.9.0 or later.
What is the CVSS score of CVE-2019-3895?
CVE-2019-3895 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2019-3895?
CVE-2019-3895 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2019-3895?
Run the dependency tree command: 'pip show octavia'. 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-jjgh-m322-fjx6",
  "modified" : "2024-10-08T12:49:03Z",
  "published" : "2022-05-24T16:47:03Z",
  "aliases" : [ "CVE-2019-3895" ],
  "summary" : "Openstack Octavia Access Control Vulnerability",
  "details" : "### Description\nAn access-control flaw was found in the Octavia service when the cloud platform was deployed using Red Hat OpenStack Platform Director. An attacker could cause new amphorae to run based on any arbitrary image. This meant that a remote attacker could upload a new amphorae image and, if requested to spawn new amphorae, Octavia would then pick up the compromised image.\n\n### Mitigation\nTo prevent this vulnerability:\n1. Update Octavia's configuration setting (octavia.conf) to `amp_image_owner_id = $UUID_OF_SERVICE_PROJECT` on all Octavia nodes.\n2. Enable the new configuration by restarting both `octavia_worker` and `octavia_health_manager`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "octavia"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3895"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/octavia/commit/d7d062a47ab54a540d81f13a0e5f3085ebfaa0d2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/tripleo-common/commit/e7c5eab712e0f70ecbc6d225d4766e0fe0f3f884"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1683"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1742"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/octavia/+bug/1620629"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/tripleo/+bug/1830607"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3895"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/octavia"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/octavia/blob/08570831754d9671fbd1756d668f55f191e47ca4/octavia/compute/drivers/nova_driver.py#L35"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/octavia/PYSEC-2019-194.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://opendev.org/openstack/octavia/commit/d7d062a47ab54a540d81f13a0e5f3085ebfaa0d2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-23T20:36:33Z",
    "nvd_published_at" : "2019-06-03T19:29:00Z"
  }
}