Home / pocketbase / pocketbase / CVE-2024-38351
CVE-2024-38351: is it exploited, and which versions of pocketbase are affected and fixed?
CVE-2024-38351 is an authentication bypass (improper authentication) vulnerability in pocketbase. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: github.com/pocketbase/pocketbase before 0.22.14 (GitHub advisory GHSA-m93w-4fxv-r35v). Fixed in 0.22.14 (GitHub advisory GHSA-m93w-4fxv-r35v). Severity: Medium (5.4, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:28 UTC.
What is CVE-2024-38351?
Password auth and OAuth2 unverified email linking
Pocketbase is an open source web backend written in go. In affected versions a malicious user may be able to compromise other user accounts. In order to be exploited users must have both OAuth2 and Password auth methods enabled. A possible attack scenario could be: 1. a malicious actor register with the targeted user's email (it is unverified), 2. at some later point in time the targeted user stumble on your app and decides to sign-up with OAuth2 (_this step could be also initiated by the attacker by sending an invite email to the targeted user_), 3. on successful OAuth2 auth we search for an existing PocketBase user matching with the OAuth2 user's email and associate them, 4. because we haven't changed the password of the existing PocketBase user during the linking, the malicious actor has access to the targeted user account and will be able to login with the initially created email/password. To prevent this for happening we now reset the password for this specific case if the previously created user wasn't verified (an exception to this is if the linking is explicit/manual, aka. when you send `Authorization:TOKEN` with the OAuth2 auth call). Additionally to warn existing users we now send an email alert in case the user has logged in with password but has at least one OAuth2 account linked. The flow will be further improved with ongoing refactoring and we will start sending emails for "unrecognized device" logins (OTP and MFA is already implemented and will be available with the next v0.23.0 release in the near future). For the time being users are advised to update to version 0.22.14. There are no known workarounds for this vulnerability.
From the CVE record by GitHub_M, last updated August 2, 2024, 04:04 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pocketbase | pocketbase | < 0.22.14 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/pocketbase/pocketbase | < 0.22.14 | 0.22.14 | GHSA-m93w-4fxv-r35v |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 5, 2024. Summary: PocketBase performs password auth and OAuth2 unverified email linking.
How severe is CVE-2024-38351?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-38351 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, July 11, 2024)
- EPSS
- 0.32% probability of exploitation activity in the next 30 days, percentile 26.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-287 Improper Authentication
Where are the vendor advisories and references?
- https://github.com/pocketbase/pocketbase/security/advisories/GHSA-m93w-4fxv-r35v x_refsource_CONFIRM
- https://github.com/pocketbase/pocketbase/discussions/4355 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 14, 2024
- Published
- June 18, 2024, 17:00 UTC
- CVE record updated
- August 2, 2024, 04:04 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:39 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:28 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pocketbase?
- Sep 16, 2026CVE-2026-82410 pocketbase: uncaught exception (crash)
- May 12, 2026CVE-2026-44166 pocketbase: authentication bypass (improper authentication)
Questions about CVE-2024-38351
Is CVE-2024-38351 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.32% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pocketbase are affected by CVE-2024-38351?
github.com/pocketbase/pocketbase before 0.22.14, per the GitHub advisory GHSA-m93w-4fxv-r35v. The tables above give every range the sources list.
Which version fixes CVE-2024-38351?
0.22.14, per the GitHub advisory GHSA-m93w-4fxv-r35v. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-38351?
Medium (5.4, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-38351?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.