{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"unimportant\"}"}}}], "affected": [{"vendor": "debian", "product": "lftp", "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2007-2348"}], "descriptions": [{"lang": "en", "value": "mirror --script in lftp before 3.5.9 does not properly quote shell metacharacters, which might allow remote user-assisted attackers to execute shell commands via a malicious script.  NOTE: it is not clear whether this issue crosses security boundaries, since the script already supports commands such as \"get\" which could overwrite executable files."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2007-04-27T18:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 6.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"LOW\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "lftp", "versions": [{"status": "affected", "version": "0", "lessThan": "0:3.7.11-4.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2007-2348.html"}], "descriptions": [{"lang": "en", "value": "mirror --script in lftp before 3.5.9 does not properly quote shell metacharacters, which might allow remote user-assisted attackers to execute shell commands via a malicious script. NOTE: it is not clear whether this issue crosses security boundaries, since the script already supports commands such as get which could overwrite executable files."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2009-09-08T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 5.1, "accessVector": "NETWORK", "vectorString": "AV:N/AC:H/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "HIGH", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Low\"}"}}}], "affected": [{"vendor": "redhat", "product": "lftp", "versions": [{"status": "affected", "version": "0", "lessThan": "0:3.7.11-4.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2009:1278"}, {"url": "https://access.redhat.com/security/cve/CVE-2007-2348"}], "descriptions": [{"lang": "en", "value": "LFTP is a sophisticated file transfer program for the FTP and HTTP\nprotocols. Like bash, it has job control and uses the readline library for\ninput. It has bookmarks, built-in mirroring, and can transfer several files\nin parallel. It is designed with reliability in mind.\n\nIt was discovered that lftp did not properly escape shell metacharacters\nwhen generating shell scripts using the \"mirror --script\" command. A\nmirroring script generated to download files from a malicious FTP server\ncould allow an attacker controlling the FTP server to run an arbitrary\ncommand as the user running lftp. (CVE-2007-2348)\n\nThis update also fixes the following bugs:\n\n* when using the \"mirror\" or \"get\" commands with the \"-c\" option, lftp did\nnot check for some specific conditions that could result in the program\nbecoming unresponsive, hanging and the command not completing. For example,\nwhen waiting for a directory listing, if lftp received a \"226\" message,\ndenoting an empty directory, it previously ignored the message and kept\nwaiting. With this update, these conditions are properly checked for and\nlftp no longer hangs when \"-c\" is used with \"mirror\" or \"get\". (BZ#422881)\n\n* when using the \"put\", \"mput\" or \"reput\" commands over a Secure FTP (SFTP)\nconnection, specifying the \"-c\" option sometimes resulted in corrupted\nfiles of incorrect size. With this update, using these commands over SFTP\nwith the \"-c\" option works as expected, and transferred files are no\nlonger corrupted in the transfer process. (BZ#434294)\n\n* previously, LFTP linked to the OpenSSL library. OpenSSL's license is,\nhowever, incompatible with LFTP's GNU GPL license and LFTP does not include\nan exception allowing OpenSSL linking. With this update, LFTP links to the\nGnuTLS (GNU Transport Layer Security) library, which is released under the\nGNU LGPL license. Like OpenSSL, GnuTLS implements the SSL and TLS\nprotocols, so functionality has not changed. (BZ#458777)\n\n* running \"help mirror\" from within lftp only presented a sub-set of the\navailable options compared to the full list presented in the man page. With\nthis update, running \"help mirror\" in lftp presents the same list of mirror\noptions as is available in the Commands section of the lftp man page.\n(BZ#461922)\n\n* LFTP imports gnu-lib from upstream. Subsequent to gnu-lib switching from\nGNU GPLv2 to GNU GPLv3, the LFTP license was internally inconsistent, with\nLFTP licensed as GNU GPLv2 but portions of the package apparently licensed\nas GNU GPLv3 because of changes made by the gnu-lib import. With this\nupdate, LFTP itself switches to GNU GPLv3, resolving the inconsistency.\n(BZ#468858)\n\n* when the \"ls\" command was used within lftp to present a directory listing\non a remote system connected to via HTTP, file names containing spaces were\npresented incorrectly. This update corrects this behavior. (BZ#504591)\n\n* the default alias \"edit\" did not define a default editor. If EDITOR was\nnot set in advance by the system, lftp attempted to execute\n\"~/.lftp/edit.tmp.$$\" (which failed because the file is not set to\nexecutable). The edit alias also did not support tab-completion of file\nnames and incorrectly interpreted file names containing spaces. The updated\npackage defines a default editor (vi) in the absence of a system-defined\nEDITOR. The edit alias now also supports tab-completion and handles file\nnames containing spaces correctly for both downloading and uploading.\n(BZ#504594)\n\nNote: This update upgrades LFTP from version 3.7.3 to upstream version\n3.7.11, which incorporates a number of further bug fixes to those noted\nabove. For details regarding these fixes, refer to the\n\"/usr/share/doc/lftp-3.7.11/NEWS\" file after installing this update.\n(BZ#308721)\n\nAll LFTP users are advised to upgrade to this updated package, which\nresolves these issues."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2007-01-09T00:00:00Z", "x_subShortName": "redhat_5"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 6.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:alexander_v._lukyanov:lftp:*:*:*:*:*:*:*:*"], "vendor": "alexander_v._lukyanov", "product": "lftp", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "3.5.8"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://bugs.gentoo.org/show_bug.cgi?id=173524"}, {"url": "http://lftp.yar.ru/news.html"}, {"url": "http://rhn.redhat.com/errata/RHSA-2009-1278.html"}, {"url": "http://secunia.com/advisories/25107"}, {"url": "http://secunia.com/advisories/25132"}, {"url": "http://secunia.com/advisories/36559"}, {"url": "http://www.securityfocus.com/bid/23736"}, {"url": "http://www.vupen.com/english/advisories/2007/1590"}, {"url": "https://issues.rpath.com/browse/RPL-1229"}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10806"}], "descriptions": [{"lang": "en", "value": "mirror --script in lftp before 3.5.9 does not properly quote shell metacharacters, which might allow remote user-assisted attackers to execute shell commands via a malicious script.  NOTE: it is not clear whether this issue crosses security boundaries, since the script already supports commands such as \"get\" which could overwrite executable files."}, {"lang": "es", "value": "La secuencia de comandos mirror en lftp anterior a 3.5.9 no cita adecaudamente el interprete de carácteres metacaracter, lo cual podría permitir atacantes con la intervención del usuario ejecutar comandos del interprete de comandos (shell) a través de secuencias de comandos maliciosas. NOTA: no está claro si este asunto cruza los límites de la seguridad, puesto que que la secuencia de comandos apoya  comandos como por ejemplo “get” que podrían sobreescribir ficheros ejecutables."}], "problemTypes": [{"descriptions": [{"lang": "en", "description": "NVD-CWE-Other"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2007-04-27T18:19:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2007-2348", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "datePublished": "2007-04-27T18:19:00Z", "assignerShortName": "redhat"}, "dataVersion": "5.0"}