Alpine: multiple py3-saml2 packages: security update to 6.4.1-r0 (deprecated)

medium Tenable Cloud Security Plugin ID 400287

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- 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.
(CVE-2021-21238)

- PySAML2 is a pure python implementation of SAML Version 2 Standard. PySAML2 before 6.5.0 has an improper
verification of cryptographic signature vulnerability. Users of pysaml2 that use the default
CryptoBackendXmlSec1 backend and need to verify signed SAML documents are impacted. PySAML2 does not
ensure that a signed SAML document is correctly signed. The default CryptoBackendXmlSec1 backend is using
the xmlsec1 binary to verify the signature of signed SAML documents, but by default xmlsec1 accepts any
type of key found within the given document. xmlsec1 needs to be configured explicitly to only use only
_x509 certificates_ for the verification process of the SAML document signature. This is fixed in PySAML2
6.5.0. (CVE-2021-21239)

See Also

https://git.alpinelinux.org/aports/commit/?id=011386f4b8153535ac216e7d4227b214c878260f

https://git.alpinelinux.org/aports/commit/?id=d6fed080c84807f7122383251b024fcf3d0b1efc

Plugin Details

Severity: Medium

ID: 400287

Version: Revision 1.23

Type: Local

Published: 8/16/2023

Updated: 7/2/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2021-21239

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/23/2021

Vulnerability Publication Date: 1/20/2021

Reference Information

CVE: CVE-2021-21238, CVE-2021-21239