Vulnerabilities

15 via 15 paths

Dependencies

10

Source

GitHub

Commit

2cf4150b

Find, fix and prevent vulnerabilities in your code.

Severity
  • 2
  • 10
  • 3
Status
  • 15
  • 0
  • 0

high severity

Observable Timing Discrepancy

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@42.0.0.

Overview

Affected versions of this package are vulnerable to Observable Timing Discrepancy. This issue may allow a remote attacker to decrypt captured messages in TLS servers that use RSA key exchanges, which may lead to exposure of confidential or sensitive data (Marvin).

Note:

This vulnerability exists due to an incomplete fix for CVE-2020-25659.

Remediation

Upgrade cryptography to version 42.0.0 or higher.

References

high severity

Improper Certificate Validation

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.2.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation in the SSH certificate decoding process. An attacker can cause the application to accept unauthorized SSH certificates generated by ssh-keygen, or cause certificates generated by SSHCertificateBuilder to fail when read by ssh-keygen.

Note: This is only exploitable if the attacker controls the SSH certificate generation process or can introduce crafted SSH certificates into the system.

Remediation

Upgrade cryptography to version 41.0.2 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.4.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS). The POLY1305 MAC (message authentication code) implementation might corrupt the internal state of applications on the Windows 64 platform when running on newer X86_64 processors supporting AVX512-IFMA instructions. If an attacker can influence whether the POLY1305 MAC algorithm is used in an application, the application state might be corrupted with various application dependent consequences, the most likely of which being denial of service. The maintainers are currently not aware of any concrete application that would be affected by this issue.

NOTES:

This vulnerability is only exploitable on Windows.

The FIPS provider is not affected by this issue.

Workaround

Disable AVX512-IFMA instructions by setting the environment variable OPENSSL_ia32cap: OPENSSL_ia32cap=:~0x200000

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.4 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when processing specially crafted ASN.1 objects identifiers. Applications that use OBJ_obj2txt() directly, or use any of the OpenSSL subsystems OCSP, PKCS7/SMIME, CMS, CMP/CRMF or TS with no message size limit may experience notable to very long delays when processing those messages, which may lead to a exploitation of this vulnerability.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.0 or higher.

References

medium severity

NULL Pointer Dereference

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.6.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference when loading PKCS7 certificates. An attacker can cause a Denial of Service (DoS) by attempting to deserialize a PKCS7 blob/certificate.

Note:

This is only exploitable if the load_pem_pkcs7_certificates or load_der_pkcs7_certificates functions are called.

PoC

from cryptography.hazmat.primitives.serialization.pkcs7 import load_der_pkcs7_certificates, load_pem_pkcs7_certificates

pem_p7 = b"""
-----BEGIN PKCS7-----
MAsGCSqGSIb3DQEHAg==
-----END PKCS7-----
"""

der_p7 = b"\x30\x0B\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x02"

load_pem_pkcs7_certificates(pem_p7)
load_der_pkcs7_certificates(der_p7)

Remediation

Upgrade cryptography to version 41.0.6 or higher.

References

medium severity

NULL Pointer Dereference

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@42.0.4.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference in the pkcs12.serialize_key_and_certificates function. An attacker can crash the Python process.

Note: This is only exploitable if the vulnerable function is called with both:

  1. A certificate whose public key does not match the provided private key.

  2. An encryption_algorithm with hmac_hash set via PrivateFormat.PKCS12.encryption_builder().hmac_hash(...).

Remediation

Upgrade cryptography to version 42.0.4 or higher.

References

medium severity

Resource Exhaustion

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@42.0.2.

Overview

Affected versions of this package are vulnerable to Resource Exhaustion via the EVP_PKEY_public_check function. When the function is called in RSA public keys, a computation is done to confirm that the RSA modulus, n, is composite. For valid RSA keys, n is a product of two or more large primes and this computation completes quickly. However, if n is a large prime, this computation takes a long time. An attacker can cause a denial of service by supplying a specially crafted RSA key that triggers extensive computation.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 42.0.2 or higher.

References

medium severity

Use of a Broken or Risky Cryptographic Algorithm

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@42.0.2.

Overview

Affected versions of this package are vulnerable to Use of a Broken or Risky Cryptographic Algorithm due to an issue in the POLY1305 MAC implementation on PowerPC CPUs. An attacker can corrupt the application state and cause incorrect calculations or potential denial of service by influencing the use of the POLY1305 MAC algorithm.

Note:

