Vulnerabilities

Vulnerability · GHSA-jf74-f69g-hcj9

file_server exposes private keys when the data directory falls back to ./caddy

Published Nov 4, 2026 · catalog updated Nov 4, 2026 · file_server exposes private keys

Last checked Nov 4, 2026. A connected source was read within the last 7 days.

Open the advisory

Exploitation likelihood is not on this record for GHSA-jf74-f69g-hcj9. A missing EPSS score is not a low risk. Compare file_server exposes private keys with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (file_server exposes private keys).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
Medium—
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Awaiting synchronization with FIRST
Remediation
Version ranges on file
Affected products
go github.com/caddyserver/caddy/v2

### Summary When neither nor is set, returns , so certificates, private keys and the local CA keys live under the working directory. and any rooted at serve them to anonymous clients when started from that directory. ### Details ( ) falls back to the relative path when no home directory can be found (some containers, systemd units without a home, CI runners). serves the working directory by default ( defaults to the current directory), and so does a whose root is . FrankenPHP's command has the same default root. Fix: adds the absolute form of the data directory to when is relative. This covers the Caddyfile, JSON configs and the command, the same way the Caddyfile is already hidden. Patch: public PR from . Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-JBWWW7FF. ### Proof of concept The same happens with this Caddyfile, run from without : ### Impact Anonymous clients download TLS private keys and the local CA's root and intermediate keys, which lets them impersonate the site or mint certificates trusted by clients that installed the local CA. Only deployments without and that serve their working directory are affected.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • go github.com/caddyserver/caddy/v2<= 2.11.7

How to fix GHSA-jf74-f69g-hcj9

  • Upgrade

    GHSA-jf74-f69g-hcj9 lists a fix boundary at 2.11.7. Compare the installed build with that boundary before you change production.

  • Version check

    Affected <= 2.11.7

  • Advisory

    Open the inventory_github record and follow its fix.

  • Official advisories

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for GHSA-jf74-f69g-hcj9. A missing EPSS score is not a low risk. Compare file_server exposes private keys with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with <= 2.11.7. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-552: Files or Directories Accessible to External Parties. EPSS is not on this record yet. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Technology hubs

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Nov 4, 2026 · Maintainer security tabs

    Detected

    ### Summary When neither nor is set, returns , so certificates, private keys and the local CA keys live under the working directory. and any rooted at serve them to anonymous clients when started from that directory. ### Details ( ) falls back to the relative path when no home directory can be found (some containers, systemd units without a home, CI runners). serves the working directory by defaul

  2. Nov 4, 2026 · Maintainer security tabs

    Updated

    ### Summary When neither nor is set, returns , so certificates, private keys and the local CA keys live under the working directory. and any rooted at serve them to anonymous clients when started from that directory. ### Details ( ) falls back to the relative path when no home directory can be found (some containers, systemd units without a home, CI runners). serves the working directory by defaul

Sources

  • Maintainer security tabsVendor advisoryGHSA-jf74-f69g-hcj9

    ### Summary When neither nor is set, returns , so certificates, private keys and the local CA keys live under the working directory. and any rooted at serve them to anonymous clients when started from that directory. ### Details ( ) falls back to the relative path when no home directory can be found (some containers, systemd units without a home, CI runners). serves the working directory by defaul

    github.com

Freshness

Last verified in this catalog Nov 4, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • Maintainer security tabsNov 4, 2026