CVE-2019-3465: Robrichards/xmlseclibs Signature Validation Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-pqm6-cgwr-x6pf
CVSS 8.8
CWE-347
Published
Advisory Summary

CVE-2019-3465 is a HIGH (CVSS 8.8) signature validation bypass vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Robrichards/xmlseclibs libraries in the Packagist ecosystem. The issue involves signature validation bypass in xmlseclibs. Remediation is available by upgrading affected packages to version 3.0.4, 2.1.1.

CVE-2019-3465 at a Glance

CVE Identifier CVE-2019-3465
GHSA Identifier GHSA-pqm6-cgwr-x6pf
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Robrichards/xmlseclibs
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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

How to Fix CVE-2019-3465

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

robrichards/xmlseclibs fixed: 3.0.4
Upgrade robrichards/xmlseclibs to 3.0.4
robrichards/xmlseclibs fixed: 2.1.1
Upgrade robrichards/xmlseclibs to 2.1.1
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 robrichards/xmlseclibs

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-3465, inspect your project dependencies for Robrichards/xmlseclibs:

inspect dependencies for robrichards/xmlseclibs

Analyze the terminal output to locate any version of Robrichards/xmlseclibs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.4), 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Robrichards/xmlseclibs, 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

Rob Richards XmlSecLibs, all versions prior to v3.0.3, as used for example by SimpleSAMLphp, performed incorrect validation of cryptographic signatures in XML messages, allowing an authenticated attacker to impersonate others or elevate privileges by creating a crafted XML message.

CVE-2019-3465 Affected Robrichards/xmlseclibs Versions

2 component(s)
Fixed Versions:
3.0.42.1.1
Product / Package Ecosystem Affected Versions Fixed Version
robrichards/xmlseclibs
Packagist
≥ 3.0.0
< 3.0.4
3.0.4
robrichards/xmlseclibs
Packagist
≥ 1.0.0
< 2.1.1
2.1.1

References

NVD — CVE-2019-3465 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-3465
Security Fix Commit FIX COMMIT
https://github.com/robrichards/xmlseclibs/commit/0a53d3c3aa87564910cae4ed01416441d3ae0db5
Robrichards/xmlseclibs Security Information SECURITY
https://www.tenable.com/security/tns-2019-09
Robrichards/xmlseclibs Security Information SECURITY
https://www.debian.org/security/2019/dsa-4560
Robrichards/xmlseclibs Security Information SECURITY
https://simplesamlphp.org/security/201911-01
seclists.org/bugtraq/2019/nov/8 WEB
https://seclists.org/bugtraq/2019/Nov/8
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBSSRV5Q7JFCYO46A3EN624UZ4KXFQ2M
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OCSR3V6LNWJAD37VQB6M2K7P4RQSCVFG
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MAWOVYLZKYDCQBLQEJCFAAD3KQTBPHXE
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HBE2SJSXG7J4XYLJ2H6HC2VPPOG2OMUN
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ESKJTWLE7QZBQ3EKMYXKMBQG3JDEJWM6
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BNFMY5RRLU63P25HEBVDO5KAVI7TX7JV
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BBKVDUZ7G5ZOUO4BFJWLNJ6VOKBQJX5U
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AB34ILMJ67CUROBOR6YPKB46VHXLOAJ4
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7KID7C4AZPYYIZQIPSLANP4R2RQR6YK3
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2019/11/msg00003.html
Robrichards/xmlseclibs Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/robrichards/xmlseclibs/CVE-2019-3465.yaml

Frequently Asked Questions

What is CVE-2019-3465?
CVE-2019-3465 is a security vulnerability in Robrichards/xmlseclibs involving Signature validation bypass in XmlSecLibs under CWE-347: Improper Verification of Cryptographic Signature.
Which Robrichards/xmlseclibs versions are affected?
Affected versions include releases prior to 3.0.4, 2.1.1 across affected packages: robrichards/xmlseclibs.
What version fixes CVE-2019-3465?
Upgrading to 3.0.4, 2.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is robrichards/xmlseclibs affected?
Yes, robrichards/xmlseclibs is affected in releases prior to 3.0.4, 2.1.1. Upgrade your dependency to 3.0.4, 2.1.1 or later.
What is the CVSS score of CVE-2019-3465?
CVE-2019-3465 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-3465?
CVE-2019-3465 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Packagist dependencies for CVE-2019-3465?
Run the dependency tree command: 'inspect dependencies for robrichards/xmlseclibs'. 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-pqm6-cgwr-x6pf",
  "modified" : "2021-08-18T22:14:37Z",
  "published" : "2019-11-08T20:06:46Z",
  "aliases" : [ "CVE-2019-3465" ],
  "summary" : "Signature validation bypass in XmlSecLibs",
  "details" : "Rob Richards XmlSecLibs, all versions prior to v3.0.3, as used for example by SimpleSAMLphp, performed incorrect validation of cryptographic signatures in XML messages, allowing an authenticated attacker to impersonate others or elevate privileges by creating a crafted XML message.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "robrichards/xmlseclibs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "robrichards/xmlseclibs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "2.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3465"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/robrichards/xmlseclibs/commit/0a53d3c3aa87564910cae4ed01416441d3ae0db5"
  }, {
    "type" : "WEB",
    "url" : "https://www.tenable.com/security/tns-2019-09"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2019/dsa-4560"
  }, {
    "type" : "WEB",
    "url" : "https://simplesamlphp.org/security/201911-01"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/Nov/8"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBSSRV5Q7JFCYO46A3EN624UZ4KXFQ2M"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OCSR3V6LNWJAD37VQB6M2K7P4RQSCVFG"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MAWOVYLZKYDCQBLQEJCFAAD3KQTBPHXE"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HBE2SJSXG7J4XYLJ2H6HC2VPPOG2OMUN"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ESKJTWLE7QZBQ3EKMYXKMBQG3JDEJWM6"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BNFMY5RRLU63P25HEBVDO5KAVI7TX7JV"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BBKVDUZ7G5ZOUO4BFJWLNJ6VOKBQJX5U"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AB34ILMJ67CUROBOR6YPKB46VHXLOAJ4"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7KID7C4AZPYYIZQIPSLANP4R2RQR6YK3"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/11/msg00003.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/robrichards/xmlseclibs/CVE-2019-3465.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-11-08T17:45:46Z",
    "nvd_published_at" : null
  }
}