{"id":"CVE-2026-110861","aliases":["EUVD-2026-101744","GHSA-44jh-23m7-hpcf","GHSA-wrjq-vqr4-qw7r"],"status":"published","title":"Better Auth drizzle-adapter 1.6.17 before 1.7.7 Rate Limit Bypass via Race Condition","description":"Better Auth @better-auth/drizzle-adapter and better-auth from 1.6.17 before 1.7.7, and @better-auth/kysely-adapter from 1.6.17 before 1.7.0, contain a race condition in database-backed rate limiting on PostgreSQL where the limit check is not atomic with the counter update. Remote attackers can send bursts of concurrent requests that pass the check together, exceeding configured limits on password sign-in, two-factor verification, one-time code, password reset, and other rate-limited endpoints.","severity":{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00217,"percentile":0.12338,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-307","CWE-362"],"published":"2026-10-14T22:52:45Z","modified":"2026-10-28T02:30:33Z","fixes":[{"ecosystem":"npm","package":"@better-auth/drizzle-adapter","fixed_in":["1.7.7"],"sources":["ghsa","osv"]},{"ecosystem":"npm","package":"@better-auth/kysely-adapter","fixed_in":["1.7.0"],"sources":["ghsa","osv"]},{"ecosystem":"npm","package":"better-auth","fixed_in":["1.7.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@better-auth/drizzle-adapter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.6.17"},{"fixed":"1.7.7"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@better-auth/kysely-adapter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.6.17"},{"fixed":"1.7.0"}]}]},{"source":"ghsa","ecosystem":"npm","package":"better-auth","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.6.17"},{"fixed":"1.7.7"}]}]},{"source":"osv","ecosystem":"npm","package":"@better-auth/drizzle-adapter","ranges":[{"type":"SEMVER","events":[{"introduced":"1.6.17"},{"fixed":"1.7.7"}]}]},{"source":"osv","ecosystem":"npm","package":"@better-auth/kysely-adapter","ranges":[{"type":"SEMVER","events":[{"introduced":"1.6.17"},{"fixed":"1.7.0"}]}]},{"source":"osv","ecosystem":"npm","package":"better-auth","ranges":[{"type":"SEMVER","events":[{"introduced":"1.6.17"},{"fixed":"1.7.7"}]}]}],"products":[{"vendor":"better-auth","product":"better-auth"},{"vendor":"better-auth","product":"drizzle-adapter"},{"vendor":"better-auth","product":"kysely-adapter"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-44jh-23m7-hpcf","tags":["vendor-advisory","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/better-auth-drizzle-adapter-1.6.17-before-1.7.7-rate-limit-bypass-via-race-condition","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/better-auth/better-auth/pull/11331","tags":["web"]},{"url":"https://github.com/better-auth/better-auth/commit/35d7cd389220f99cfc98ac699e6a42b48313a740","tags":["web"]},{"url":"https://github.com/better-auth/better-auth/releases/tag/v1.7.7","tags":["web"]},{"url":"https://github.com/advisories/GHSA-44jh-23m7-hpcf"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-110861","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wrjq-vqr4-qw7r"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110861.json","tags":["advisory"]},{"url":"https://github.com/better-auth/better-auth","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-110861","title":"Better Auth drizzle-adapter 1.6.17 before 1.7.7 Rate Limit Bypass via Race Condition","description":"Better Auth @better-auth/drizzle-adapter and better-auth from 1.6.17 before 1.7.7, and @better-auth/kysely-adapter from 1.6.17 before 1.7.0, contain a race condition in database-backed rate limiting on PostgreSQL where the limit check is not atomic with the counter update. Remote attackers can send bursts of concurrent requests that pass the check together, exceeding configured limits on password sign-in, two-factor verification, one-time code, password reset, and other rate-limited endpoints.","status":"published","published":"2026-10-14T22:52:45.713Z","modified":"2026-10-20T02:26:30.363Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","level":"medium","assessor":"cna"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-307"],"updated_at":"2026-11-02T13:34:26.24368Z"}],"euvd":[{"id":"EUVD-2026-101744","description":"Better Auth @better-auth/drizzle-adapter and better-auth from 1.6.17 before 1.7.7, and @better-auth/kysely-adapter from 1.6.17 before 1.7.0, contain a race condition in database-backed rate limiting on PostgreSQL where the limit check is not atomic with the counter update. Remote attackers can send bursts of concurrent requests that pass the check together, exceeding configured limits on password sign-in, two-factor verification, one-time code, password reset, and other rate-limited endpoints.","status":"published","published":"2026-10-14T22:52:45Z","modified":"2026-10-20T02:26:30Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","level":"medium"}],"updated_at":"2026-11-02T16:59:44.419021Z"}],"ghsa":[{"id":"GHSA-44jh-23m7-hpcf","title":"@better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQL","description":"## Am I affected?\n\nYou are affected if you use `@better-auth/drizzle-adapter` from 1.6.17 through versions before 1.7.7 (including the 1.7.0 prereleases from beta.6 through rc.6) or `@better-auth/kysely-adapter` 1.6.17 through 1.6.31, and keep rate-limit records in a PostgreSQL database.\n\nAll of these must be true:\n\n- Rate limiting is enabled.\n- Rate-limit records are stored in the database.\n- The database is PostgreSQL, used through one of the adapter versions above.\n\nYou are not affected if you store rate-limit records in memory (the default) or in secondary storage.\n\n## Summary\n\nDatabase-backed rate limiting on PostgreSQL can let a burst of concurrent requests go over the configured maximum. When many requests arrive at the same time, several of them can pass the limit check together. This weakens the rate limit on password sign-in, two-factor verification, one-time codes, password resets, and other rate-limited endpoints.\n\n## Impact\n\nAn attacker who sends many requests at once can make more attempts than the application allows.\n\nThe issue does not bypass password or one-time-code validation. It does not directly compromise an account. The number of extra attempts is limited by the number of concurrent database connections, the number of application instances, and the rate-limit window.\n\n## Patches\n\n`@better-auth/kysely-adapter` is fixed in 1.7.0. Upgrade to 1.7.0 or later.\n\nThe Drizzle fix is merged for the planned `@better-auth/drizzle-adapter` 1.7.7 release. That package is not available yet. Upgrade `better-auth` and the installed Drizzle adapter together when 1.7.7 is available. No database schema or public API migration is required.\n\n## Workarounds\n\n- Store rate-limit records in secondary storage.\n- Use a custom rate-limit storage that checks and increments the counter in one atomic step. An atomic step cannot be interrupted by another request.\n- Enforce the intended limit at an upstream layer, such as a reverse proxy or gateway.\n\nIn-memory storage also avoids this issue. However, each application instance keeps its own counter, so it may not enforce one shared limit in multi-instance or serverless deployments.","status":"published","published":"2026-10-27T15:32:25Z","modified":"2026-10-27T15:32:27Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-307","CWE-362"],"updated_at":"2026-11-02T14:41:37.912288Z"},{"id":"GHSA-wrjq-vqr4-qw7r","title":"Better Auth @better-auth/drizzle-adapter and better-auth from 1.6.17 before 1.7.7, and @better...","description":"Better Auth @better-auth/drizzle-adapter and better-auth from 1.6.17 before 1.7.7, and @better-auth/kysely-adapter from 1.6.17 before 1.7.0, contain a race condition in database-backed rate limiting on PostgreSQL where the limit check is not atomic with the counter update. Remote attackers can send bursts of concurrent requests that pass the check together, exceeding configured limits on password sign-in, two-factor verification, one-time code, password reset, and other rate-limited endpoints.","status":"published","published":"2026-10-15T00:31:18Z","modified":"2026-10-15T00:31:19Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-307"],"updated_at":"2026-11-02T15:13:29.914076Z"}],"nvd":[{"id":"CVE-2026-110861","description":"Better Auth @better-auth/drizzle-adapter and better-auth from 1.6.17 before 1.7.7, and @better-auth/kysely-adapter from 1.6.17 before 1.7.0, contain a race condition in database-backed rate limiting on PostgreSQL where the limit check is not atomic with the counter update. Remote attackers can send bursts of concurrent requests that pass the check together, exceeding configured limits on password sign-in, two-factor verification, one-time code, password reset, and other rate-limited endpoints.","status":"published","published":"2026-10-14T23:17:27.49Z","modified":"2026-10-20T03:17:14.297Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low","assessor":"secondary"}],"cwes":["CWE-307"],"updated_at":"2026-11-02T14:12:59.328869Z"}],"osv":[{"id":"CVE-2026-110861","title":"Better Auth drizzle-adapter 1.6.17 before 1.7.7 Rate Limit Bypass via Race Condition","description":"Better Auth @better-auth/drizzle-adapter and better-auth from 1.6.17 before 1.7.7, and @better-auth/kysely-adapter from 1.6.17 before 1.7.0, contain a race condition in database-backed rate limiting on PostgreSQL where the limit check is not atomic with the counter update. Remote attackers can send bursts of concurrent requests that pass the check together, exceeding configured limits on password sign-in, two-factor verification, one-time code, password reset, and other rate-limited endpoints.","status":"published","published":"2026-10-14T22:52:45.713Z","modified":"2026-10-28T02:30:33.621445268Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-307"],"updated_at":"2026-11-02T15:44:55.61515Z"},{"id":"GHSA-44jh-23m7-hpcf","title":"@better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQL","description":"## Am I affected?\n\nYou are affected if you use `@better-auth/drizzle-adapter` from 1.6.17 through versions before 1.7.7 (including the 1.7.0 prereleases from beta.6 through rc.6) or `@better-auth/kysely-adapter` 1.6.17 through 1.6.31, and keep rate-limit records in a PostgreSQL database.\n\nAll of these must be true:\n\n- Rate limiting is enabled.\n- Rate-limit records are stored in the database.\n- The database is PostgreSQL, used through one of the adapter versions above.\n\nYou are not affected if you store rate-limit records in memory (the default) or in secondary storage.\n\n## Summary\n\nDatabase-backed rate limiting on PostgreSQL can let a burst of concurrent requests go over the configured maximum. When many requests arrive at the same time, several of them can pass the limit check together. This weakens the rate limit on password sign-in, two-factor verification, one-time codes, password resets, and other rate-limited endpoints.\n\n## Impact\n\nAn attacker who sends many requests at once can make more attempts than the application allows.\n\nThe issue does not bypass password or one-time-code validation. It does not directly compromise an account. The number of extra attempts is limited by the number of concurrent database connections, the number of application instances, and the rate-limit window.\n\n## Patches\n\n`@better-auth/kysely-adapter` is fixed in 1.7.0. Upgrade to 1.7.0 or later.\n\nThe Drizzle fix is merged for the planned `@better-auth/drizzle-adapter` 1.7.7 release. That package is not available yet. Upgrade `better-auth` and the installed Drizzle adapter together when 1.7.7 is available. No database schema or public API migration is required.\n\n## Workarounds\n\n- Store rate-limit records in secondary storage.\n- Use a custom rate-limit storage that checks and increments the counter in one atomic step. An atomic step cannot be interrupted by another request.\n- Enforce the intended limit at an upstream layer, such as a reverse proxy or gateway.\n\nIn-memory storage also avoids this issue. However, each application instance keeps its own counter, so it may not enforce one shared limit in multi-instance or serverless deployments.","status":"published","published":"2026-10-27T15:32:25Z","modified":"2026-10-27T15:47:24.132835603Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-307","CWE-362"],"updated_at":"2026-11-02T15:46:36.434231Z"}]}}
