{"schemaVersion":3,"id":"CVE-2024-12539","aliases":["UBUNTU-CVE-2024-12539","CGA-68w8-pjmw-ccxc","CGA-fxxx-wfmg-q967","CGA-gg58-r2q5-5c59","CGA-vg7h-62f9-3699","GHSA-5mpw-4546-2wcr","BIT-elasticsearch-2024-12539"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered where improper authorization controls affected certain queries that could allow a malicious actor to circumvent Document Level Security in Elasticsearch and get access to documents that their roles would normally not allow.","dates":{"published":"2024-12-17T20:50:04.968Z","modified":"2024-12-17T21:23:57.366Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","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:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0046,"percentile":0.38472,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.006999999999999975,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00453},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0046,"percentile":0.38472}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00453,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0046,"percentile":0.38472}]},"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":"ruby3.2-elasticsearch","name":"ruby3.2-elasticsearch","label":"ruby3.2-elasticsearch","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ruby3.2-elasticsearch","purlType":"apk","versions":[{"text":"< 8.17.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.17.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ruby3.3-elasticsearch","name":"ruby3.3-elasticsearch","label":"ruby3.3-elasticsearch","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ruby3.3-elasticsearch","purlType":"apk","versions":[{"text":"< 8.17.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.17.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ruby3.2-elasticsearch","name":"ruby3.2-elasticsearch","label":"ruby3.2-elasticsearch","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ruby3.2-elasticsearch","purlType":"apk","versions":[{"text":"< 8.17.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.17.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ruby3.3-elasticsearch","name":"ruby3.3-elasticsearch","label":"ruby3.3-elasticsearch","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ruby3.3-elasticsearch","purlType":"apk","versions":[{"text":"< 8.17.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.17.0-r0","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"elasticsearch","name":"elasticsearch","label":"elasticsearch","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/elasticsearch","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"elastic","product":"elasticsearch","name":"Elasticsearch","label":"elasticsearch","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.16.0, ≤ 8.16.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.16.0, < 8.16.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.16.0, ≤ 8.16.1 | ≥ 8.16.0, < 8.16.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"elasticsearch","label":"Elasticsearch","category":"database"}},"hubHref":"/vendor/elastic/elasticsearch"},{"vendor":"org.elasticsearch","product":"elasticsearch","name":"org.elasticsearch:elasticsearch","label":"elasticsearch","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.elasticsearch/elasticsearch","purlType":"maven","versions":[{"text":"≥ 8.16.0, < 8.16.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.16.0, < 8.16.2","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://discuss.elastic.co/t/elasticsearch-8-16-2-8-17-0-security-update/372091","label":"discuss.elastic.co/t/elasticsearch-8-16-2-8-17-0-security-update/372091","hostname":"discuss.elastic.co","tags":["REPORT","WEB","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-12539","label":"ubuntu.com/security/CVE-2024-12539","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-12539","label":"www.cve.org/CVERecord?id=CVE-2024-12539","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12539.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12539.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12539","label":"nvd.nist.gov/vuln/detail/CVE-2024-12539","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/elastic/elasticsearch","label":"github.com/elastic/elasticsearch","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-3PG7-7WQX-48XH","CGA-6WJX-RFWC-3H26","CGA-Q86M-5PJ3-Q6JG","CGA-QVM4-3C6G-4JG6"]},"timeline":[{"kind":"published","date":"2024-12-17T20:50:04.968Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-12-17T21:23:57.366Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:26:08.195Z","stale":false,"partial":false}}