{"id":"CVE-2026-145313","state":"PUBLISHED","title":"agentgateway: Dynamic backend loopback and link-local restriction bypassed through CONNECT in route mode","description":"In agentgateway 1.7.0, including its 1.7.0 pre-releases, the config.backend.allowDynamicLoopback setting was not enforced for CONNECT requests on listeners that set frontendPolicies.connect.mode to route. When this setting is false, dynamic backends must not connect to loopback or link-local addresses, but a CONNECT request routed to a dynamic backend skipped the check. A client that can send CONNECT requests through such a route can open a tunnel to services listening on the gateway host's loopback interface, or to link-local addresses, for example with CONNECT 127.0.0.1:1234. Deployments are affected only if a listener enables CONNECT in route mode, a route that accepts CONNECT uses a dynamic backend, and untrusted clients can send CONNECT requests through that route. Versions before 1.7.0 do not have the allowDynamicLoopback restriction.","publishedAt":"2026-12-04T19:04:38.412Z","updatedAt":"2026-12-04T19:04:38.412Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"Akrites"},"assigner":"Akrites","products":["agentgateway agentgateway"],"affected":[{"vendor":"agentgateway","product":"agentgateway","defaultStatus":"unaffected","versions":[{"version":"1.7.0-alpha.1","status":"affected","lessThan":"1.8.0","versionType":"semver"}],"repo":"https://github.com/agentgateway/agentgateway"}],"references":["https://github.com/agentgateway/agentgateway/security/advisories/GHSA-8qfj-9cv9-8898","https://github.com/agentgateway/agentgateway/pull/4528","https://github.com/agentgateway/agentgateway/releases/tag/v1.8.0"],"weaknesses":["CWE-918"],"ingestedAt":"2026-12-04T19:18:05.845Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/145xxx/CVE-2026-145313.json","commit":"54d9956e58927bb2e234798e3c42bdd5ce28d687","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-145313","state":"PUBLISHED","datePublished":"2026-12-04T19:04:38.412Z","dateUpdated":"2026-12-04T19:04:38.412Z","assignerShortName":"Akrites","assignerOrgId":"7fefd608-56a6-419f-a002-fd8543c0710a","dateReserved":"2026-12-04T18:42:49.847Z"},"containers":{"cna":{"title":"agentgateway: Dynamic backend loopback and link-local restriction bypassed through CONNECT in route mode","descriptions":[{"lang":"en","value":"In agentgateway 1.7.0, including its 1.7.0 pre-releases, the config.backend.allowDynamicLoopback setting was not enforced for CONNECT requests on listeners that set frontendPolicies.connect.mode to route. When this setting is false, dynamic backends must not connect to loopback or link-local addresses, but a CONNECT request routed to a dynamic backend skipped the check. A client that can send CONNECT requests through such a route can open a tunnel to services listening on the gateway host's loopback interface, or to link-local addresses, for example with CONNECT 127.0.0.1:1234. Deployments are affected only if a listener enables CONNECT in route mode, a route that accepts CONNECT uses a dynamic backend, and untrusted clients can send CONNECT requests through that route. Versions before 1.7.0 do not have the allowDynamicLoopback restriction."}],"affected":[{"vendor":"agentgateway","product":"agentgateway","defaultStatus":"unaffected","versions":[{"version":"1.7.0-alpha.1","status":"affected","lessThan":"1.8.0","versionType":"semver"}],"repo":"https://github.com/agentgateway/agentgateway"}],"references":[{"url":"https://github.com/agentgateway/agentgateway/security/advisories/GHSA-8qfj-9cv9-8898"},{"url":"https://github.com/agentgateway/agentgateway/pull/4528"},{"url":"https://github.com/agentgateway/agentgateway/releases/tag/v1.8.0"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseSeverity":"MEDIUM","baseScore":4.3,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"CWE-918 Server-Side Request Forgery (SSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"Akrites","orgId":"7fefd608-56a6-419f-a002-fd8543c0710a","dateUpdated":"2026-12-04T19:04:38.412Z"},"datePublic":"2026-12-01T00:03:58.000Z","workarounds":[{"lang":"en","value":"Do not enable CONNECT in route mode (frontendPolicies.connect.mode: route) on listeners that untrusted clients can reach, or do not use a dynamic backend on routes that accept CONNECT requests. This workaround is an AI-generated suggestion and has not been verified."}],"solutions":[{"lang":"en","value":"Upgrade to agentgateway 1.8.0 or later."}],"credits":[{"lang":"en","value":"Zachariah Mithani (AploSec)","type":"finder"},{"lang":"en","value":"fwittreverce","type":"finder"},{"lang":"en","value":"Leo Ruocco, Agentic Thinking (agenticbench.org)","type":"finder"},{"lang":"en","value":"John Howard","type":"remediation developer"}],"x_generator":{"engine":"cvelib 1.8.0"}}}}}