{"id":"CVE-2026-45287","aliases":["CVE-2026-45287","GHSA-995v-fvrw-c78m","GO-2026-5281"],"related":[],"kind":"vulnerability","state":"published","title":"OpenTelemetry-Go's Schema ParseFile leaks file descriptors on each parse","summary":"OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to version 0.0.17, `go.opentelemetry.io/otel/schema/v1.0` and `go.opentelemetry.io/otel/schema/v1.1` leaks one file descriptor on each successful `ParseFile` call. `ParseFile` opens the schema file and passes it to `Parse` without closing it; repeated parsing in a long-running process can exhaust the process file descriptor limit and cause denial of service. Exploitation depends on a consuming application exposing repeated schema parsing to an attacker-controlled path. Version 0.0.17 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to version 0.0.17, `go.opentelemetry.io/otel/schema/v1.0` and `go.opentelemetry.io/otel/schema/v1.1` leaks one file descriptor on each successful `ParseFile` call. `ParseFile` opens the schema file and passes it to `Parse` without closing it; repeated parsing in a long-running process can exhaust the process file descriptor limit and cause denial of service. Exploitation depends on a consuming application exposing repeated schema parsing to an attacker-controlled path. Version 0.0.17 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`go.opentelemetry.io/otel/schema/v1.0` and `go.opentelemetry.io/otel/schema/v1.1` leaks one file descriptor on each successful `ParseFile` call. `ParseFile` opens the schema file and passes it to `Parse` without closing it; repeated parsing in a long-running process can exhaust the process file descriptor limit and cause denial of service. The severity is low because exploitation depends on a consuming application exposing repeated schema parsing to an attacker-controlled path.\n\nIntroduced in commit: e72a235\n\n### Details\n\nIn `schema/v1.0/parser.go:41-47`, `ParseFile` opens the requested schema path with `os.Open` and then returns `Parse(file)` without a `defer file.Close()` or other close path:\n\n```go\nfile, err := os.Open(schemaFilePath)\nif err != nil {\n\treturn nil, err\n}\nreturn Parse(file)\n```\n\nThe validation evidence also identifies `schema/v1.0/parser.go:50-73`: `Parse` accepts an `io.Reader`, decodes from it, and does not close it. Ownership of the opened file is therefore not transferred to `Parse`, leaving the descriptor open until the Go runtime eventually finalizes the file object. With repeated `ParseFile` calls, descriptors can accumulate until the process receives `EMFILE` / \"too many open files\".\n\n### PoC\n\n[validation-artifact.zip](https://github.com/user-attachments/files/27494463/validation-artifact.zip)\n\nThe local artifact `validation-artifact.zip` contains:\n\n- `leak_poc.go`: PoC source that repeatedly calls `schema.ParseFile(\"schema/v1.0/testdata/valid-example.yaml\")` and prints `/proc/self/fd` counts.\n- `LEAK_POC_README.txt`: reproduction notes.\n- `leak_poc_run.log`: captured attempted run; the local offline environment failed before execution because Go module download from `proxy.golang.org` was forbidden.\n\nReproduce from the root of a checkout of `pellared/opentelemetry-go` at commit `e72a235` with Go module dependencies already available:\n\n```sh\n/bin/sh -c 'ulimit -n 256; GOGC=off go run leak_poc.go'\n```\n\nConfiguration:\n\n- File descriptor soft limit: `256`\n- Garbage collection: disabled with `GOGC=off` so leaked descriptors are not reclaimed during the loop\n- Schema file: `schema/v1.0/testdata/valid-example.yaml`\n\nExpected output is increasing descriptor counts followed by an `EMFILE` failure, for example:\n\n```text\niter 0 fds 7\niter 50 fds 57\niter 100 fds 107\n...\npanic: iteration 248: open schema/v1.0/testdata/valid-example.yaml: too many open files\n```\n\nThe exact initial descriptor count and failing iteration can vary by OS and process state.\n\n### Impact\n\nThis is a file descriptor resource leak leading to availability loss. Applications that call `schema.ParseFile` repeatedly, especially through a runtime reload or request-controlled path, can exhaust their process file descriptor table and fail subsequent file, socket, or other descriptor operations. Impact is limited to denial of service of the consuming process; the evidence does not show confidentiality or integrity impact.","format":"markdown","source":"ghsa"},{"lang":"en","text":"opentelemetry-go's Schema ParseFile leaks file descriptors on each parse in go.opentelemetry.io/otel/schema","format":"markdown","source":"go"},{"lang":"es","text":"OpenTelemetry-Go es la implementación en Go de OpenTelemetry. Antes de la versión 0.0.17, 'go.opentelemetry.io/otel/schema/v1.0' y 'go.opentelemetry.io/otel/schema/v1.1' filtran un descriptor de archivo en cada llamada exitosa a 'ParseFile'. 'ParseFile' abre el archivo de esquema y lo pasa a 'Parse' sin cerrarlo; el análisis repetido en un proceso de larga duración puede agotar el límite de descriptores de archivo del proceso y causar denegación de servicio. La explotación depende de que una aplicación consumidora exponga el análisis repetido del esquema a una ruta controlada por un atacante. La versión 0.0.17 contiene un parche para el problema.","source":"nvd"}],"published":"2026-05-28T17:19:10.000Z","modified":"2026-07-22T20:10:00.127Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":2.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-772","CWE-775"],"affected":[{"ranges":[{"version":"< 0.0.17","status":"affected"}],"vendor":"open-telemetry","product":"go.opentelemetry.io/otel/schema/v1.1","source":"cvelist"},{"ranges":[{"version":"< 0.0.17","status":"affected"}],"vendor":"open-telemetry","product":"go.opentelemetry.io/otel/schema/v1.0","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.17"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/schema/v1.1","purl":"pkg:golang/go.opentelemetry.io/otel/schema/v1.1","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.17"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/schema/v1.0","purl":"pkg:golang/go.opentelemetry.io/otel/schema/v1.0","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.17"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/schema","purl":"pkg:golang/go.opentelemetry.io/otel/schema","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.17"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/schema","purl":"pkg:golang/go.opentelemetry.io/otel/schema","source":"go"},{"ranges":[{"status":"affected","fixed":"0.0.17"}],"vendor":"opentelemetry","product":"telemetry_schema_files","cpe":"cpe:2.3:a:opentelemetry:telemetry_schema_files:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-995v-fvrw-c78m","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go/commit/e72a235518cb773137efd80336a179028bc34684","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go/commit/f12d198f161b61735d65705248715aa97021ba8d","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45287","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/open-telemetry/opentelemetry-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-08T18:27:31.389Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45287","url":"https://www.cve.org/CVERecord?id=CVE-2026-45287","licence":"CVE Terms of Use","modified":"2026-06-08T18:27:46.212Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-995v-fvrw-c78m","url":"https://github.com/advisories/GHSA-995v-fvrw-c78m","licence":"CC-BY-4.0","modified":"2026-07-15T22:00:51.114Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5281","url":"https://pkg.go.dev/vuln/GO-2026-5281","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:23.220Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45287","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45287","licence":"Public domain","modified":"2026-07-22T20:10:00.127Z"}],"updatedAt":"2026-11-25T22:59:23.713Z","epss":{"score":0.00175,"percentile":0.04048,"date":"2026-11-30T12:00:22.000Z"}}