# GHSA-M2HR-XVQH-QWFQ: Symlink following in GitOps dry-run validation cleanup can delete files outside the task directory

- Database: GitHub
- Severity: CVSS 6.4 (Medium)
- Published: 2026-10-14
- Modified: 2026-10-14

## Affected versions

- io.apicurio.registry:apicurio-registry-app (Maven): 3.3.0-3.3.1

## Description

## 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](https://github.com/InsidiousLion)).

## References

- https://github.com/Apicurio/apicurio-registry/security/advisories/GHSA-m2hr-xvqh-qwfq

Page: https://cve.now/GHSA-M2HR-XVQH-QWFQ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
