CVE-2008-1391

FreeBSD 6.x-7.x and NetBSD 4.x - Integer Overflow in strfmon and printf Format Handling

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2008-1391. PoCs published by Maksymilian Arciemowicz.

AI-analyzed exploit summary This exploit demonstrates an integer overflow vulnerability in the `strfmon` function in multiple BSD platforms. By providing a maliciously crafted format string, an attacker can trigger a buffer overflow, potentially leading to arbitrary code execution or a denial-of-service condition.

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Maksymilian Arciemowicz · cdosbsd
https://www.exploit-db.com/exploits/31550

This exploit demonstrates an integer overflow vulnerability in the `strfmon` function in multiple BSD platforms. By providing a maliciously crafted format string, an attacker can trigger a buffer overflow, potentially leading to arbitrary code execution or a denial-of-service condition.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: FreeBSD 6, 7 and NetBSD 4
No auth needed
Prerequisites: Access to a vulnerable system with the `strfmon` function exposed, such as through a PHP application
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (15)

Core 15
Core References
US Government Resource third-party-advisory x_refsource_cert
http://www.us-cert.gov/cas/techalerts/TA08-350A.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/28479
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/490158/100/0/threaded
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2008/3444
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/41504
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/33179
Exploit third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/3770
Exploit third-party-advisory x_refsource_sreasonres
http://securityreason.com/achievement_securityalert/53
Vendor Advisory x_refsource_confirm
http://support.apple.com/kb/HT3338
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2010/dsa-2058
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1019722
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/29574

Scores

EPSS 0.1880
EPSS Percentile 96.9%

Details

CWE
CWE-189
Status published
Products (6)
freebsd/freebsd 6.0 (3 CPE variants)
freebsd/freebsd 6.0_p5_release
freebsd/freebsd 7.0 (2 CPE variants)
freebsd/freebsd 7.0_beta4
freebsd/freebsd 7.0_releng
netbsd/netbsd 4.0
Published Mar 27, 2008
Tracked Since Feb 18, 2026