matlab-documentation

maintainer vitaliikuzhdin · 1 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads a prebuilt ISO from mathworks.com (the official MathWorks vendor domain), so the host itself is legitimate. However, sha256sums=('SKIP') means there is no integrity verification of the downloaded ISO. More importantly, the package then executes a binary from inside that ISO (./mpm install-doc) during the build phase. Running an unverified binary from a downloaded image is a genuine supply-chain concern: if the ISO were tampered with in transit or the URL were redirected, arbitrary code would execute. The URL path (/doc-iso-${_release,,}-linux) is an unusual non-standard endpoint rather than a versioned release artifact, making it harder to independently verify. The combination of no checksum and execution of a downloaded binary justifies MEDIUM severity. The host being mathworks.com reduces but does not eliminate the risk since HTTPS without pinning and SKIP checksums still allows MITM or server-side substitution.

Triggered rules

MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:15 source=("${_pkgsrc}.iso::https://www.mathworks.com/doc-iso-${_release,,}-linux")
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads a prebuilt ISO from mathworks.com (the official MathWorks vendor domain), so the host itself is legitimate. However, sha256sums=('SKIP') means there is no integrity verification of the downloaded ISO. More importantly, the package then executes a binary from inside that ISO (./mpm install-doc) during the build phase. Running an unverified binary from a downloaded image is a genuine supply-chain concern: if the ISO were tampered with in transit or the URL were redirected, arbitrary code would execute. The URL path (/doc-iso-${_release,,}-linux) is an unusual non-standard endpoint rather than a versioned release artifact, making it harder to independently verify. The combination of no checksum and execution of a downloaded binary justifies MEDIUM severity. The host being mathworks.com reduces but does not eliminate the risk since HTTPS without pinning and SKIP checksums still allows MITM or server-side substitution.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
2
3pkgname="matlab-documentation"
4pkgver=R2025a+25.1.0.2934551
5_release="${pkgver%%+*}"
6_version="${pkgver##*+}"
7pkgrel=1
8epoch=1
9pkgdesc="A high-level language for numerical computation and visualization (documentation)"
10arch=('any')
11url="https://www.mathworks.com/help/install/ug/install-documentation-on-offline-machines.html"
12license=('custom:MATLAB EULA')
13depends=("matlab-release=${_release}")
14_pkgsrc="${pkgname}-${_release}"
15source=("${_pkgsrc}.iso::https://www.mathworks.com/doc-iso-${_release,,}-linux")
16sha256sums=('SKIP')
17
18prepare() {
19 chmod -R ug+Xwr "${srcdir}"
20}
21
22pkgver() {
23 cd "${srcdir}"
24 local rel ver
25 rel="$(sed -n 's:.*<release>\(.*\)</release>.*:\1:p' VersionInfo.xml)"
26 ver="$(sed -n 's:.*<version>\(.*\)</version>.*:\1:p' VersionInfo.xml)"
27 echo "$rel+$ver"
28}
29
30package() {
31 cd "${srcdir}/bin/glnxa64"
32 ./mpm install-doc --matlabroot="/opt/MATLAB/${_release}" --destination="${pkgdir}/opt/MATLAB/${_release}"
33
34 # cd "${pkgdir}"
35 # find . -type f | while read -r filepath; do
36 # if [[ -e "${filepath#.}" ]]; then
37 # mv -v "$filepath" "$filepath.append"
38 # fi
39 # done
40}
41

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 MEDIUM 2
2026-08-02 00:16:08 MEDIUM 2
2026-08-01 00:11:18 MEDIUM 2
2026-07-31 00:14:10 MEDIUM 2
2026-07-30 00:17:23 MEDIUM 2
2026-07-29 00:25:53 MEDIUM 2
2026-07-28 00:07:28 MEDIUM 2
2026-07-27 00:24:32 MEDIUM 2
2026-07-26 00:07:32 MEDIUM 2
2026-07-25 00:13:44 MEDIUM 2
2026-07-24 00:02:28 MEDIUM 2
2026-07-23 00:14:47 MEDIUM 2
2026-07-22 00:29:32 MEDIUM 2
2026-07-21 00:24:15 MEDIUM 2
2026-07-20 00:19:49 MEDIUM 2
2026-07-19 00:17:08 MEDIUM 2
2026-07-18 00:14:48 MEDIUM 2
2026-07-17 00:06:16 MEDIUM 2
2026-07-16 00:05:41 MEDIUM 2
2026-07-15 00:09:25 MEDIUM 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion