{"vuid":"VU#230505","idnumber":"230505","name":"Cisco IOS LPD buffer overflow vulnerability","keywords":["Cisco","IOS","Line Printer Daemon","lpd","buffer overflow","router hostname"],"overview":"The Cisco IOS Line Printer Daemon contains a buffer overflow vulnerability. If successfully exploited, this vulnerability may allow an attacker to execute arbitrary code or create a denial-of-service condition .","clean_desc":"The Cisco IOS includes support for the UNIX Line Printer Daemon (LPD) protocol. The LPD service listens on 515/tcp and is not enabled by default. The IOS LPD service does not properly check the length of the hostname of the router. This error may result in a buffer overflow. See Cisco Security Response Document ID: 99109 for more information about this vulnerability. From Information Risk Management Advisory 024: When the LPD daemon is configured in Cisco IOS it listens on the default LPD TCP port, 515. If connected to with a source TCP port of anything other than 515 the following error is displayed: $ telnet 172.30.3.101 515\nTrying 172.30.3.101... Connected to 172.30.3.101 (172.30.3.101). Escape character is '^]'. hostname_of_the_router: /usr/lib/lpd: Malformed from address\nIf the hostname is 99 characters or longer then the overflow occurs as the result of a call to the sprintf() function.","impact":"An attacker may be able to execute arbitrary code or create a denial-of-service condition .","resolution":"Cisco has released an update to address this issue. See Cisco Security Response: Cisco IOS Line Printer Daemon (LPD) Protocol Stack Overflow Document ID: 99109 for more details.","workarounds":"The following workarounds may mitigate this vulnerability. Restrict access \nUsing access control lists or firewall rules to limit access to port 515/tcp will prevent attackers from connecting to the LPD service. Disable the LPD service\nDisabling the LPD service will mitigate this vulnerability. See Cisco Security Response Document ID: 99109 for more information. Disable unencrypted SNMP\nThe Simple Network Management Protocol (SNMP) service can be used to change settings or monitor device status. Some versions of Cisco IOS support SNMPv1, SNMPv2c, and SNMPv3. To use SNMP commands to change the hostname of an affected device, an attacker would need to know the SNMP read-write community string. SNMPv3 offers authentication and encryption features that may prevent an attacker from obtaining the read-write community string by sniffing Ethernet segments. Disable SNMP\nDisabling SNMP on affected devices may prevent this vulnerability from being exploited.","sysaffected":"","thanks":"Information about this vulnerability was released by Information Risk Management.","author":"This document was written by Ryan Giobbi.","public":["http://www.cisco.com/warp/public/707/cisco-sr-20071010-lpd.shtml","http://www.irmplc.com/index.php/155-Advisory-024","http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t3/snmp3.htm#wp4390","http://www.cisco.com/en/US/products/sw/iosswrel/ps1830/products_feature_guide09186a00800878fa.html#wp4363","http://www.cisco.com/en/US/docs/ios/11_3/security/configuration/guide/scacls.html"],"cveids":["CVE-2007-5381"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2007-10-10T17:47:51Z","publicdate":"2007-10-10T00:00:00Z","datefirstpublished":"2007-10-13T12:44:26Z","dateupdated":"2007-10-15T17:09:32Z","revision":12,"vrda_d1_directreport":"0","vrda_d1_population":"3","vrda_d1_impact":"2","cam_widelyknown":"17","cam_exploitation":"0","cam_internetinfrastructure":"15","cam_population":"10","cam_impact":"17","cam_easeofexploitation":"10","cam_attackeraccessrequired":"7","cam_scorecurrent":"7.14","cam_scorecurrentwidelyknown":"7.809375","cam_scorecurrentwidelyknownexploited":"12.271875","ipprotocol":"tcp","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":7.14,"vulnote":null}