{"schemaVersion":3,"id":"CVE-2021-36230","aliases":["CGA-c99w-554c-6p4w","CGA-fqcm-8v32-ghxg","CGA-h7jm-cqwv-q2vx","CGA-qg6v-q73f-2pf8","CGA-rx2c-f4q5-g2wf","CGA-v6jx-2fhj-3944","CGA-xvpq-fq4g-fcfr","CGA-xwx2-mrg8-mp46","CGA-4hjj-6xpx-6vf2","CGA-5hjr-gq5q-pgh8","CGA-63vh-qrhp-2gfv","CGA-7wv7-p72q-f323","CGA-98mg-xgj5-7c9p","CGA-grjq-26x8-w7pv","CGA-hjhx-4cxc-85v8","CGA-hrr8-m2jw-qfcf","CGA-jq28-4g28-m392","CGA-m77f-cvjw-5m4v","CGA-mjxj-67r3-q3q6","CGA-mwrf-pcgr-hpfg","CGA-q592-5m6w-522q","CGA-qm66-qfg8-6qcr","CGA-v6xq-v859-wj8h","CGA-vf57-cgcp-2f4r","CGA-wgcg-g669-6cqq","CGA-xg66-8qwr-x2x5"],"status":"published","duplicateOf":null,"title":null,"description":"HashiCorp Terraform Enterprise releases up to v202106-1 did not properly perform authorization checks on a subset of API requests executed using the run token, allowing privilege escalation to organization owner. Fixed in v202107-1.","dates":{"published":"2021-07-20T20:53:26.000Z","modified":"2024-08-04T00:54:50.714Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00954,"percentile":0.60779,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00954},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00954,"percentile":0.60779}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00954,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00954,"percentile":0.60779}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"chainguard","product":"terraform","name":"terraform","label":"terraform","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform","purlType":"apk","versions":[{"text":"< 1.5.7-r25","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.7-r25","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.10","name":"terraform-1.10","label":"terraform-1.10","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.10","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.10-compat","name":"terraform-1.10-compat","label":"terraform-1.10-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.10-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.10-local-provider-config","name":"terraform-1.10-local-provider-config","label":"terraform-1.10-local-provider-config","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.10-local-provider-config","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.11","name":"terraform-1.11","label":"terraform-1.11","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.11","purlType":"apk","versions":[{"text":"< 1.11.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.2-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.11-compat","name":"terraform-1.11-compat","label":"terraform-1.11-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.11-compat","purlType":"apk","versions":[{"text":"< 1.11.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.2-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.11-local-provider-config","name":"terraform-1.11-local-provider-config","label":"terraform-1.11-local-provider-config","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.11-local-provider-config","purlType":"apk","versions":[{"text":"< 1.11.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.2-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.9","name":"terraform-1.9","label":"terraform-1.9","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.9","purlType":"apk","versions":[{"text":"< 1.9.8-r9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.8-r9","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.9-compat","name":"terraform-1.9-compat","label":"terraform-1.9-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.9-compat","purlType":"apk","versions":[{"text":"< 1.9.8-r9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.8-r9","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-1.9-local-provider-config","name":"terraform-1.9-local-provider-config","label":"terraform-1.9-local-provider-config","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-1.9-local-provider-config","purlType":"apk","versions":[{"text":"< 1.9.8-r9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.8-r9","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terraform-local-provider-config","name":"terraform-local-provider-config","label":"terraform-local-provider-config","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terraform-local-provider-config","purlType":"apk","versions":[{"text":"< 1.5.7-r25","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.7-r25","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terragrunt","name":"terragrunt","label":"terragrunt","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terragrunt","purlType":"apk","versions":[{"text":"< 0.76.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.76.1-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"terragrunt-docs","name":"terragrunt-docs","label":"terragrunt-docs","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/terragrunt-docs","purlType":"apk","versions":[{"text":"< 0.76.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.76.1-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"terraform","name":"terraform","label":"terraform","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/terraform","purlType":"apk","versions":[{"text":"< 1.5.7-r25","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.7-r25","eol":null,"hubHref":null},{"vendor":"wolfi","product":"terraform-local-provider-config","name":"terraform-local-provider-config","label":"terraform-local-provider-config","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/terraform-local-provider-config","purlType":"apk","versions":[{"text":"< 1.5.7-r25","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.7-r25","eol":null,"hubHref":null},{"vendor":"wolfi","product":"terragrunt","name":"terragrunt","label":"terragrunt","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/terragrunt","purlType":"apk","versions":[{"text":"< 0.76.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.76.1-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"terragrunt-docs","name":"terragrunt-docs","label":"terragrunt-docs","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/terragrunt-docs","purlType":"apk","versions":[{"text":"< 0.76.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.76.1-r0","eol":null,"hubHref":null},{"vendor":"hashicorp","product":"terraform","name":"terraform","label":"terraform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 202107-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 202107-1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"terraform","label":"Hashicorp Terraform","category":"app"}},"hubHref":"/vendor/hashicorp/terraform"}],"affectedCount":18,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.hashicorp.com/blog/category/terraform/","label":"www.hashicorp.com/blog/category/terraform/","hostname":"www.hashicorp.com","tags":["X Refsource MISC","Advisory","Vendor Advisory"]},{"url":"https://discuss.hashicorp.com/t/hcsec-2021-18-terraform-enterprise-allowed-privilege-escalation-via-run-token/27070","label":"discuss.hashicorp.com/t/…","hostname":"discuss.hashicorp.com","tags":["X Refsource MISC","Advisory","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36230","label":"nvd.nist.gov/vuln/detail/CVE-2021-36230","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-326V-M42R-475X","CGA-33H6-FPJ3-7R8V","CGA-59M7-QWW6-37XM","CGA-5V8P-V75R-W84F","CGA-7VW3-2F9Q-8RCW","CGA-CPX4-JJV4-CC24"]},"timeline":[{"kind":"published","date":"2021-07-20T20:53:26.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T00:54:50.714Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T02:19:51.399Z","stale":false,"partial":false}}