Security Resilience

CVE-2026-23986

Copier-Org Copier ≤ 9.11.2

Public PoC
Published
21 January 2026
Modified
02 February 2026
Patch / advisory
CVSS Score v4 6.9
Click a component to see what it means
Raw vectorCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0028 13th percentile
Risk Priority 35 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-23986 is a medium-severity UNIX Symbolic Link (Symlink) Following (CWE-61) vulnerability in Copier-Org Copier. Its CVSS base score is 6.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Escape to Host (T1611); ranked at the 13th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-23986 is a vulnerability in Copier, a library and CLI application for rendering project templates, affecting versions prior to 9.11.2. The flaw allows a supposedly "safe" template—one that avoids unsafe features like custom Jinja extensions requiring the --UNSAFE or --trust flags—to write files to arbitrary directories outside the specified destination path. This occurs through the use of a directory symlink, the _preserve_symlinks: true option, and a generated directory structure whose rendered path resolves inside the symlinked directory, linked to CWE-61 (symlink following). The vulnerability carries a CVSS v3.1 base score of 7.1 (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H).

An attacker with local access can exploit this by crafting a malicious template and tricking a user into generating a project from it, as Copier presents it as safe without triggering warnings. No privileges are needed beyond the user's own write permissions, but user interaction is required to run the copier command on the template. Successful exploitation enables overwriting arbitrary files on the system, potentially causing data corruption or disruption depending on the targeted locations and permissions.

The vulnerability is addressed in Copier version 9.11.2, which patches the issue. Security practitioners should upgrade to this version or later. Relevant resources include the GitHub security advisory at https://github.com/copier-org/copier/security/advisories/GHSA-4fqp-r85r-hxqh, release notes at https://github.com/copier-org/copier/releases/tag/v9.11.2, and the patching commit at https://github.com/copier-org/copier/commit/b3a7b3772d17cf0e7a4481978188c9f536c8d8f6.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Copier is a library and CLI app for rendering project templates. Prior to version 9.11.2, Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use unsafe features like custom Jinja extensions which…

more

would require passing the `--UNSAFE,--trust` flag. As it turns out, a safe template can currently write to arbitrary directories outside the destination path by using directory a symlink along with `_preserve_symlinks: true` and a generated directory structure whose rendered path is inside the symlinked directory. This way, a malicious template author can create a template that overwrites arbitrary files (according to the user's write permissions), e.g., to cause havoc. Version 9.11.2 patches the issue.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1611 Escape to Host Privilege Escalation
Adversaries may break out of a container or virtualized environment to gain access to the underlying host.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
T1543.002 Systemd Service Persistence
Adversaries may create or modify systemd services to repeatedly execute malicious payloads as part of persistence.
T1548 Abuse Elevation Control Mechanism Privilege Escalation
Adversaries may circumvent mechanisms designed to control privilege elevation to gain higher-level permissions.
T1548.001 Setuid and Setgid Privilege Escalation
An adversary may abuse configurations where an application has the setuid or setgid bits set in order to get code running in a different (and possibly more privileged) user’s context.
T1565 Data Manipulation Impact
Adversaries may insert, delete, or manipulate data in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-23968Same product: Copier-Org Copier
CVE-2026-34730Same product: Copier-Org Copier
CVE-2026-34726Same product: Copier-Org Copier
CVE-2026-35525Shared CWE-61
CVE-2024-34015Shared CWE-61
CVE-2025-33225Shared CWE-61
CVE-2026-13218Shared CWE-61
CVE-2026-43570Shared CWE-61
CVE-2026-21916Shared CWE-61
CVE-2026-115392Shared CWE-61

Affected Assets

copier-org
copier
≤ 9.11.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 2 hardening rules · 2 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V5.2.5

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Access enforcement must resolve the actual target of any file reference and apply authorizations to it, directly stopping symlink traversal to unauthorized objects.

Information-flow enforcement on file operations must follow the resolved target rather than the link name, blocking unauthorized data movement via symlinks.

Least-privilege restrictions on the directories that may contain links or targets reduce the set of files an attacker can reach even if a symlink is followed.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent introduction of symlink-following flaws in file-handling code.

ID.RA-01 partial match
blocks

Vulnerability identification can discover existing symlink issues but does not prevent or remediate them in code.

PR.AA-05 partial match
blocks

Least-privilege access policies can limit damage from symlink attacks but do not address the coding flaw itself.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect symlink-following vulnerabilities before deployment, covering most of the weakness.

prevents

Education and training for technical teams can raise awareness of symlink-following risks so developers handle file paths defensively, but this is a specialized implementation defect that general awareness rarely covers and the practice is fallible, so only a minority of instances are prevented.

prevents

Secure-coding standards mandate explicit symlink checks and safe open patterns, fully mitigating CWE-61.

finds

A.8.8's reach is DISCLOSURE-based (third-party components with published advisories), and CWE-61 does commonly surface as CVEs (multiple examples listed), so the disclosed share is findable — but most symlink-following bugs are implementation defects in first-party code that never appear in any advisory, capping the rung at `partial`.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

Oracle Linux 8 (1 rule)
  • V-248577 OL 8 must enable kernel parameters to enforce Discretionary Access Control (DAC) on symlinks. blocks CWE-61

References