Symlink Following Affecting typst package, versions <0.14.2-r2


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-TYPST-15814169
  • published30 Mar 2026
  • disclosed20 Mar 2026

Introduced: 20 Mar 2026

NewCVE-2026-33056  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade Chainguard typst to version 0.14.2-r2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream typst package and not the typst package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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 Base Scores

version 3.1