This is only exploitable if the attacker has the ability to affect the algorithm's usage and the application relies on non-volatile XMM registers.

Remediation

Upgrade cryptography to version 42.0.2 or higher.

References

medium severity

NULL Pointer Dereference

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@42.0.2.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference when processing a maliciously formatted PKCS12 file. The vulnerability exists due to improper handling of optional ContentInfo fields, which can be set to null. An attacker can cause a denial of service by sending crafted input that leads to applications loading files in PKCS12 format from untrusted sources to terminate abruptly.

Remediation

Upgrade cryptography to version 42.0.2 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.3.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) in the DH_check(), DH_check_ex() and EVP_PKEY_param_check() functions, which are used to check a DH key or DH parameters.

When the key or parameters that are being checked contain an excessively large modulus value (the p parameter) this may cause slowness in processing. Some checks use the supplied modulus value even if it has already been found to be too large.

The OpenSSL dhparam and pkeyparam command line applications are also vulnerable, when using the -check option.

NOTE: The OpenSSL SSL/TLS implementation is not affected by this issue.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.3 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@42.0.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when the DH_generate_key(), DH_check_pub_key(), DH_check_pub_key_ex(), EVP_PKEY_public_check(), and EVP_PKEY_generate() functions are used. An attacker can cause long delays and potentially a Denial of Service by supplying excessively long X9.42 DH keys or parameters obtained from an untrusted source.

Note:

This is only exploitable if the application uses these functions to generate or check an X9.42 DH key or parameters. Also, the OpenSSL pkey command line application, when using the -pubcheck option, as well as the OpenSSL genpkey command line application, are vulnerable to this issue.

Remediation

Upgrade cryptography to version 42.0.0 or higher.

References

medium severity

Missing Cryptographic Step

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.5.

Overview

Affected versions of this package are vulnerable to Missing Cryptographic Step when the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2() functions are used. An attacker can cause truncation or overreading of key and initialization vector (IV) lengths by altering the "keylen" or "ivlen" parameters within the OSSL_PARAM array after the key and IV have been established. This can lead to potential truncation or overruns during the initialization of some symmetric ciphers, such as RC2, RC4, RC5, CCM, GCM, and OCB. A truncation in the IV can result in non-uniqueness, which could result in loss of confidentiality for some cipher modes.

Both truncations and overruns of the key and the IV will produce incorrect results and could, in some cases, trigger a memory exception.

Remediation

Upgrade cryptography to version 41.0.5 or higher.

References

low severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.3.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when the DH_check(), DH_check_ex(), or EVP_PKEY_param_check() functions are used to check a DH key or DH parameters. An attacker can cause long delays and potentially a Denial of Service (DoS) by providing excessively long DH keys or parameters from an untrusted source. This is only exploitable if the application calls these functions and supplies a key or parameters obtained from an untrusted source.

Note: The OpenSSL SSL/TLS implementation and the OpenSSL 3.0 and 3.1 FIPS providers are not affected by this issue.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.3 or higher.

References

low severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2
    Remediation: Upgrade to cryptography@41.0.3.

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in the AES-SIV cipher implementation in ciphers/cipher_aes_siv.c, which ignores empty associated data entries, making them unauthenticated.

Applications that use the AES-SIV algorithm and want to authenticate empty data entries as associated data can be misled by removing, adding or reordering such empty entries as these are ignored by the OpenSSL implementation.

NOTE: This issue does not affect non-empty associated data authentication and the maintainers are currently unaware of any applications that use empty associated data entries.

Remediation

Upgrade cryptography to version 41.0.3 or higher.

References

low severity
new

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: cryptography
  • Introduced through: cryptography@40.0.2

Detailed paths

  • Introduced through: maqp/tfc@maqp/tfc#2cf4150b7f41820b1c5d63b0f423fbf758e900e3 cryptography@40.0.2

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') due to the session cache entering an incorrect state and failing to flush properly as it fills, leading to uncontrolled memory consumption. This condition is triggered under certain server configurations when processing TLSv1.3 sessions. Specifically, this occurs if the non-default SSL_OP_NO_TICKET option is enabled, but not if early_data support is configured along with the default anti-replay protection. A malicious client could deliberately create this scenario to force a service disruption. It may also occur accidentally in normal operation.

Note:

This issue is only exploitable if the server supports TLSv1.3 and is configured with the SSL_OP_NO_TICKET option enabled.

Remediation

A fix was pushed into the master branch but not yet published.

References