# CVE-2022-39199: Lack of proper validation in immudb

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

- **Severity:** MEDIUM 5.8
- **CVSS:** 5.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-345
- **Aliases:** GHSA-6cqj-6969-p57x, GO-2022-1118
- **Published:** 2022-11-21T20:38:51.000Z
- **Modified:** 2026-06-17T04:57:54.023Z

## Who should check

- Projects that depend on Go package github.com/codenotary/immudb (\< 1.4.1)
- Anyone running codenotary immudb \< 1.4.1

## Description

immudb is a database with built-in cryptographic proof and verification. immudb client SDKs use server's UUID to distinguish between different server instance so that the client can connect to different immudb instances and keep the state for multiple servers. SDK does not validate this uuid and can accept any value reported by the server. A malicious server can change the reported UUID tricking the client to treat it as a different server thus accepting a state completely irrelevant to the one previously retrieved from the server. This issue has been patched in version 1.4.1. As a workaround, when initializing an immudb client object a custom state handler can be used to store the state. Providing custom implementation that ignores the server UUID can be used to ensure that even if the server changes the UUID, client will still consider it to be the same server.

## Affected and fixed versions

- Go `github.com/codenotary/immudb`: affected \< 1.4.1; fixed 1.4.1 (osv)
- codenotary immudb: \< 1.4.1 (cvelist)

## Mitigation

- Upgrade github.com/codenotary/immudb to 1.4.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-2022-39199. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-39199.md
Affected: github.com/codenotary/immudb < 1.4.1
Fixed in: 1.4.1

Steps:
1. Search this machine and project for github.com/codenotary/immudb (Go), codenotary immudb: 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-2022-39199 being exploited?

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

### How serious is CVE-2022-39199?

Medium: CVSS 5.8 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-39199?

github.com/codenotary/immudb \< 1.4.1.

### Is there a fix for CVE-2022-39199?

Yes. Fixed in 1.4.1. Upgrade github.com/codenotary/immudb to 1.4.1 or later.

### How do I check if I'm affected by CVE-2022-39199?

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/codenotary/immudb/security/advisories/GHSA-6cqj-6969-p57x>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-39199>
- patch: <https://github.com/codenotary/immudb/commit/cade04756ff3f0a3b9e8d24149062744574adf5d>
- other: <https://github.com/codenotary/immudb/releases/tag/v1.4.1>
- other: <https://github.com/codenotary/immudb>
- other: <https://pkg.go.dev/vuln/GO-2022-1118>

## 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-2022-39199>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6cqj-6969-p57x> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-1118> (license: <https://creativecommons.org/licenses/by/4.0/>)

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