Skip to main content
Menu
Advisories

Symlink following in GitOps dry-run validation cleanup can delete files outside the task directory

GHSA-M2HR-XVQH-QWFQPublished Updated GitHub

Description

When GitOps storage and dry-run validation are enabled, the Registry checks out a git reference into a per-task directory and recursively deletes it after validation. The cleanup routine determined whether an entry was a directory using a link-following check, so a symbolic link contained in the validated git content could be treated as a directory. Cleanup could then traverse the link and recursively delete files outside the task directory that the Registry process can access — potentially affecting other validation tasks, GitOps workspace data, or other files on mounted volumes, and causing validation or synchronization failures.

Exploitation requires GitOps storage and dry-run validation to be enabled, an administrator or authorized workflow to initiate validation over content containing a crafted symlink, and the Registry process to have access to the link target.

Workarounds / Mitigations

Remediation: upgrade to 3.3.3 (released 2026-09-08) or later. The fix was first released in 3.3.2 (released 2026-08-27); 3.3.3 adds related hardening of the GitOps dry-run validation path.

Workarounds (if you can't upgrade immediately):

  • Disable GitOps dry-run validation, or only validate git references from fully trusted sources.
  • Ensure the Registry process has least-privilege filesystem access — scoped to the GitOps workspace only — so a cleanup that escapes the task directory can't reach anything important.

Credits

This issue was reported by Abi Nandhan (@InsidiousLion).

Affected versions

References

GitHub · Apicurio/apicurio-registry