ubuntu-cve-2021-21238
Vulnerability from osv_ubuntu
Published
2021-01-21 15:15
Modified
2025-10-24 04:50
Summary
Details
PySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an improper verification of cryptographic signature vulnerability. All users of pysaml2 that need to validate signed SAML documents are impacted. The vulnerability is a variant of XML Signature wrapping because it did not validate the SAML document against an XML schema. This allowed invalid XML documents to be processed and such a document can trick pysaml2 with a wrapped signature. This is fixed in PySAML2 6.5.0.
Severity
6.5 (Medium)
6.5 (Medium)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pysaml2",
"binary_version": "3.0.0-3ubuntu1.16.04.4+esm1"
},
{
"binary_name": "python3-pysaml2",
"binary_version": "3.0.0-3ubuntu1.16.04.4+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "python-pysaml2",
"purl": "pkg:deb/ubuntu/python-pysaml2@3.0.0-3ubuntu1.16.04.4+esm1?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.0-0ubuntu2",
"3.0.0-3ubuntu1",
"3.0.0-3ubuntu1.16.04.1",
"3.0.0-3ubuntu1.16.04.3",
"3.0.0-3ubuntu1.16.04.4",
"3.0.0-3ubuntu1.16.04.4+esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pysaml2",
"binary_version": "4.0.2-0ubuntu3.2"
},
{
"binary_name": "python3-pysaml2",
"binary_version": "4.0.2-0ubuntu3.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "python-pysaml2",
"purl": "pkg:deb/ubuntu/python-pysaml2@4.0.2-0ubuntu3.2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.0-3ubuntu2",
"4.0.2-0ubuntu2",
"4.0.2-0ubuntu3",
"4.0.2-0ubuntu3.1",
"4.0.2-0ubuntu3.2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pysaml2",
"binary_version": "4.9.0-0ubuntu3.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "python-pysaml2",
"purl": "pkg:deb/ubuntu/python-pysaml2@4.9.0-0ubuntu3.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.5.0+dfsg1-0ubuntu2",
"4.9.0-0ubuntu1",
"4.9.0-0ubuntu2",
"4.9.0-0ubuntu3",
"4.9.0-0ubuntu3.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pysaml2",
"binary_version": "7.1.0-0ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "python-pysaml2",
"purl": "pkg:deb/ubuntu/python-pysaml2@7.1.0-0ubuntu2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"6.1.0-0ubuntu2",
"7.1.0-0ubuntu2"
]
}
],
"aliases": [],
"details": "PySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an improper verification of cryptographic signature vulnerability. All users of pysaml2 that need to validate signed SAML documents are impacted. The vulnerability is a variant of XML Signature wrapping because it did not validate the SAML document against an XML schema. This allowed invalid XML documents to be processed and such a document can trick pysaml2 with a wrapped signature. This is fixed in PySAML2 6.5.0.",
"id": "UBUNTU-CVE-2021-21238",
"modified": "2025-10-24T04:50:06Z",
"published": "2021-01-21T15:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2021-21238"
},
{
"type": "REPORT",
"url": "https://github.com/IdentityPython/pysaml2/security/advisories/GHSA-f4g9-h89h-jgv9"
},
{
"type": "REPORT",
"url": "https://github.com/IdentityPython/pysaml2/releases/tag/v6.5.0"
},
{
"type": "REPORT",
"url": "https://pypi.org/project/pysaml2"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2021-21238"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "low",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-21238"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…