漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
tar-rs: unpack_in can chmod arbitrary directories by following symlinks
Vulnerability Description
tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to treat the symlink target as a valid existing directory — and subsequently apply chmod to it. This allows an attacker to modify the permissions of arbitrary directories outside the extraction root. This issue has been fixed in version 0.4.45.
CVSS Information
N/A
Vulnerability Type
CWE-61
Vulnerability Title
tar-rs 安全漏洞
Vulnerability Description
tar-rs是Alex Crichton个人开发者的一个Rust语言的tar归档文件读写库。 tar-rs 0.4.44及之前版本存在安全漏洞,该漏洞源于unpack_dir函数处理符号链接时存在缺陷,可能导致任意目录权限修改。
CVSS Information
N/A
Vulnerability Type
N/A