CVE-2012-0787
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in. Limited direct impact.
- Exploit odds
- 0.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.4% in the next 30 days (EPSS).
- Severity: 3.7 LOW (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.4% · EPSS, next 30 days
- Record status
- Modified
Affected
- Redhat Enterprise Linux 6.0
- Augeas ≤ 0.10.0
- Augeas 0.0.1
- Augeas 0.0.2
- Augeas 0.0.3
- Augeas 0.0.4
- Augeas 0.0.5
- Augeas 0.0.6
Attack profile CVSS 2.0 · 3.7
- Attack vector
- Local
- Complexity
- High
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:L/AC:H/Au:N/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2012-0787.md and follow it. Check whether this project is affected by CVE-2012-0787. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://rhn.redhat.com/errata/RHSA-2013-1537.html
- http://secunia.com/advisories/55811
- https://github.com/hercules-team/augeas/commit/b8de6a8c
- http://rhn.redhat.com/errata/RHSA-2013-1537.html
- http://secunia.com/advisories/55811
- https://github.com/hercules-team/augeas/commit/b8de6a8c
References
- http://augeas.net/news.html
- http://rhn.redhat.com/errata/RHSA-2013-1537.html
- http://secunia.com/advisories/55811
- https://bugzilla.redhat.com/show_bug.cgi?id=772261
- https://github.com/hercules-team/augeas/commit/b8de6a8c
- http://augeas.net/news.html
- http://rhn.redhat.com/errata/RHSA-2013-1537.html
- http://secunia.com/advisories/55811
- https://bugzilla.redhat.com/show_bug.cgi?id=772261
- https://github.com/hercules-team/augeas/commit/b8de6a8c