CVE-2026-41046 - qSnapper configName path traversal privilege escalation

CVE-2026-41046 + qSnapper configName path traversal privilege escalation + High + 2026-06-22

One-sentence business risk

A local config traversal can force privileged snapshot operations against attacker-chosen config, risking denial of service or root escalation.

Research notes

  • Root cause: A path traversal attack when using a “configName” parameter in qSnapper before version 1.3.3 allowed a local attacker to use malicious config files for snapper and so cause a denial of service or potentially escalate privileges to root.
  • Affected versions: qSnapper before 1.3.3 configName handling.
  • Fixed / safe versions: qSnapper 1.3.3.
  • Public exploit / PoC signal: public PoC or exploit details are referenced by NVD; use only safe regression tests and do not execute exploit payloads against production.
  • CVSS: 7.3 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H.

Exact vulnerable code pattern

name = manifest.annotations["org.opencontainers.image.title"]
target = os.path.join(download_dir, name)
open(target, "wb").write(layer_bytes)

Fixed / mitigated code pattern

name = pathlib.PurePosixPath(annotation).name
if name in {"", ".", ".."} or any(sep in annotation for sep in ["/", "\\"]):
    raise ValueError("unsafe artifact title")
target = (download_dir / name).resolve()
if not str(target).startswith(str(download_dir.resolve()) + os.sep):
    raise ValueError("path escape")
target.write_bytes(layer_bytes)

Dependency or runtime update:

qsnapper --version || true
rg -n "qSnapper|snapper|polkit|configName" .
# upgrade qSnapper to 1.3.3+

Step-by-step integration guide

  1. Inventory qSnapper in source, lockfiles, SBOMs, CI images, containers, deployment manifests, and managed runtimes.
  2. Upgrade or patch to qSnapper 1.3.3; if no upstream package is available, apply the local guard shown above and track the vendor release as a blocking follow-up.
  3. Replace every vulnerable path-traversal pattern with a fail-closed implementation that validates ownership, bounds, canonical paths, origin/session binding, or parser limits before acting.
  4. Add a regression test that reproduces the advisory shape safely and proves the request is rejected, bounded, or authorized.
  5. Deploy through canary, monitor auth, file, parser, crash, and CI-runner logs, then remove temporary edge blocks only after all runtimes are fixed.

Alternative mitigations

  • Disable the vulnerable feature path, decoder, plugin, runner backend, proxy agent, or route while the patch rolls out.
  • Add WAF/reverse-proxy rules for SQL metacharacters, traversal tokens, unsafe Docker flags, oversized/nested payloads, or unexpected session-origin transitions matching this trigger class.
  • Restrict egress and access to untrusted artifacts, SSH servers, media uploads, workflow execution, and administrative delegation until fixed versions are verified.
  • Rotate credentials and invalidate sessions if logs show the vulnerable path was reachable by untrusted users.

Detection signature

id: cve-2026-41046-qsnapper-configname-path-traversal-privilege-esc
source: NVD
package_or_product: "qSnapper"
affected: "qSnapper before 1.3.3 configName handling"
fixed: "qSnapper 1.3.3"
cvss: "7.3 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
signals:
  - "path-traversal"
  - "CVE-2026-41046"
  - "qSnapper"
action: "upgrade, add a regression test, and verify deploy artifact"

Copy-paste skill

You are remediating CVE-2026-41046 (qSnapper configName path traversal privilege escalation) in this repository.

Produce a reviewer-ready PR or TRIAGE.md. Inventory qSnapper across source, lockfiles, images, CI, deployment manifests, and SBOMs. Apply qSnapper 1.3.3. Replace the vulnerable path-traversal pattern with the fail-closed pattern, add a regression test for the advisory trigger, and document owner, rollout, rollback, and validation evidence. Do not run public exploit PoCs against production or expose secrets in logs.

Keywords, affected tech stack, and revenue tags

  • Keywords: CVE-2026-41046, path-traversal, qSnapper, NVD.
  • Affected tech stack: linux/c++.
  • Revenue tags: sellable_to_fintech, enterprise_blocker, high_priority_sla.

References