Skip to content

Fix CVE-2026-56712: SSRF in File and Path URL downloads - #3225

Open
SaiTeja-Erukude wants to merge 1 commit into
replicate:mainfrom
SaiTeja-Erukude:fix/CVE-2026-56712
Open

SaiTeja-Erukude wants to merge 1 commit into
replicate:mainfrom
SaiTeja-Erukude:fix/CVE-2026-56712

Conversation

@SaiTeja-Erukude

Copy link
Copy Markdown

Addresses CVE-2026-56712, where user-controlled File and Path input URLs could access loopback, private, and metadata services through unchecked downloads and redirects.

Route downloads through a shared helper that validates IP literals and every DNS answer, normalizes IPv4-mapped IPv6 addresses, and rejects blocked destinations. Pin connections to validated addresses while preserving the original hostname for HTTP and TLS verification. Disable environment proxies and explicitly reject redirects.

Preserve lazy streaming, the existing timeout, data URLs, and local paths. Close responses and remove partial temporary files when downloads fail.

Technical write-up and PoC: CVE-2026-56712-cog-ssrf.

Validation:

  • 54 tests passed; 16 POSIX Path cases skipped and two existing Path tests deselected on Windows.
  • All three local PoC payloads were blocked with zero listener requests using the Windows Path adapter.
  • The installed vulnerable version reproduced all three cases as a control.
  • Ruff and formatting checks passed.

Full Linux/coglet service verification remains outstanding.

@SaiTeja-Erukude
SaiTeja-Erukude requested a review from a team as a code owner November 9, 2026 05:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant