CVE-2018-1000165: Lightsaml/lightsaml LightSAML Incorrect Access Control Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-vg4f-8v9q-5c3x
CVSS 7.5
CWE-732
Published
Advisory Summary

CVE-2018-1000165 is a HIGH (CVSS 7.5) lightsaml incorrect access control vulnerability vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Lightsaml/lightsaml libraries in the Packagist ecosystem. The issue involves lightsaml incorrect access control vulnerability. Remediation is available by upgrading affected packages to version 1.3.5.

CVE-2018-1000165 at a Glance

CVE Identifier CVE-2018-1000165
GHSA Identifier GHSA-vg4f-8v9q-5c3x
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Lightsaml/lightsaml
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-2018-1000165

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

lightsaml/lightsaml fixed: 1.3.5
Upgrade lightsaml/lightsaml to 1.3.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for lightsaml/lightsaml

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-1000165, inspect your project dependencies for Lightsaml/lightsaml:

inspect dependencies for lightsaml/lightsaml

Analyze the terminal output to locate any version of Lightsaml/lightsaml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.5), 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Lightsaml/lightsaml, 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

LightSAML version prior to 1.3.5 contains a Incorrect Access Control vulnerability in signature validation in readers in `src/LightSaml/Model/XmlDSig/` that can result in impersonation of any user from Identity Provider. This vulnerability appears to have been fixed in 1.3.5 and later.

CVE-2018-1000165 Affected Lightsaml/lightsaml Versions

1 component(s)
Fixed Versions:
1.3.5
Product / Package Ecosystem Affected Versions Fixed Version
lightsaml/lightsaml
Packagist
< 1.3.5
1.3.5

References

Frequently Asked Questions

What is CVE-2018-1000165?
CVE-2018-1000165 is a security vulnerability in Lightsaml/lightsaml involving LightSAML Incorrect Access Control vulnerability under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Lightsaml/lightsaml versions are affected?
Affected versions include releases prior to 1.3.5 across affected packages: lightsaml/lightsaml.
What version fixes CVE-2018-1000165?
Upgrading to 1.3.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lightsaml/lightsaml affected?
Yes, lightsaml/lightsaml is affected in releases prior to 1.3.5. Upgrade your dependency to 1.3.5 or later.
What is the CVSS score of CVE-2018-1000165?
CVE-2018-1000165 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2018-1000165?
CVE-2018-1000165 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Packagist dependencies for CVE-2018-1000165?
Run the dependency tree command: 'inspect dependencies for lightsaml/lightsaml'. 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-vg4f-8v9q-5c3x",
  "modified" : "2024-04-23T17:25:35Z",
  "published" : "2022-05-13T01:48:33Z",
  "aliases" : [ "CVE-2018-1000165" ],
  "summary" : "LightSAML Incorrect Access Control vulnerability",
  "details" : "LightSAML version prior to 1.3.5 contains a Incorrect Access Control vulnerability in signature validation in readers in `src/LightSaml/Model/XmlDSig/` that can result in impersonation of any user from Identity Provider. This vulnerability appears to have been fixed in 1.3.5 and later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "lightsaml/lightsaml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000165"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lightSAML/lightSAML/commit/47cef07bb09779df15620799f3763d1b8d32307a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lightSAML/lightSAML"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lightSAML/lightSAML/releases/tag/1.3.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-23T17:25:35Z",
    "nvd_published_at" : "2018-04-18T19:29:00Z"
  }
}