{"schemaVersion":3,"id":"CVE-2021-3810","aliases":["CGA-9r4g-vv67-4h3f","CGA-cxj5-9cgx-gp5g","CGA-j27c-f2pj-76rw","CGA-m57f-8m9x-7j2p","GHSA-49x3-8228-3w3m"],"status":"published","duplicateOf":null,"title":null,"description":"code-server is vulnerable to Inefficient Regular Expression Complexity","dates":{"published":"2021-09-17T06:15:24.000Z","modified":"2024-08-03T17:09:09.471Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.8,"severity":"high","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01262,"percentile":0.69233,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01262},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01262,"percentile":0.69233}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01262,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01262,"percentile":0.69233}]},"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":[{"id":"REF_86FDD645069E54C4","name":"Exploit Reference (huntr.dev)","source":"reference","url":"https://huntr.dev/bounties/38888513-30fc-4d8f-805d-34070d60e223","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"}],"affected":[{"vendor":"chainguard","product":"code-server","name":"code-server","label":"code-server","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/code-server","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"code-server-compat","name":"code-server-compat","label":"code-server-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/code-server-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"code-server","name":"code-server","label":"code-server","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/code-server","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"code-server-compat","name":"code-server-compat","label":"code-server-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/code-server-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"cdr","product":"cdr/code-server","name":"cdr/code-server","label":"cdr/code-server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 3.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 3.12.0","eol":null,"hubHref":"/vendor/cdr/cdrcode-server"},{"vendor":"coder","product":"code-server","name":"code-server","label":"code-server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.0","eol":null,"hubHref":"/vendor/coder/code-server"},{"vendor":"Npm","product":"code-server","name":"code-server","label":"code-server","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/code-server","purlType":"npm","versions":[{"text":"< 3.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.0","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.dev/bounties/38888513-30fc-4d8f-805d-34070d60e223","label":"huntr.dev/bounties/38888513-30fc-4d8f-805d-34070d60e223","hostname":"huntr.dev","tags":["X Refsource CONFIRM","FIX","WEB","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/cdr/code-server/commit/ca617df135e78833f93c8320cb2d2cf8bba809f5","label":"github.com/cdr/code-server/commit/ca617df135e78833f93c8320cb2d2cf8bba809f5","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3810","label":"nvd.nist.gov/vuln/detail/CVE-2021-3810","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/cdr/code-server","label":"github.com/cdr/code-server","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-P6VR-RG6F-JG52"]},"timeline":[{"kind":"published","date":"2021-09-17T06:15:24.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:09:09.471Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:35:47.623Z","stale":false,"partial":false}}