
Read-only audit script for OpenSSL CVE-2026-121481 (EVP_EncodeBlock overflow). Preliminary: affected range from third-party trackers, unconfirmed.
Read-only exposure check for CVE-2026-121481, a heap buffer overflow in OpenSSL's
EVP_EncodeBlock(). It inventories every OpenSSL copy it can find on a Linux host (system
binaries and libraries, packages, running processes, Python venvs and wheels, bundled copies,
running Docker containers) and flags the ones whose version is in the reported range.
Status: preliminary. As of 2026-11-20 I could not find an official OpenSSL advisory for this CVE. The affected range used here comes from third-party CVE trackers and may be wrong or incomplete. Read Open questions before acting on the output. This project is not affiliated with the OpenSSL project.
According to third-party trackers (cve.now, strix.ai):
4*((len+2)/3)+1 of
EVP_EncodeBlock() for input lengths close to INT_MAX; the result can write past the
caller's output buffer.AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).The only primary-source artifact I found is the open, unmerged pull request openssl/openssl#33652.
4.0.4 / 4.1.1 as fixed
releases are unverified.openssl s_client with a very large -proxy_pass; the tracker text says there is no
practical attack path. Whether any real application passes attacker-controlled
near-INT_MAX lengths to EVP_EncodeBlock() is unknown to me.OUTSIDE_RANGE, which means "no data", not "safe".cryptography,
the version comes from the first OpenSSL x.y.z string in the .so. It is usually
right, but it is a heuristic.docker only.If the official advisory lands and differs from the above, edit is_affected() and
AFFECTED_DESC at the top of the script (the only places the range is encoded).
./openssl-cve-2026-121481-audit.sh # text report, all sections
./openssl-cve-2026-121481-audit.sh --json # JSON report on stdout
./openssl-cve-2026-121481-audit.sh --quiet # only the verdict line + exit code
./openssl-cve-2026-121481-audit.sh --no-banner # text report without the header line
./openssl-cve-2026-121481-audit.sh --no-system # skip binaries, libraries, packages
./openssl-cve-2026-121481-audit.sh --no-procs # skip running processes
./openssl-cve-2026-121481-audit.sh --no-python # skip interpreters, venvs, wheels
./openssl-cve-2026-121481-audit.sh --no-bundled # skip the bundled-copy search
./openssl-cve-2026-121481-audit.sh --no-docker # skip running containers
./openssl-cve-2026-121481-audit.sh --scan-dir DIR # bundled search only in DIR (repeatable)
./openssl-cve-2026-121481-audit.sh --version
--scan-dir replaces the default bundled-search roots ($HOME, /opt, /usr/local,
/srv); the other sections still run on the host. To audit a mounted image or an unpacked
tree on its own, combine it with --no-system --no-procs --no-python --no-docker.
Needs Linux, bash 4+ (tested with bash 5) and find, grep, awk, sed, sort, tr, cut, readlink.
Run it as the user whose files you want covered; run as root for a host-wide view
(/proc/PID/maps of other users' processes needs it).
The worst finding decides.
| Exit | Verdict | Meaning |
|---|---|---|
| 0 | NOT_IN_LISTED_RANGE | no version in the listed range; says nothing about 3.x or older |
| 1 | MITIGATED | never used: a distro backport cannot be verified from the version |
| 2 | VULNERABLE | some OpenSSL copy is in the listed affected range |
| 3 | UNKNOWN | a version could not be read, a container could not be scanned, or a running process uses a library replaced on disk |
| 4 | ERROR | bad usage |
Per finding: VULNERABLE, OUTSIDE_RANGE, UNKNOWN, plus the informational NOT_OPENSSL
(an interpreter built against LibreSSL) and NO_LIBCRYPTO (a container with no libcrypto file).
| Kind | What |
|---|---|
cli | openssl binaries in PATH, /usr/local/ssl, /opt/*/bin |
lib | libcrypto from the ldconfig cache and common prefixes |
dpkg / rpm | installed openssl / libssl* packages (informational) |
process | libcrypto mapped by running processes; a library replaced on disk is UNKNOWN |
python-ssl | ssl.OPENSSL_VERSION of each interpreter and venv found under $HOME |
py-wheel | OpenSSL bundled in wheels (cryptography _rust*.so, *.libs/libcrypto*) |
bundled | other libcrypto copies under $HOME, /opt, /usr/local, /srv |
docker | running containers via docker exec ... find/grep (needs sh, find, grep inside) |
Not covered: statically linked binaries (Go, Rust), stopped containers, image layers.
PATH is pinned. The test hooks (CVE_2026_121481_TEST_PATH, CVE_2026_121481_TEST_ROOT)
are ignored for root and for an unknown uid.-I and only print version and site information.docker exec runs a read-only find/grep inside each running container; use
--no-docker if you do not want commands executed in containers.