Read 2026-10-23
elastic/logstash: technical due diligence, read from its repository
What Borehole read in elastic/logstash's code and history at 60c4ae7: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | strong |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
LICENSE.txt:1: The licence is Elastic-2.0: source available, not open source
Architecture & Codebase — including AI provenance
adequatelogstash-core/lib/logstash/config/grammar.rb is 3,646 lines, 47× this codebase's median file
adequateThe median source file here is 76 lines. 3 files exceed 1,000 lines, the largest being 3,646. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
logstash-core/lib/logstash/config/grammar.rb:1 — 3,646 lines (47× median) |
logstash-core/lib/logstash/compiler/lscl/lscl_grammar.rb:1 — 3,622 lines (47× median) |
logstash-core/src/main/java/org/logstash/execution/AbstractPipelineExt.java:1 — 1,063 lines (13× median) |
1 base image floats: no version, or `latest`
adequate1 of 1 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.
x-pack/distributions/internal/observabilitySRE/docker/Dockerfile:2 — base image without a version |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strong11 files still carry code deprecated more than two years ago
adequate11 files were marked deprecated over two years ago and still are, the oldest since Aug 2016. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
logstash-core/lib/logstash/outputs/base.rb — deprecated since Aug 2016 |
lib/pluginmanager/main.rb — deprecated since Oct 2016 |
logstash-core/src/main/java/org/logstash/instrument/metrics/Metric.java — deprecated since Jul 2017 |
logstash-core/src/main/java/org/logstash/instrument/metrics/gauge/RubyHashGauge.java — deprecated since Aug 2017 |
logstash-core/src/main/java/org/logstash/instrument/metrics/gauge/RubyTimeStampGauge.java — deprecated since Aug 2017 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v9.5.5, is not on the branch this survey read; the newest release on it is v1.4.1. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v9.5.5 |
Security & Reliability Posture
strongThe build runs third-party code it does not pin
adequate21 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.
.github/workflows/backport-active.yml:26 — action pinned by tag |
.github/workflows/bump-java-version.yml:23 — action pinned by tag |
2 deserialisers that can run code
adequate2 places read data with a deserialiser that executes what it reads (Ruby `Marshal.load`). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.
lib/pluginmanager/gemfile.rb:166 — code-executing deserialiser |
logstash-core/lib/logstash/util.rb:230 — code-executing deserialiser |
The licence is Elastic-2.0: source available, not open source
adequateLICENSE.txt grants Elastic-2.0: source available, not open source; offering it as a managed service is not allowed. The reading comes from the licence's own title and clauses. Whether the terms fit the buyer's intended use, and whether any paid licence transfers with the code, is a question for counsel and the licensor.
LICENSE.txt:1 — 13 lines, Elastic-2.0 |
2 advisories against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2026-04-08. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 2 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 1.4.1. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 5 records name logstash with nothing tying them to this repository (CVE-2020-2143, CVE-2026-107335, CVE-2026-19671, …).
| 2026-04-08: CVE-2026-33466 (high): Improper Limitation of a Pathname to a Restricted Directory (CWE-22) in Logstash can lead to arbitrary file write and potentially remote code execution via Rela |
| 2025-05-06: CVE-2025-37730 (moderate): Improper certificate validation in Logstash's TCP output could lead to a man-in-the-middle (MitM) attack in “client” mode, as hostname verification in TCP outpu |
Observability & Operations
adequateNo structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| searched 2,085 files for 10 structured logging libraries; 0 matched |
No error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
1 of 3 deployed images carry no version, or `latest`
adequate1 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.
x-pack/distributions/internal/observabilitySRE/qa/smoke/docker/docker-compose.yml:20 — image without a version |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on elastic/logstash: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.