CVE-2011-4625: Simplesamlphp/simplesamlphp SimpleSAMLphp Incorrectly Handles XML Encryption Vulnerability

HIGH
Advisory Identifier: GHSA-5fj7-f8x3-q2mc
CVSS 7.5
CWE-755
Published
Advisory Summary

CVE-2011-4625 is a HIGH (CVSS 7.5) simplesamlphp incorrectly handles xml encryption vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Simplesamlphp/simplesamlphp libraries in the Packagist ecosystem. The issue involves simplesamlphp incorrectly handles xml encryption. Remediation is available by upgrading affected packages to version 1.8.1.

CVE-2011-4625 at a Glance

CVE Identifier CVE-2011-4625
GHSA Identifier GHSA-5fj7-f8x3-q2mc
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product Simplesamlphp/simplesamlphp
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.1/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-2011-4625

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

simplesamlphp/simplesamlphp fixed: 1.8.1
Upgrade simplesamlphp/simplesamlphp to 1.8.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 simplesamlphp/simplesamlphp

How to Check if You Are Affected

To determine whether your application is affected by CVE-2011-4625, inspect your project dependencies for Simplesamlphp/simplesamlphp:

inspect dependencies for simplesamlphp/simplesamlphp

Analyze the terminal output to locate any version of Simplesamlphp/simplesamlphp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.1), 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-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In Simplesamlphp/simplesamlphp, 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

simplesamlphp before 1.6.3 (squeeze) and before 1.8.2 (sid) incorrectly handles XML encryption which could allow remote attackers to decrypt or forge messages.

CVE-2011-4625 Affected Simplesamlphp/simplesamlphp Versions

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

References

Frequently Asked Questions

What is CVE-2011-4625?
CVE-2011-4625 is a security vulnerability in Simplesamlphp/simplesamlphp involving simpleSAMLphp incorrectly handles XML encryption under CWE-755: Improper Handling of Exceptional Conditions.
Which Simplesamlphp/simplesamlphp versions are affected?
Affected versions include releases prior to 1.8.1 across affected packages: simplesamlphp/simplesamlphp.
What version fixes CVE-2011-4625?
Upgrading to 1.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is simplesamlphp/simplesamlphp affected?
Yes, simplesamlphp/simplesamlphp is affected in releases prior to 1.8.1. Upgrade your dependency to 1.8.1 or later.
What is the CVSS score of CVE-2011-4625?
CVE-2011-4625 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2011-4625?
CVE-2011-4625 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check Packagist dependencies for CVE-2011-4625?
Run the dependency tree command: 'inspect dependencies for simplesamlphp/simplesamlphp'. 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-5fj7-f8x3-q2mc",
  "modified" : "2024-01-12T23:10:19Z",
  "published" : "2022-04-22T00:24:09Z",
  "aliases" : [ "CVE-2011-4625" ],
  "summary" : "simpleSAMLphp incorrectly handles XML encryption",
  "details" : "simplesamlphp before 1.6.3 (squeeze) and before 1.8.2 (sid) incorrectly handles XML encryption which could allow remote attackers to decrypt or forge messages.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "simplesamlphp/simplesamlphp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4625"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/simplesamlphp/simplesamlphp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simplesamlphp/simplesamlphp/blob/b3059c51a915910c6631fb2ee597c0fb6ad9162b/docs/simplesamlphp-changelog-1.x.md?plain=1#L1624"
  }, {
    "type" : "WEB",
    "url" : "https://secure1.securityspace.com/smysecure/catid.html?in=DSA%202330-1"
  }, {
    "type" : "WEB",
    "url" : "https://security-tracker.debian.org/tracker/CVE-2011-4625"
  }, {
    "type" : "WEB",
    "url" : "https://www.mageni.net/vulnerability/debian-security-advisory-dsa-2330-1-simplesamlphp-70545"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-755" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T23:10:19Z",
    "nvd_published_at" : "2019-11-06T15:15:00Z"
  }
}