CVE-2004-1189 Memory corruption in n/a

High 7.2 Published Updated

Authenticated users can execute arbitrary code via a heap-based buffer overflow in the MIT Kerberos password change function.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2004-1189?

CVE-2004-1189 is a high-severity memory corruption vulnerability in Mit Kerberos 5, published on 31 Dec 2004. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-787

Which versions are affected by CVE-2004-1189?

It affects 1 product.

Linux distribution packages (24)
krb5 Red Hat:enterprise_linux:4::asAll versions0:1.3.4-10
krb5-debuginfo Red Hat:enterprise_linux:4::asAll versions0:1.3.4-10
krb5-devel Red Hat:enterprise_linux:4::asAll versions0:1.3.4-10
krb5-libs Red Hat:enterprise_linux:4::asAll versions0:1.3.4-10
krb5-server Red Hat:enterprise_linux:4::asAll versions0:1.3.4-10
krb5-workstation Red Hat:enterprise_linux:4::asAll versions0:1.3.4-10
krb5 Red Hat:enterprise_linux:4::desktopAll versions0:1.3.4-10
krb5-debuginfo Red Hat:enterprise_linux:4::desktopAll versions0:1.3.4-10
krb5-devel Red Hat:enterprise_linux:4::desktopAll versions0:1.3.4-10
krb5-libs Red Hat:enterprise_linux:4::desktopAll versions0:1.3.4-10
krb5-server Red Hat:enterprise_linux:4::desktopAll versions0:1.3.4-10
krb5-workstation Red Hat:enterprise_linux:4::desktopAll versions0:1.3.4-10
krb5 Red Hat:enterprise_linux:4::esAll versions0:1.3.4-10
krb5-debuginfo Red Hat:enterprise_linux:4::esAll versions0:1.3.4-10
krb5-devel Red Hat:enterprise_linux:4::esAll versions0:1.3.4-10
krb5-libs Red Hat:enterprise_linux:4::esAll versions0:1.3.4-10
krb5-server Red Hat:enterprise_linux:4::esAll versions0:1.3.4-10
krb5-workstation Red Hat:enterprise_linux:4::esAll versions0:1.3.4-10
krb5 Red Hat:enterprise_linux:4::wsAll versions0:1.3.4-10
krb5-debuginfo Red Hat:enterprise_linux:4::wsAll versions0:1.3.4-10
krb5-devel Red Hat:enterprise_linux:4::wsAll versions0:1.3.4-10
krb5-libs Red Hat:enterprise_linux:4::wsAll versions0:1.3.4-10
krb5-server Red Hat:enterprise_linux:4::wsAll versions0:1.3.4-10
krb5-workstation Red Hat:enterprise_linux:4::wsAll versions0:1.3.4-10

Products include Mit Kerberos 5.

How do I fix CVE-2004-1189?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2004-1189 being exploited?

There is no known exploitation of CVE-2004-1189 in the wild and no public exploit code.

All Mit Kerberos 5 vulnerabilities

Sources

Also known as DEBIAN-CVE-2004-1189, DSA-629-1, GHSA-jq9g-4vpq-449j, RHSA-2005:045.

Is CVE-2004-1189 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free