CVE-2026-16212 Details
Description
A vulnerability was identified in awesto django-shop up to 1.2.4. Affected is an unknown function of the file shop/models/inventory.py of the component Purchase Stock Handler. The manipulation leads to race condition. The attack is possible to be carried out remotely. The attack is considered to have high complexity. The exploitability is told to be difficult. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.
A race condition vulnerability has been identified in Awesto Django-Shop versions through 1.2.4, specifically within the Purchase Stock Handler component. The issue arises from a non-atomic read-modify-write process in the checkout flow, allowing concurrent purchases of the last available unit to be processed simultaneously, leading to overselling. This vulnerability can be exploited remotely and is considered to have high complexity, although a public exploit is available.
It is recommended to implement row-level locking or atomic conditional updates for stock deductions. This can be achieved by locking the inventory row during the checkout transaction or by updating the stock with a condition that ensures availability, such as 'quantity >= requested_quantity', and aborting the checkout if the update does not affect any rows. Additionally, a regression test for concurrent checkouts should be added to ensure the issue is addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 19, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/awesto/django-shop/ | [email protected] | ProductVendor |
| https://github.com/awesto/django-shop/issues/888 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/cve/CVE-2026-16212 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/857939 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/380028 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/380028/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| awesto django-shop | <= 1.2.4 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 19, 2026 | New CVE Received | [email protected] |
Volerion