Insecure permissions in Cargo



Published: 2023-08-03 | Updated: 2023-08-04
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-38497
CWE-ID CWE-276
Exploitation vector Local
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Cargo
/

Vendor The Rust Programming Language

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Incorrect default permissions

EUVDB-ID: #VU78930

Risk: Low

CVSSv3.1: 6.4 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P/RL:O/RC:C]

CVE-ID: CVE-2023-38497

CWE-ID: CWE-276 - Incorrect Default Permissions

Exploit availability: Yes

Description

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

The vulnerability exists due to Cargo does not respect the umask when extracting crate archives on UNIX-like systems. A local user can change the source code compiled and executed by the current user.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Cargo: 0.0.1-pre - homu-tmp

External links

http://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87
http://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###