diff --git a/advisories/RUSTSEC-2025-0168.html b/advisories/RUSTSEC-2025-0168.html new file mode 100644 index 000000000..cb79a4205 --- /dev/null +++ b/advisories/RUSTSEC-2025-0168.html @@ -0,0 +1,294 @@ + + + + + + + +RUSTSEC-2025-0168: zip: Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write › RustSec Advisory Database + + + + + + + + + +
+
+

+ + + RustSec logo + +

+ + + +
+ +
+ +
+
+ + + History ⋅ + Edit ⋅ + JSON (OSV) + + + +
+

+ + RUSTSEC-2025-0168 + +

+

Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write

+
+
+ + + +
+
Reported
+
+ +
+ +
Issued
+
+ + +
+ +
Package
+
+ + + zip + + (crates.io) + + + +
+ +
Type
+
+ + Vulnerability + +
+ + + + +
Keywords
+
+ + #file-overwrite + + #symlink + + #path-traversal + +
+ + + +
Aliases
+
+ +
+ + + +
References
+
+ +
+ + + + + +
CVSS Score
+
7.3 + HIGH +
+ +
CVSS Details
+
+
+ +
Attack Complexity
+
High
+ +
Attack Requirements
+
None
+ +
Attack Vector
+
Network
+ +
Privileges Required
+
Low
+ +
Availability Impact to the Subsequent System
+
High
+ +
Confidentiality Impact to the Subsequent System
+
High
+ +
Integrity Impact to the Subsequent System
+
High
+ +
User Interaction
+
None
+ +
Availability Impact to the Vulnerable System
+
None
+ +
Confidentiality Impact to the Vulnerable System
+
Low
+ +
Integrity Impact to the Vulnerable System
+
High
+ +
+
+ +
CVSS Vector
+ + +
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H
+ + + + +
Patched
+
+ +
    + +
  • >=2.3.0
  • + +
+ +
+ + +
Unaffected
+
+
    + +
  • <1.3.0
  • + +
+
+ + + + + + + +
+ + + +
+
Affected Functions
+
Version
+ +
zip::read::ZipArchive::extract
+
+
    + +
  • <2.3.0, >=1.3.0
  • + +
+
+ +
zip::unstable::stream::ZipStreamReader::extract
+
+
    + +
  • <2.3.0, >=1.3.0
  • + +
+
+ +
+ + + + +

Description

+

In the archive extraction routine of affected versions of the zip crate, symbolic links earlier in the archive are allowed to be used for later files in the archive without validation of the final canonicalized path, allowing maliciously crafted archives to overwrite arbitrary files in the file system when extracted.

+

For more details, see the GitHub-hosted security advisory: https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8

+ + +

Advisory available under CC-BY-4.0 + license. + + + + + Source: https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8 + + +

+
+
diff --git a/advisories/RUSTSEC-2025-0169.html b/advisories/RUSTSEC-2025-0169.html new file mode 100644 index 000000000..900663bd2 --- /dev/null +++ b/advisories/RUSTSEC-2025-0169.html @@ -0,0 +1,230 @@ + + + + + + + +RUSTSEC-2025-0169: stainless_ffmpeg: `FormatContext` stream accessors can cause undefined behavior from safe code › RustSec Advisory Database + + + + + + + + + +
+
+

+ + + RustSec logo + +

+ + + +
+ +
+ +
+
+ + + History ⋅ + Edit ⋅ + JSON (OSV) + + + +
+

+ + RUSTSEC-2025-0169 + +

+

FormatContext stream accessors can cause undefined behavior from safe code

+
+
+ + + +
+
Reported
+
+ +
+ +
Issued
+
+ + +
+ +
Package
+
+ + + stainless_ffmpeg + + (crates.io) + + + +
+ +
Type
+
+ + INFO + Unsound + +
+ + + + + + + + +
References
+
+ +
+ + + + + + + +
Patched
+
+ +
    + +
  • >=0.6.0
  • + +
+ +
+ + + + + + + + +
+ + + +
+
Affected Functions
+
Version
+ +
stainless_ffmpeg::format_context::FormatContext::get_codec_id
+
+
    + +
  • <0.6.0
  • + +
+
+ +
stainless_ffmpeg::format_context::FormatContext::get_stream
+
+
    + +
  • <0.6.0
  • + +
+
+ +
stainless_ffmpeg::format_context::FormatContext::get_stream_type
+
+
    + +
  • <0.6.0
  • + +
+
+ +
stainless_ffmpeg::format_context::FormatContext::get_stream_type_name
+
+
    + +
  • <0.6.0
  • + +
+
+ +
+ + + + +

Description

+

Affected versions of stainless_ffmpeg exposed several safe public methods on FormatContext that accepted a stream_index parameter and used it in unsafe pointer operations without checking whether the index was valid. These methods performed pointer arithmetic and dereferenced the resulting stream pointer. Safe callers could pass a negative or out-of-bounds stream_index, which could cause out-of-bounds pointer access and undefined behavior from safe Rust code.

+

The issue was fixed in version 0.6.0 by marking the affected stream accessor methods as unsafe and documenting that callers must ensure stream_index is a valid stream index.

+ + +

Advisory available under CC0-1.0 + license. + + +

+
+
diff --git a/advisories/index.html b/advisories/index.html index bb0e94a93..4fd05a3f0 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -64,6 +64,46 @@