GHSA-f3q4-ggfp-jv34: Adyen Adyen APIs Library For Python Vulnerability

MODERATE
CVSS 5.3
CWE-347
Published
Advisory Summary

GHSA-f3q4-ggfp-jv34 is a MODERATE (CVSS 5.3) adyen apis library for python vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Adyen libraries in the PyPI ecosystem. The issue involves adyen apis library for python timing attack vulnerability. Remediation is available by upgrading affected packages to version 7.1.0.

GHSA-f3q4-ggfp-jv34 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-f3q4-ggfp-jv34
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Adyen
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:L/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 Low (I:L)
Availability None (A:N)

How to Fix GHSA-f3q4-ggfp-jv34

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

Adyen fixed: 7.1.0
pip install Adyen>=7.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show Adyen

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-f3q4-ggfp-jv34, inspect your installed packages using pip:

pip show Adyen

Analyze the terminal output to locate any version of Adyen in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.1.0), your application is affected.

Note: The pip show Adyen command checks currently installed packages in your active Python environment.

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 Adyen, 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

Adyen has utility methods for validating notification HMAC signatures. The `is_valid_hmac` and `is_valid_hmac_notification` methods are vulnerable to a timing attack, you should compare the hash of the HMACs instead.

GHSA-f3q4-ggfp-jv34 Affected Adyen Versions

1 component(s)
Fixed Versions:
7.1.0
Product / Package Ecosystem Affected Versions Fixed Version
Adyen
PyPI
≥ 2.2.0
< 7.1.0
7.1.0

References

Frequently Asked Questions

What is GHSA-f3q4-ggfp-jv34?
GHSA-f3q4-ggfp-jv34 is a security vulnerability in Adyen involving Adyen APIs Library for Python timing attack vulnerability under CWE-347: Improper Verification of Cryptographic Signature.
Which Adyen versions are affected?
Affected versions include releases prior to 7.1.0 across affected packages: Adyen.
What version fixes GHSA-f3q4-ggfp-jv34?
Upgrading to 7.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Adyen affected?
Yes, Adyen is affected in releases prior to 7.1.0. Upgrade your dependency to 7.1.0 or later.
What is the CVSS score of GHSA-f3q4-ggfp-jv34?
GHSA-f3q4-ggfp-jv34 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-f3q4-ggfp-jv34?
GHSA-f3q4-ggfp-jv34 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 PyPI dependencies for GHSA-f3q4-ggfp-jv34?
Run the dependency tree command: 'pip show Adyen'. 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-f3q4-ggfp-jv34",
  "modified" : "2024-08-30T18:51:58Z",
  "published" : "2024-08-30T18:51:58Z",
  "aliases" : [ ],
  "summary" : "Adyen APIs Library for Python timing attack vulnerability",
  "details" : "Adyen has utility methods for validating notification HMAC signatures. The `is_valid_hmac` and `is_valid_hmac_notification` methods are vulnerable to a timing attack, you should compare the hash of the HMACs instead.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Adyen"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "7.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Adyen/adyen-python-api-library/issues/168"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Adyen/adyen-python-api-library/pull/170"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Adyen/adyen-python-api-library/commit/3292133dbc00ffc4cccfb92de672a76eaa587ca5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Adyen/adyen-python-api-library"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/adyen/PYSEC-2023-1.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-30T18:51:58Z",
    "nvd_published_at" : null
  }
}