{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-1540 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2007-1540 is a medium-severity path traversal vulnerability in n/a, published on 20 Mar 2007. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2007-1540 and fix it if it is affected.\n\nWhat it is: CVE-2007-1540 is a medium-severity path traversal vulnerability in n/a, published on 20 Mar 2007. 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-2007-1540 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-2007-1540/ (Markdown: https://insights.sbomify.com/CVE-2007-1540/index.md)","id":"CVE-2007-1540","markdown":"https://insights.sbomify.com/CVE-2007-1540/index.md","name":"CVE-2007-1540","record":{"aliases":["DEBIAN-CVE-2007-1540","GHSA-6r5q-24m9-x8j7"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Accounting software","requires_auth":"none","summary":"Remote attackers can execute arbitrary code and bypass authentication via directory traversal in the login parameter of SQL-Ledger and LedgerSMB.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ledgersmb","vendor":"ledgersmb"},{"product":"sql-ledger","vendor":"sql-ledger"}],"cvss":{"score":4.3,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","version":"2.0"},"cwes":[],"description":"Directory traversal vulnerability in am.pl in (1) SQL-Ledger 2.6.27 and earlier, and (2) LedgerSMB before 1.2.0, allows remote attackers to run arbitrary executables and bypass authentication via a .. (dot dot) sequence and trailing NULL (%00) in the login parameter.  NOTE: this issue was reportedly addressed in SQL-Ledger 2.6.27, however third-party researchers claim that the file is still executed even though an error is generated.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2007-03-19","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2007-03-19","kind":"exploitdb","ref":"29761","stars":null,"title":"LedgerSMB1.0/1.1 / SQL-Ledger 2.6.x - 'Login' Local File Inclusion / Authentication Bypass"}],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal in n/a","id":"CVE-2007-1540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2007"},"n_packages":0,"n_references":9,"next":{"headline":"Path traversal in n/a","id":"CVE-2007-1541"},"packages":[],"prev":{"headline":"Path traversal in n/a","id":"CVE-2007-1539"},"products":["n/a"],"published":"2007-03-20","related":[{"cvss_score":10,"headline":"Auth bypass in n/a","id":"CVE-2007-3907","kev_date_added":null,"published":"2007-07-19"},{"cvss_score":10,"headline":"Path traversal in n/a","id":"CVE-2007-1329","kev_date_added":null,"published":"2007-03-07"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2018-9246","kev_date_added":null,"published":"2018-06-08"},{"cvss_score":9,"headline":"Auth bypass in n/a","id":"CVE-2007-1437","kev_date_added":null,"published":"2007-03-13"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2008-4077","kev_date_added":null,"published":"2008-09-15"},{"cvss_score":7.5,"headline":"Privilege escalation through CSRF attack on 'setup.pl'","id":"CVE-2024-23831","kev_date_added":null,"published":"2024-02-02"},{"cvss_score":7.5,"headline":"Missing authorization in n/a","id":"CVE-2007-1923","kev_date_added":null,"published":"2007-04-10"}],"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":"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-07","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code and bypass authentication via directory traversal in the login parameter of SQL-Ledger and LedgerSMB.","url":"https://insights.sbomify.com/CVE-2007-1540/"}