{"answers":{"affected":"It affects 19 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-6111 exists.","fix":"Apply the vendor's patch.","what":"CVE-2019-6111 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 31 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-6111 and fix it if it is affected.\n\nWhat it is: CVE-2019-6111 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 31 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-6111 exists.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-6111/ (Markdown: https://insights.sbomify.com/CVE-2019-6111/index.md)","id":"CVE-2019-6111","markdown":"https://insights.sbomify.com/CVE-2019-6111/index.md","name":"CVE-2019-6111","record":{"aliases":["ALPINE-CVE-2019-6111","DEBIAN-CVE-2019-6111","DSA-4387-2","GHSA-jr78-hfw4-xp7g","UBUNTU-CVE-2019-6111","USN-3885-2"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenSSH scp client","requires_auth":"none","summary":"A malicious scp server can overwrite arbitrary files on the client, potentially leading to privilege escalation via authorized_keys manipulation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"mina_sshd","vendor":"apache"},{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"freebsd","vendor":"freebsd"},{"product":"m10-1_firmware","vendor":"fujitsu"},{"product":"m10-4_firmware","vendor":"fujitsu"},{"product":"m10-4s_firmware","vendor":"fujitsu"},{"product":"m12-1_firmware","vendor":"fujitsu"},{"product":"m12-2_firmware","vendor":"fujitsu"},{"product":"m12-2s_firmware","vendor":"fujitsu"},{"product":"openssh","vendor":"openbsd"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"scalance_x204rna_eec_firmware","vendor":"siemens"},{"product":"scalance_x204rna_firmware","vendor":"siemens"},{"product":"winscp","vendor":"winscp"}],"cvss":{"score":5.9,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"An issue was discovered in OpenSSH 7.9. Due to the scp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious scp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the scp client target directory. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file).","ecosystems":[],"exploits":{"exploitdb":2,"first_seen":"2019-01-11","github_poc":2,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2020-05-12T17:48:26Z","kind":"github_poc","ref":"https://github.com/53n7hu/SNP","stars":4,"title":"CVE-2019-6111 vulnerability exploitation"},{"date":"2019-01-11","kind":"exploitdb","ref":"46516","stars":null,"title":"OpenSSH SCP Client - Write Arbitrary Files"},{"date":"2019-01-18","kind":"exploitdb","ref":"46193","stars":null,"title":"SCP Client - Multiple Vulnerabilities (SSHtranger Things)"},{"date":"2024-07-01T14:07:20Z","kind":"github_poc","ref":"https://github.com/mbadanoiu/MAL-008","stars":0,"title":"Case Study: SSHtranger Things (CVE-2019-6111, CVE-2019-6110) in Cisco SD-WAN"}],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal in n/a","id":"CVE-2019-6111","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","fedoraproject:fedora","freebsd:freebsd","openbsd:openssh","redhat:enterprise_linux","redhat:enterprise_linux_eus","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_tus"],"type":"path_traversal","year":"2019"},"n_packages":0,"n_references":23,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-6112"},"packages":[],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2019-6110"},"products":["n/a"],"published":"2019-01-31","related":[{"cvss_score":7.5,"headline":"Apache MINA SSHD: Path traversal in SCP file reception","id":"CVE-2026-56452","kev_date_added":null,"published":"2026-07-20"},{"cvss_score":7.3,"headline":"Apache MINA SSHD: SSH certificate options lack validations","id":"CVE-2026-56624","kev_date_added":null,"published":"2026-07-20"},{"cvss_score":7.1,"headline":"Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git on Windows","id":"CVE-2026-56623","kev_date_added":null,"published":"2026-07-20"},{"cvss_score":7.1,"headline":"Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git","id":"CVE-2026-48827","kev_date_added":null,"published":"2026-06-01"},{"cvss_score":5.9,"headline":"Apache MINA SSHD: integrity check bypass","id":"CVE-2024-41909","kev_date_added":null,"published":"2024-08-12"},{"cvss_score":5.4,"headline":"Apache MINA SSHD: Remote execution of JGit commands can write files on the server","id":"CVE-2026-58624","kev_date_added":null,"published":"2026-07-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["n/a"]},"summary":"A malicious scp server can overwrite arbitrary files on the client, potentially leading to privilege escalation via authorized_keys manipulation.","url":"https://insights.sbomify.com/CVE-2019-6111/"}