CVE-2008-1391 Integer overflow in n/a

High 7.5 Published Updated

Integer overflows in BSD libc strfmon and printf functions allow remote attackers to execute arbitrary code via crafted format strings.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2008-1391?

CVE-2008-1391 is a high-severity vulnerability in Freebsd Freebsd, published on 27 Mar 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Multiple integer overflows in libc in NetBSD 4.x, FreeBSD 6.x and 7.x, and probably other BSD and Apple Mac OS platforms allow context-dependent attackers to execute arbitrary code via large values of certain integer fields in the format argument to (1) the strfmon function in lib/libc/stdlib/strfmon.c, related to the GET_NUMBER macro; and (2) the printf function, related to left_prec and right_prec.

Weakness: CWE-189

Which versions are affected by CVE-2008-1391?

It affects 2 products.

Products include Freebsd Freebsd, Netbsd Netbsd.

How do I fix CVE-2008-1391?

Apply the vendor's patch.

Is CVE-2008-1391 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-1391 exists.

Public exploit code: 1 Exploit-DB entry.

All Freebsd Freebsd vulnerabilities

Sources

Also known as DEBIAN-CVE-2008-1391, GHSA-7w79-2w84-7wvc.

Is CVE-2008-1391 in your software?

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

Check your SBOMs for free