{"api_version":"1","generated_at":"2026-07-23T11:24:57+00:00","cve":"CVE-2022-35917","urls":{"html":"https://cve.report/CVE-2022-35917","api":"https://cve.report/api/cve/CVE-2022-35917.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-35917","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-35917"},"summary":{"title":"CVE-2022-35917","description":"Solana Pay is a protocol and set of reference implementations that enable developers to incorporate decentralized payments into their apps and services. When a Solana Pay transaction is located using a reference key, it may be checked to represent a transfer of the desired amount to the recipient, using the supplied `validateTransfer` function. An edge case regarding this mechanism could cause the validation logic to validate multiple transfers. This issue has been patched as of version `0.2.1`. Users of the Solana Pay SDK should upgrade to it. There are no known workarounds for this issue.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-08-01 22:15:00","updated_at":"2023-05-16 11:00:00"},"problem_types":["CWE-670"],"metrics":[],"references":[{"url":"https://github.com/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts","name":"https://github.com/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts","refsource":"MISC","tags":[],"title":"solana-pay/validateTransfer.ts at master · solana-labs/solana-pay · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq","name":"https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq","refsource":"CONFIRM","tags":[],"title":"Weakness in Transfer Validation Logic · Advisory · solana-labs/solana-pay · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad","name":"https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad","refsource":"MISC","tags":[],"title":"finish transfer validation implementation · solana-labs/solana-pay@ac6ce0d · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#reference","name":"https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#reference","refsource":"MISC","tags":[],"title":"solana-pay/SPEC.md at master · solana-labs/solana-pay · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-35917","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35917","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"35917","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"solana","cpe5":"pay","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"35917","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"solanalabs","cpe5":"pay","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-35917","STATE":"PUBLIC","TITLE":"Weakness in Transfer Validation Logic in @solana/pay"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"solana-pay","version":{"version_data":[{"version_value":"< 0.2.1"}]}}]},"vendor_name":"solana-labs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Solana Pay is a protocol and set of reference implementations that enable developers to incorporate decentralized payments into their apps and services. When a Solana Pay transaction is located using a reference key, it may be checked to represent a transfer of the desired amount to the recipient, using the supplied `validateTransfer` function. An edge case regarding this mechanism could cause the validation logic to validate multiple transfers. This issue has been patched as of version `0.2.1`. Users of the Solana Pay SDK should upgrade to it. There are no known workarounds for this issue."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-670: Always-Incorrect Control Flow Implementation"}]}]},"references":{"reference_data":[{"name":"https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq","refsource":"CONFIRM","url":"https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq"},{"name":"https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad","refsource":"MISC","url":"https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad"},{"name":"https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#reference","refsource":"MISC","url":"https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#reference"},{"name":"https://github.com/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts","refsource":"MISC","url":"https://github.com/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts"}]},"source":{"advisory":"GHSA-j47c-j42c-mwqq","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-08-01 22:15:00","lastModifiedDate":"2023-05-16 11:00:00","problem_types":["CWE-670"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:solanalabs:pay:*:*:*:*:*:*:*:*","versionEndExcluding":"0.2.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}