# How do you catch glibc and ELF ABI breakage before automated CVE upgrades hit CI?

Answers / Upgrade safety. Breadcrumb: [Home](https://osty.dev/) / [Answers](https://osty.dev/answers) / glibc ABI breakage in CVE upgrades

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.

Table: What Osty reads from an upgrade and the result

| 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`). |

Check your fleet with a read-only X-Ray: https://osty.dev/xray

## 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.

List needed libraries and glibc symbol versions:

```bash
readelf -d native.so | grep NEEDED
readelf -V native.so | grep -o 'GLIBC_[0-9.]*' | sort -uV | tail -1
ldd --version | head -1
```

## What 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 `dlopen` at runtime do not appear in `DT_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.

## Related pages

- [Plan](https://osty.dev/plan): Upgrade intelligence before CI: distro backport proof, ELF and glibc ABI floors, SPDX license gates, compiler-verified breaking call sites and topological rollout waves.
- [Chainguard integration](https://osty.dev/integrations/chainguard): Record base image digests with `osty stamp` and roll them out in waves.
- [Osty vs Chainguard](https://osty.dev/compare/osty-vs-chainguard): Minimal base images compared with fleet orchestration of those images.
- [Benchmarks](https://osty.dev/benchmarks): The 15 adversarial scenarios `a01` to `a15` and the TLA+ models that Osty's code is held to.

## See what is actually exposed in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories. The report strips out backport and reachability noise before your team or coding agents patch it, and flags stale deploys and unowned workloads.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/answers/prevent-glibc-abi-breakage-automated-cve-upgrades
