Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-45814

MEDIUM 5.3EPSS 46%

Tokens cached in the AuthenticationService are susceptible to reuse in Bunkum

Also known as GHSA-jrf2-h5j6-3rrq

Mitigation

  • Upgrade Bunkum to 4.2.1 or later.

Who should check

  • Projects that depend on NuGet package Bunkum (>= 4.0.0, < 4.2.1)
  • Anyone running LittleBigRefresh Bunkum >= 4.0.0, < 4.2.1

Vulnerability facts

Affected
Bunkum >= 4.0.0, < 4.2.1
Fixed in
4.2.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
EPSS
0.66% chance of exploitation in 30 days (percentile 46, 2026-11-26)
CWE
CWE-772
Published
Modified

Description

Bunkum is an open-source protocol-agnostic request server for custom game servers. First, a little bit of background. So, in the beginning, Bunkum's `AuthenticationService` only supported injecting `IUser`s. However, as Refresh and SoundShapesServer implemented permissions systems support for injecting `IToken`s into endpoints was added. All was well until 4.0. Bunkum 4.0 then changed to enforce relations between `IToken`s and `IUser`s. This wasn't implemented in a very good way in the `AuthenticationService`, and ended up breaking caching in such a way that cached tokens would persist after the lifetime of the request - since we tried to cache both tokens and users. From that point until now, from what I understand, Bunkum was attempting to use that cached token at the start of the next request once cached. Naturally, when that token expired, downstream projects like Refresh would remove the object from Realm - and cause the object in the cache to be in a detached state, causing an exception from invalid use of `IToken.User`. So in other words, a use-after-free since Realm can't manage the lifetime of the cached token. Security-wise, the scope is fairly limited, can only be pulled off on a couple endpoints given a few conditions, and you can't guarantee which token you're going to get. Also, the token *would* get invalidated properly if the endpoint had either a `IToken` usage or a `IUser` usage. The fix is to just wipe the token cache after the request was handled, which is now in `4.2.1`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected and fixed versions

Package / productAffectedFixedSource
NuGet Bunkum>= 4.0.0, < 4.2.14.2.1osv
LittleBigRefresh Bunkum>= 4.0.0, < 4.2.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-45814. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-45814.md
Affected: Bunkum >= 4.0.0, < 4.2.1
Fixed in: 4.2.1

Steps:
1. Search this machine and project for Bunkum (NuGet), LittleBigRefresh Bunkum: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-45814 being exploited?

There is no confirmed exploitation: CVE-2023-45814 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.66% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-45814?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2023-45814?

Bunkum >= 4.0.0, < 4.2.1.

Is there a fix for CVE-2023-45814?

Yes. Fixed in 4.2.1. Upgrade Bunkum to 4.2.1 or later.

How do I check if I'm affected by CVE-2023-45814?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors