CVE-2026-11465
Deferred Deferred - Pending Action
Business Logic Error in One-API Redeem Function

Publication date: 2026-06-07

Last updated on: 2026-06-07

Assigner: VulDB

Description
A security flaw has been discovered in songquanpeng one-api up to 0.6.11-preview.7. Affected by this issue is the function Redeem of the file model/redemption.go of the component Redemption Code Top-Up Endpoint. The manipulation results in business logic errors. The attack may be launched remotely. The attack requires a high level of complexity. The exploitation is known to be difficult. The exploit has been released to the public and may be used for attacks. The pull request to fix this issue awaits acceptance.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-07
Last Modified
2026-06-07
Generated
2026-06-08
AI Q&A
2026-06-08
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
songquanpeng one-api to 0.6.11-preview.7 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-840 Business Logic Errors
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a security flaw in the songquanpeng one-api software, specifically in the Redeem function of the Redemption Code Top-Up Endpoint component. It causes business logic errors, meaning the intended business rules or processes can be bypassed or manipulated. The flaw can be exploited remotely but requires a high level of complexity, making exploitation difficult. However, an exploit has been publicly released.

Impact Analysis

The vulnerability can lead to business logic errors in the affected system, potentially allowing attackers to manipulate the redemption process in unintended ways. This could result in unauthorized top-ups or misuse of redemption codes, impacting the integrity of business operations. Since the exploit is publicly available, there is a risk of attacks if the vulnerability is not patched.

Compliance Impact

The vulnerability allows for business logic errors that enable multiple user accounts to redeem the same one-time redemption code concurrently, leading to unlimited balance amplification and potential financial loss. However, there is no information provided in the context or resources about the impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Detection Guidance

This vulnerability involves a race condition in the redemption code top-up endpoint allowing multiple concurrent redemptions of the same one-time code. Detection can focus on monitoring for multiple simultaneous redemptions of identical codes by different user accounts.

Since the issue is specific to MySQL backends and involves missing row-level locking, you can detect exploitation attempts by analyzing database transaction logs or application logs for concurrent redemption requests of the same code.

Suggested commands include querying the database for redemption records with the same code redeemed multiple times concurrently or checking application logs for overlapping redemption requests.

  • Use SQL queries to identify multiple redemptions of the same code within a short time window, for example: SELECT redemption_code, COUNT(*) FROM redemptions WHERE redemption_time > NOW() - INTERVAL 1 MINUTE GROUP BY redemption_code HAVING COUNT(*) > 1;
  • Monitor application logs for concurrent POST requests to /api/user/topup with identical redemption codes.
  • Implement network monitoring to detect multiple requests from different user accounts redeeming the same code simultaneously.
Mitigation Strategies

The immediate mitigation involves fixing the flawed row locking mechanism in the redemption code top-up endpoint to prevent concurrent redemptions of the same code.

Specifically, replace the incorrect GORM v2 locking syntax `Set("gorm:query_option", "FOR UPDATE")` with the correct syntax `tx.Clauses(clause.Locking{Strength: "UPDATE"}).Where(...).First(...)` to ensure proper row-level locking during transactions.

If you cannot immediately apply the code fix, consider temporarily disabling or restricting the redemption code feature to prevent exploitation.

Also, monitor for suspicious activity such as multiple redemptions of the same code and limit the number of accounts that can redeem codes concurrently.

Apply the security fix from the official pull request once it is merged and tested in your environment.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-11465. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart