Input validation error in Augeas - CVE-2012-0787

 

Input validation error in Augeas - CVE-2012-0787

Published: August 13, 2020


Vulnerability identifier: #VU45690
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-0787
CWE-ID: CWE-20
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to insufficient validation of user-supplied input. 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.


Affected software

Augeas
Amazon Linux AMI
augeas (Alpine package)

How to mitigate CVE-2012-0787

Install updates from vendor's website.

Augeas - update to 1.0.0
augeas (Alpine package) - update to 0.10.0-r1

External References

Related Security Bulletins