{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2011-1018 exists.","fix":"Apply the vendor's patch.","what":"CVE-2011-1018 is a critical command injection vulnerability in n/a, published on 25 Feb 2011. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2011-1018 and fix it if it is affected.\n\nWhat it is: CVE-2011-1018 is a critical command injection vulnerability in n/a, published on 25 Feb 2011. 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-2011-1018 exists.\n\nAffected product: n/a. 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-2011-1018/ (Markdown: https://insights.sbomify.com/CVE-2011-1018/index.md)","id":"CVE-2011-1018","markdown":"https://insights.sbomify.com/CVE-2011-1018/index.md","name":"CVE-2011-1018","record":{"aliases":["DEBIAN-CVE-2011-1018","DSA-2182-1","GHSA-g657-whx2-ph73","RHSA-2011:0324","openSUSE-SU-2024:10097-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Logwatch log analyzer","requires_auth":"none","summary":"Remote attackers can execute arbitrary commands on Logwatch servers by injecting shell metacharacters into log file names, such as via crafted Samba usernames.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"logwatch","vendor":"logwatch"}],"cvss":{"score":10,"severity":"critical","source":"nvd","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"logwatch.pl in Logwatch 7.3.6 allows remote attackers to execute arbitrary commands via shell metacharacters in a log file name, as demonstrated via a crafted username to a Samba server.","ecosystems":["Red Hat:enterprise_linux:5::server","Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","openSUSE:Tumbleweed"],"exploits":{"exploitdb":1,"first_seen":"2011-02-24","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2011-02-24","kind":"exploitdb","ref":"35386","stars":null,"title":"Logwatch Log File - Special Characters Privilege Escalation"}],"tier":"weaponised"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2011-1018","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2011"},"n_packages":6,"n_references":23,"next":{"headline":"Privilege escalation in n/a","id":"CVE-2011-1019"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:7.3-9.el5_6"],"introduced":["0"],"last_affected":[],"package":"logwatch","purl":"pkg:rpm/redhat/logwatch","source":"RHSA-2011:0324"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:7.3.6-49.el6"],"introduced":["0"],"last_affected":[],"package":"logwatch","purl":"pkg:rpm/redhat/logwatch","source":"RHSA-2011:0324"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:7.3.6-49.el6"],"introduced":["0"],"last_affected":[],"package":"logwatch","purl":"pkg:rpm/redhat/logwatch","source":"RHSA-2011:0324"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:7.3.6-49.el6"],"introduced":["0"],"last_affected":[],"package":"logwatch","purl":"pkg:rpm/redhat/logwatch","source":"RHSA-2011:0324"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:7.3.6-49.el6"],"introduced":["0"],"last_affected":[],"package":"logwatch","purl":"pkg:rpm/redhat/logwatch","source":"RHSA-2011:0324"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.4.3-1.4"],"introduced":["0"],"last_affected":[],"package":"logwatch","purl":"pkg:rpm/opensuse/logwatch\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:10097-1"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2011-1017"},"products":["n/a"],"published":"2011-02-25","related":[{"cvss_score":7.2,"headline":"Privilege escalation in n/a","id":"CVE-2002-0165","kev_date_added":null,"published":"2002-04-05"},{"cvss_score":6.2,"headline":"Path traversal in n/a","id":"CVE-2002-0162","kev_date_added":null,"published":"2002-03-30"},{"cvss_score":5,"headline":"Denial of service in n/a","id":"CVE-2005-1061","kev_date_added":null,"published":"2005-04-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary commands on Logwatch servers by injecting shell metacharacters into log file names, such as via crafted Samba usernames.","url":"https://insights.sbomify.com/CVE-2011-1018/"}