haitam lazaar / lazaarsec
CVE-2026-1003107.3high[patched]

Local Privilege Escalation via LIBEXTRACTOR_PREFIX Untrusted Search Path

TARGET ECOSYSTEM / VENDORGNU Project
AFFECTED PRODUCTlibextractor (< 1.16)
CWE CLASSIFICATIONCWE-426: Untrusted Search Path
PUBLISHED / DISCLOSED DATE2026-09-25
ADVISORY / CNAVulnCheck Advisory (CNA)↗
PROOF OF CONCEPTView PoC / Repository↗
UPSTREAM PATCH / COMMIT

CVSS v3.1 Vector Breakdown

Base Score: 7.0 / 10
Vector String:CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector(AV)
LocalL
Complexity(AC)
HighH
Privileges(PR)
LowL
Interaction(UI)
NoneN
Scope(S)
UnchangedU
Confidentiality(C)
HighH
Integrity(I)
HighH
Availability(A)
HighH
Technical Advisory & Impact AnalysisDISCLOSURE DOSSIER

Summary

GNU libextractor loads plugins from an untrusted search path specified by the LIBEXTRACTOR_PREFIX environment variable without proper privilege checks. Because it uses getenv() instead of secure_getenv(), this environment variable is not stripped when a process runs with elevated privileges.

Impact & Exploitation

A local attacker can exploit this by setting LIBEXTRACTOR_PREFIX to a directory containing a malicious shared object (.so) plugin that executes arbitrary code with elevated privileges when loaded by a setuid or setgid program linking against libextractor.

  • Primary Impact: Local Privilege Escalation (LPE) to root.
  • CNA: VulnCheck
  • Fixed In: GNU libextractor v1.16