# CVE-2023-45814: Tokens cached in the AuthenticationService are susceptible to reuse in Bunkum

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.66% (percentile 46, 2026-11-26)
- **CWE:** CWE-772
- **Aliases:** GHSA-jrf2-h5j6-3rrq
- **Published:** 2023-10-18T21:22:03.066Z
- **Modified:** 2026-06-17T06:29:34.730Z

## 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

## 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

- NuGet `Bunkum`: affected \>= 4.0.0, \< 4.2.1; fixed 4.2.1 (osv)
- LittleBigRefresh Bunkum: \>= 4.0.0, \< 4.2.1 (cvelist)

## Mitigation

- Upgrade Bunkum to 4.2.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/LittleBigRefresh/Bunkum/security/advisories/GHSA-jrf2-h5j6-3rrq>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-45814>
- patch: <https://github.com/LittleBigRefresh/Bunkum/commit/6e109464ed9255f558182f001f475a378405ff76>
- other: <https://github.com/LittleBigRefresh/Bunkum>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-45814>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jrf2-h5j6-3rrq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-45814> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-45814>
