{"schemaVersion":3,"id":"CVE-2026-40685","aliases":["UBUNTU-CVE-2026-40685","DEBIAN-CVE-2026-40685","CGA-2g6p-xqv4-6rwx","CGA-4jpx-chfw-3vqc","CGA-6cpq-jvmp-fp58","CGA-f3h9-7c59-hhwq","CGA-g74q-f2vm-gxf7","CGA-g9qg-jxvw-6388","CGA-gfcm-vv36-q65q","CGA-gv75-fq8h-vr8g","CGA-j3jr-4963-gxvx","CGA-j7m5-4gwc-4884","CGA-j7p8-5c5m-hr3f","CGA-jf42-wwhv-6xv5","CGA-jgwh-ppxh-fvfj","CGA-jwph-3v95-m5mm","CGA-m7h4-743h-87fx","CGA-pqc6-xvcw-q58h","CGA-qxw8-7gxx-gr4j","CGA-r74c-vv4p-4g3j","CGA-rv6j-66q9-j6rr","CGA-wr8j-phw4-rjf7"],"status":"published","duplicateOf":null,"title":null,"description":"In Exim before 4.99.2, when JSON lookup is enabled, an out-of-bounds heap write can occur when a JSON operator encounters malformed JSON in an untrusted header, because of an incorrect implementation of \\ skipping.","dates":{"published":"2026-04-30T00:00:00.000Z","modified":"2026-05-01T14:26:41.873Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00575,"percentile":0.46382,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.25399999999999995,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00321},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00575,"percentile":0.46382}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00321,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00575,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00575,"percentile":0.46382}]},"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-684","name":"Incorrect Provision of Specified Functionality","description":"The code does not function according to its published specifications, potentially leading to incorrect usage.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/684.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"chainguard","product":"exim","name":"exim","label":"exim","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-cdb","name":"exim-cdb","label":"exim-cdb","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-cdb","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-dbmdb","name":"exim-dbmdb","label":"exim-dbmdb","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-dbmdb","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-dnsdb","name":"exim-dnsdb","label":"exim-dnsdb","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-dnsdb","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-doc","name":"exim-doc","label":"exim-doc","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-doc","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-mysql","name":"exim-mysql","label":"exim-mysql","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-mysql","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-pgsql","name":"exim-pgsql","label":"exim-pgsql","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-pgsql","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-scripts","name":"exim-scripts","label":"exim-scripts","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-scripts","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-sqlite","name":"exim-sqlite","label":"exim-sqlite","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-sqlite","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"exim-utils","name":"exim-utils","label":"exim-utils","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/exim-utils","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim","name":"exim","label":"exim","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-cdb","name":"exim-cdb","label":"exim-cdb","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-cdb","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-dbmdb","name":"exim-dbmdb","label":"exim-dbmdb","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-dbmdb","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-dnsdb","name":"exim-dnsdb","label":"exim-dnsdb","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-dnsdb","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-doc","name":"exim-doc","label":"exim-doc","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-doc","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-mysql","name":"exim-mysql","label":"exim-mysql","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-mysql","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-pgsql","name":"exim-pgsql","label":"exim-pgsql","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-pgsql","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-scripts","name":"exim-scripts","label":"exim-scripts","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-scripts","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-sqlite","name":"exim-sqlite","label":"exim-sqlite","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-sqlite","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"exim-utils","name":"exim-utils","label":"exim-utils","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/exim-utils","purlType":"apk","versions":[{"text":"< 4.99.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.5-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"exim4","name":"exim4","label":"exim4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/exim4","purlType":"deb","versions":[{"text":"< 4.96-15+deb12u9","noFixRecorded":false,"fixedIn":null},{"text":"< 4.98.2-1+deb13u2","noFixRecorded":false,"fixedIn":null},{"text":"< 4.99.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.96-15+deb12u9 | < 4.98.2-1+deb13u2 | < 4.99.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"exim4","name":"exim4","label":"exim4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/exim4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 4.93-13ubuntu1.12+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.95-4ubuntu2.7","noFixRecorded":false,"fixedIn":null},{"text":"< 4.97-4ubuntu4.4","noFixRecorded":false,"fixedIn":null},{"text":"< 4.98.2-1ubuntu2.1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.99.1-1ubuntu1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 4.93-13ubuntu1.12+esm1 | < 4.95-4ubuntu2.7 | < 4.97-4ubuntu4.4 | < 4.98.2-1ubuntu2.1 | < 4.99.1-1ubuntu1.1","eol":null,"hubHref":null},{"vendor":"exim","product":"exim","name":"Exim","label":"exim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.99.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.99.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"exim","label":"Exim","category":"server-app"}},"hubHref":"/vendor/exim/exim"}],"affectedCount":23,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.openwall.com/lists/oss-security/2026/04/30/21","label":"www.openwall.com/lists/oss-security/2026/04/30/21","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]},{"url":"https://exim.org/static/doc/security/cve-2026-04.1/CVE2026-40685.assessment","label":"exim.org/static/doc/security/cve-2026-04.1/CVE2026-40685.assessment","hostname":"exim.org","tags":["Vendor Advisory"]},{"url":"https://code.exim.org/exim/exim/commit/9fdc057e71b87c87a0d3d2288b2810a0efaaba57","label":"code.exim.org/exim/exim/commit/9fdc057e71b87c87a0d3d2288b2810a0efaaba57","hostname":"code.exim.org","tags":["Patch"]},{"url":"https://exim.org/static/doc/security/CVE-2026-40685.txt","label":"exim.org/static/doc/security/CVE-2026-40685.txt","hostname":"exim.org","tags":["Broken Link"]},{"url":"https://ubuntu.com/security/CVE-2026-40685","label":"ubuntu.com/security/CVE-2026-40685","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40685","label":"www.cve.org/CVERecord?id=CVE-2026-40685","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://lists.exim.org/lurker/message/20260429.121733.f58d9686.en.html","label":"lists.exim.org/lurker/message/20260429.121733.f58d9686.en.html","hostname":"lists.exim.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8228-1","label":"ubuntu.com/security/notices/USN-8228-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8382-1","label":"ubuntu.com/security/notices/USN-8382-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-40685","label":"security-tracker.debian.org/tracker/CVE-2026-40685","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-8382-1"],"duplicates":[],"related":["CGA-59G5-G3HR-2V33","USN-8228-1","USN-8382-1"]},"timeline":[{"kind":"published","date":"2026-04-30T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-01T14:26:41.873Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:18:27.637Z","stale":false,"partial":false}}