CVE-2022-29254: Silverstripe/silverstripe omnipay Failed Payment Recorded Has Completed Vulnerability

LOW
Advisory Identifier: GHSA-48f2-m7jg-866x
CVSS 3.7
CWE-436 CWE-437
Published
Advisory Summary

CVE-2022-29254 is a LOW (CVSS 3.7) failed payment recorded has completed vulnerability (CWE-436: Interpretation Conflict) affecting Silverstripe/silverstripe omnipay libraries in the Packagist ecosystem. The issue involves failed payment recorded has completed in silverstripe omnipay. Remediation is available by upgrading affected packages to version 2.5.2, 3.0.2, 3.1.4, 3.2.1.

CVE-2022-29254 at a Glance

CVE Identifier CVE-2022-29254
GHSA Identifier GHSA-48f2-m7jg-866x
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-436: Interpretation Conflict
Affected Product Silverstripe/silverstripe omnipay
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 3.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
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 CVE-2022-29254

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

silverstripe/silverstripe-omnipay fixed: 2.5.2
Upgrade silverstripe/silverstripe-omnipay to 2.5.2
silverstripe/silverstripe-omnipay fixed: 3.0.2
Upgrade silverstripe/silverstripe-omnipay to 3.0.2
silverstripe/silverstripe-omnipay fixed: 3.1.4
Upgrade silverstripe/silverstripe-omnipay to 3.1.4
silverstripe/silverstripe-omnipay fixed: 3.2.1
Upgrade silverstripe/silverstripe-omnipay to 3.2.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 silverstripe/silverstripe-omnipay

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-29254, inspect your project dependencies for Silverstripe/silverstripe omnipay:

inspect dependencies for silverstripe/silverstripe-omnipay

Analyze the terminal output to locate any version of Silverstripe/silverstripe omnipay in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.2), 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-436: Interpretation Conflict, where product a handles inputs or steps differently than product b, which causes a to perform incorrect actions based on its perception of b's state. In Silverstripe/silverstripe omnipay, 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

### Impact For a subset of Omnipay gateways (those that use intermediary states like `isNotification()` or `isRedirect()`), if the payment identifier or success URL is exposed it is possible for payments to be prematurely marked as completed without payment being taken. This is mitigated by the fact that most payment gateways hide this information from users, however some issuing banks offer flawed 3DSecure implementations that may inadvertently expose this data. ### Patches The following versions have been patched to fix this issue: - `2.5.2` - `3.0.2` - `3.1.4` - `3.2.1` ### Workarounds There are no known workarounds for this vulnerability. ### References N/A. ### For more information If you have any questions or comments about this advisory: * Email us at [security@silverstripe.org](mailto:security@silverstripe.org)

CVE-2022-29254 Affected Silverstripe/silverstripe omnipay Versions

4 component(s)
Fixed Versions:
2.5.23.0.23.1.43.2.1
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/silverstripe-omnipay
Packagist
< 2.5.2
2.5.2
silverstripe/silverstripe-omnipay
Packagist
≥ 3.0.0
< 3.0.2
3.0.2
silverstripe/silverstripe-omnipay
Packagist
≥ 3.1.0
< 3.1.4
3.1.4
silverstripe/silverstripe-omnipay
Packagist
≥ 3.2.0
< 3.2.1
3.2.1

References

Frequently Asked Questions

What is CVE-2022-29254?
CVE-2022-29254 is a security vulnerability in Silverstripe/silverstripe omnipay involving Failed payment recorded has completed in Silverstripe Omnipay under CWE-436: Interpretation Conflict.
Which Silverstripe/silverstripe omnipay versions are affected?
Affected versions include releases prior to 2.5.2, 3.0.2, 3.1.4, 3.2.1 across affected packages: silverstripe/silverstripe-omnipay.
What version fixes CVE-2022-29254?
Upgrading to 2.5.2, 3.0.2, 3.1.4, 3.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/silverstripe-omnipay affected?
Yes, silverstripe/silverstripe-omnipay is affected in releases prior to 2.5.2, 3.0.2, 3.1.4, 3.2.1. Upgrade your dependency to 2.5.2, 3.0.2, 3.1.4, 3.2.1 or later.
What is the CVSS score of CVE-2022-29254?
CVE-2022-29254 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2022-29254?
CVE-2022-29254 is classified under CWE-436: Interpretation Conflict (Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.).
How can I check Packagist dependencies for CVE-2022-29254?
Run the dependency tree command: 'inspect dependencies for silverstripe/silverstripe-omnipay'. 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-48f2-m7jg-866x",
  "modified" : "2022-06-06T21:24:39Z",
  "published" : "2022-06-06T21:24:39Z",
  "aliases" : [ "CVE-2022-29254" ],
  "summary" : "Failed payment recorded has completed in Silverstripe Omnipay",
  "details" : "### Impact\nFor a subset of Omnipay gateways (those that use intermediary states like `isNotification()` or `isRedirect()`), if the payment identifier or success URL is exposed it is possible for payments to be prematurely marked as completed without payment being taken. This is mitigated by the fact that most payment gateways hide this information from users, however some issuing banks offer flawed 3DSecure implementations that may inadvertently expose this data.\n\n### Patches\nThe following versions have been patched to fix this issue:\n\n- `2.5.2`\n- `3.0.2`\n- `3.1.4`\n- `3.2.1`\n\n### Workarounds\nThere are no known workarounds for this vulnerability.\n\n### References\nN/A.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@silverstripe.org](mailto:security@silverstripe.org)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/silverstripe-omnipay"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/silverstripe-omnipay"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/silverstripe-omnipay"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/silverstripe-omnipay"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.0"
      }, {
        "fixed" : "3.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-omnipay/security/advisories/GHSA-48f2-m7jg-866x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-29254"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-omnipay/commit/7dee9a1e0a5f54c2dc06e018cff3d9a19044e01b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-omnipay"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-omnipay/releases/tag/2.5.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-omnipay/releases/tag/3.0.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-omnipay/releases/tag/3.1.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-omnipay/releases/tag/3.2.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-436", "CWE-437" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-06T21:24:39Z",
    "nvd_published_at" : "2022-06-09T07:15:00Z"
  }
}