Answers / Upgrade safety
How do you catch glibc and ELF ABI breakage before automated CVE upgrades hit CI?
Read the ELF headers of every native binary in the new version and compare the glibc symbol versions it needs with the glibc in each target base image, before a pull request exists. Osty (osty.dev) parses DT_NEEDED and VERNEED; in benchmark scenario a08, a binary needing GLIBC_2.34 on a glibc 2.31 host is ENV_BLOCKED and refused auto-merge.
Written by Osty EngineeringPublished Updated
| Check | Reads | Result |
|---|---|---|
DT_NEEDED | Shared libraries each binary loads. | Names the library missing from a target image. |
VERNEED | Symbol versions each binary requires, such as GLIBC_2.34. | ENV_BLOCKED with the exact symbol, for example GLIBC_2.34 > 2.31. |
| Target base image | The glibc and libraries in each workload's image. | Which workloads can take the upgrade now and which need a base image first. |
| SPDX license diff | The declared license of both versions. | LICENSE_BLOCKED on a change such as MIT to BSL-1.1 (a08). |
Why a CVE bump breaks native code
Python wheels, Node native addons, Go binaries built with cgo and Rust binaries link against the glibc of the machine that built them. A security release built on a newer toolchain can raise that floor. Debian 11 ships glibc 2.31; a wheel that needs GLIBC_2.34 installs cleanly and then fails to load at import time.
CI often runs on a newer image than production, so tests pass and the failure appears only after rollout. An update bot that opens one pull request per repository multiplies the problem.
Inspect one binary yourself
The same two ELF sections are readable with binutils. This shows what Osty automates across every artifact in an upgrade and every target image in the fleet.
readelf -d native.so | grep NEEDED
readelf -V native.so | grep -o 'GLIBC_[0-9.]*' | sort -uV | tail -1
ldd --version | head -1What happens to the upgrade
An ENV_BLOCKED upgrade never auto-merges. The plan names the base image upgrade that must ship first and orders the work into topological waves, so shared base images move before the services that depend on them.
The check runs before a pull request exists, so it spends no CI minutes and opens no pull request that cannot pass.
What ELF metadata cannot tell you
- Statically linked binaries and libraries loaded with
dlopenat runtime do not appear inDT_NEEDED. Keep an integration test in an image that matches production. - API changes in pure Python or JavaScript are not ABI questions. Osty's compiler analyzers cover breaking call sites separately.
- Osty does not rebuild packages or base images. If you want the floor raised for you, a rebuilt image vendor such as Chainguard fits better, and Osty rolls those digests out.
Frequently asked questions
Which artifacts does Osty inspect?
Native binaries in Python wheels, Node native addons and image layers.
Does this need a CI run?
No. Osty reads the artifacts and the target images before any pull request is opened.
What does Osty do when the base image is too old?
It marks the upgrade ENV_BLOCKED and points to the base image upgrade that has to ship first.