{"id":"CVE-2022-31683","aliases":["CVE-2022-31683","GHSA-5jp2-vwrj-99rf","BIT-CONCOURSE-2022-31683"],"related":[],"kind":"vulnerability","state":"published","title":"Team scope authorization bypass when Post/Put request with :team_name in body, allows HTTP parameter pollution","summary":"Concourse (7.x.y prior to 7.8.3 and 6.x.y prior to 6.7.9) contains an authorization bypass issue. A Concourse user can send a request with body including :team_name=team2 to bypass team scope check to gain access to certain resources belong to any other team.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Concourse (7.x.y prior to 7.8.3 and 6.x.y prior to 6.7.9) contains an authorization bypass issue. A Concourse user can send a request with body including :team_name=team2 to bypass team scope check to gain access to certain resources belong to any other team.","source":"cvelist"},{"lang":"en","text":"### Impact\nFor some Post/Put Concourse endpoint containing `:team_name` in the URL, a Concourse user can send a request with body including `:team_name=team2` to bypass team scope check to gain access to certain resources belong to any other team. The user only needs a valid user session and belongs to team2.\n\nExploitable endpoints:\n```\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/jobs/:job_name/builds/:build_name\", Method: \"POST\", Name: RerunJobBuild},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/jobs/:job_name/pause\", Method: \"PUT\", Name: PauseJob},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/jobs/:job_name/unpause\", Method: \"PUT\", Name: UnpauseJob},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/jobs/:job_name/schedule\", Method: \"PUT\", Name: ScheduleJob},\n\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/pause\", Method: \"PUT\", Name: PausePipeline},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/unpause\", Method: \"PUT\", Name: UnpausePipeline},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/expose\", Method: \"PUT\", Name: ExposePipeline},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/hide\", Method: \"PUT\", Name: HidePipeline},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/rename\", Method: \"PUT\", Name: RenamePipeline},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/archive\", Method: \"PUT\", Name: ArchivePipeline},\n\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/resources/:resource_name/versions/:resource_config_version_id/enable\", Method: \"PUT\", Name: EnableResourceVersion},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/resources/:resource_name/versions/:resource_config_version_id/disable\", Method: \"PUT\", Name: DisableResourceVersion},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/resources/:resource_name/versions/:resource_config_version_id/pin\", Method: \"PUT\", Name: PinResourceVersion},\n{Path: \"/api/v1/teams/:team_name/pipelines/:pipeline_name/resources/:resource_name/unpin\", Method: \"PUT\", Name: UnpinResource},\n\t\n{Path: \"/api/v1/teams/:team_name/artifacts\", Method: \"POST\", Name: CreateArtifact},\n```\n\n### Steps to reproduce\n\n1. Set up a Concourse deployment with team 1 (with pipeline 1) and team 2. User is in team 2 but not team 1.\n2. Login as user to team 2.\n```\nfly -t ci login -n team2 -u user -p password\n```\n3. Try pausing pipeline 1 in team 1 using fly. Verify the command output is `pipeline 'pipeline1' not found`.\n```\nfly -t ci pause-pipeline -p pipeline1\n```\n\n\n4. Send a customized request through `fly curl` command intend to pause pipeline 1 again. \n```\nfly -t ci curl /api/v1/teams/team1/pipelines/pipeline1/pause -- -X PUT -d \":team_name=team2\" -H \"Content-type: application/x-www-form-urlencoded\"\n```\n5. pipeline 1 in team 1 will be paused.\n\nIn step 4, the parameter pollution would allow an user from any team to pause a pipeline that belongs to other team.\n\n### Patches\nConcourse [v6.7.9](https://github.com/concourse/concourse/releases/tag/v6.7.9) and [v7.8.3](https://github.com/concourse/concourse/releases/tag/v7.8.3) were both released with a fix on October 12, 2022.\n\nInstead of using [`FormValue`](https://pkg.go.dev/net/http#Request.FormValue) to parse team_name in the request, where allows body parameters to take precedence over URL query string values, both patch versions are now using `URL.Query().Get()` over multiple scope handlers to prevent the parameter pollution.\n\n### Workarounds\nNo known workarounds for existing versions.\n\n### References\n * https://github.com/concourse/concourse/pull/8566: PR with the fix\n\n### For more information\nIf you have any questions or comments about this advisory, you may reach us privately at [security@concourse-ci.org](mailto:security@concourse-ci.org).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Concourse (7.xy anterior a 7.8.3 y 6.xy anterior a 6.7.9) contiene un problema de omisión de autorización. Un usuario de Concourse puede enviar una solicitud con un cuerpo que incluya :team_name=team2 para omitir la verificación del alcance del equipo y obtener acceso a ciertos recursos que pertenecen a cualquier otro equipo.","source":"nvd"}],"published":"2022-10-19T20:26:05.000Z","modified":"2026-09-08T08:45:58.247Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-639","CWE-863"],"affected":[{"ranges":[{"version":"Concourse (7.x.y prior to 7.8.3 and 6.x.y prior to 6.7.9)","status":"affected"}],"product":"Concourse","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.7.9"}],"ecosystem":"Go","package":"github.com/concourse/concourse","purl":"pkg:golang/github.com/concourse/concourse","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.8.3"}],"ecosystem":"Go","package":"github.com/concourse/concourse","purl":"pkg:golang/github.com/concourse/concourse","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.0.0","fixed":"6.7.9"},{"status":"affected","introduced":"7.0.0","fixed":"7.8.3"}],"vendor":"pivotal_software","product":"concourse","cpe":"cpe:2.3:a:pivotal_software:concourse:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.7.9"},{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.8.3"}],"ecosystem":"Bitnami","package":"concourse","purl":"pkg:bitnami/concourse","source":"bitnami"}],"references":[{"url":"https://github.com/concourse/concourse/security/advisories/GHSA-5jp2-vwrj-99rf","tags":["advisory","exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31683","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/concourse/concourse/pull/8566","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/concourse/concourse/pull/8580","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/concourse/concourse/commit/57e06711b0d861775a5a6bd078a34abeb0e2638e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/concourse/concourse/commit/ba885834d9bcbb9d1ccb9964faa7af0e78a72205","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/concourse/concourse","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/concourse/concourse/releases/tag/v6.7.9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/concourse/concourse/releases/tag/v7.8.3","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-16T13:55:04.393Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31683","url":"https://www.cve.org/CVERecord?id=CVE-2022-31683","licence":"CVE Terms of Use","modified":"2025-04-16T13:57:09.574Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5jp2-vwrj-99rf","url":"https://github.com/advisories/GHSA-5jp2-vwrj-99rf","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:19.350Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31683","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31683","licence":"Public domain","modified":"2026-06-17T04:46:03.390Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-CONCOURSE-2022-31683","url":"https://osv.dev/vulnerability/BIT-CONCOURSE-2022-31683","licence":"Apache-2.0","modified":"2026-09-08T08:45:58.247Z"}],"updatedAt":"2026-11-25T22:58:17.686Z","epss":{"score":0.00484,"percentile":0.43338,"date":"2026-12-01T12:00:22.000Z"}}