Repository navigation
Open
Labels
1.severity: securityIssues which raise a security issue, or PRs that fix one5.scope: trackingLong-lived issue tracking long-term fixes or multiple sub-problems
Description
hx Tracking issue for packages that contain OpenSSL libraries. This is generally not ideal since they are vendored via submodules or something, and will be extremely out of date of security patches. It is generally a good idea to replace these vendored libraries with symlinks to the Nixpkgs built ones so that security patches are propogated to the packages.
Caveats:
This only tracks packages that are built via Hydra, so unfree packages cannot be tracked. There also may be certain sets of packages that are not tracked with nix-index. But the popular package sets are tracked.
Packages
Create with { nix-locate -tr -tx --minimal /openssl.so; nix-locate -tr -tx --minimal /libssl.so; nix-locate -tr -tx --minimal /libcrypto.so; } | sort -u | uniq
- archipelago.out: 3.0.2
- aws-lc.out: unknown
- azure-sdk-for-cpp.openssl.out: 3.5.8
- boringssl.out: unknown
- chickenPackages_5.chickenEggs.openssl.out: 3.5.8
- chickenPackages_6.chickenEggs.openssl.out: 3.5.8
- glamoroustoolkit.out: unknown
- graalvmPackages.truffleruby.out: unknown
- hyperhdr.out: ?
- julia_112.out: 3.5.6
- julia-bin.out: 3.5.6
- julia.out: 3.5.6
- koreader.out: LibreSSL 4.3.2 vendored
- libressl_4_2.out: unknown
- libressl.out: unknown
- netcat.out: unknown (secretly is libressl)
- openssl_3_5.out: 3.5.8
-
openssl_3.out - openssl_4_0.out: 4.0.3
- openssl_legacy.out: 3.5.8
- openssl_oqs.out: 3.5.8
- pgsql-tools.out: 3.0.2
- php82Extensions.openssl.out: unknown
- php83Extensions.openssl.out: unknown
- php84Extensions.openssl.out: unknown
- php85Extensions.openssl.out: unknown
- pyfa.out: 3.5.8
- robo3t.out: unknown
- rPackages.openssl.out: 3.5.8
- ruby_3_3.out: 3.5.8
- ruby_4_0.out: 3.5.8
- ruby.out: 3.5.8
- rubyPackages_3_3.openssl.out: 3.5.8
- rubyPackages_4_0.openssl.out: 3.5.8
- rubyPackages.openssl.out: 3.5.8
- rustls-libssl.out: 3.5.8
- scilab-bin.out: unknown
- semgrep-core.out: unknown
- tor-browser.out: 3.5.9 (interestingly, this is newer than the openssl we have in nixpkgs because tor does not go through staging)
- wasabibackend.out: 3.0.15: {wasabiwallet,wasabibackend}: drop #574796
- wasabiwallet.out: 3.0.15: {wasabiwallet,wasabibackend}: drop #574796
TODO:
- Create tool for extracting the version from the library.
Reacted by Ethan Carter Edwards, Grimmauld and Cathal
Metadata
Metadata
Assignees
Labels
1.severity: securityIssues which raise a security issue, or PRs that fix one5.scope: trackingLong-lived issue tracking long-term fixes or multiple sub-problems
Activity
GrimmTheShrimp commentedon Oct 5, 2026
I know
monoalso vendors their own fork of boringssl. Which strictly speaking isn't openssl, but similar enough i think it is worth bringing upvcunat commentedon Oct 5, 2026
luaosslclearly seem to be false-positives. There is$out/lib/lua/*/_openssl.sobut that's just a binding to Lua which links to the real libssl.so + libcrypto.so (you can check that vialdd $out/lib/lua/*/_openssl.so).RossSmyth commentedon Oct 5, 2026
Refined it to only libraries without a prefix
NyCodeGHG commentedon Oct 5, 2026
A lot of rust packages also contain statically linked versions of AWS-LC, we should dynamically link to our copy of it instead.
I tried scanning for these, but the embedded dependency info from
cargo-auditableis not 100% reliable and can contain false positives.whispersofthedawn commentedon Oct 5, 2026
checked off libressl and aws-lc since this is expected, they're both maintained openssl forks
RossSmyth commentedon Oct 5, 2026
That is something else I'm working on with #537108
NyCodeGHG commentedon Oct 5, 2026
rustls-libsslalso isn't a copy of openssl, it's an openssl shim using rustlsRossSmyth commentedon Oct 5, 2026
Does it have a different file name? I do not see it in the mono output.
samueldr-at-cyberus commentedon Oct 5, 2026
FWIW, the ruby library named
openssl.sois their bindings for OpenSSL, and not OpenSSL.samueldr-at-cyberus commentedon Oct 5, 2026
From the security room:
This should do the trick:
RossSmyth commentedon Oct 5, 2026
That works. I can probably wire up the equivalent to my Python nix-index tooling I made for Electron/CEF whenever it is merged.
RossSmyth commentedon Oct 5, 2026
Is this the same for the top-level ruby packages listed?
samueldr-at-cyberus commentedon Oct 5, 2026
Yes, the “OpenSSL” gem is available in
rubyPackagesas it's one of the gems other gems can depend on, and also as a built-in gem to Ruby. I checked both arubypackage and arubyPackages.opensslwithfind [...] -iname '*ssl.so*to double-check there wasn't anything else. Only theopenssl.sofor the OpenSSL native bindings10 remaining items
taranarmo commentedon Oct 16, 2026
Julia's sources are shipped with all deps included, however they try to keep those up to date. I found commits bumping openssl to 3.5.8 in Julia's 1.12 and 1.13 branches, the latter had a release yesterday which includes this patch #574553
RossSmyth commentedon Oct 16, 2026
The main problem is that it is a game of whack-a-mole since we must rely upon two steps to occur: 1. upstream must bump openssl, then 2. nixpkgs must bump to the new version. It is generally preferred to just symlink our openssl if possible so that it just stays up-to-date. Otherwise I will be pinging you and it will be annoying.
GrimmTheShrimp commentedon Oct 17, 2026
nix-locate --regex 'libmbed(tls|crypto)\.(so|a)'on the topic of julia, it seems to also vendor
mbedtls, and a significantly older version at that.taranarmo commentedon Oct 19, 2026
yeah, 1.10 is LTS (and quite outdated, the next major release should be LTS) and 1.11 is EOL and will be dropped soon
GrimmTheShrimp commentedon Oct 19, 2026
Then here is a quick reminder that needs to happen before 2026-10-26 according to the Release Schedule for 26.11.
vcunat commentedon Oct 19, 2026
or at least marked with
.meta.knownVulnerabilitiesbefore that dateGrimmTheShrimp commentedon Oct 19, 2026
nixpkgs/pkgs/top-level/all-packages.nix
Lines 2460 to 2465 in fe13242
turns out netcat is secretly libressl
GrimmTheShrimp commentedon Oct 19, 2026
koreader does some funky stuff.
nixpkgs/pkgs/by-name/ko/koreader/package.nix
Lines 96 to 97 in fe13242
It has both
libcrypto.so.1.1, which is openssl, andlibcrypto.so.57which is libressl, see https://github.com/koreader/koreader-base/tree/master/thirdparty/libresslThat libressl is vendored: we have a repackaged deb. cc @liberodark @contrun
Really we should have a full source build instead, with devendored dependencies. Short of that, fix the symlink to replace the shared object with real
libresslfrom nixpkgs now that upstream changed the path under which they expect theirlibcrypto.so.IQubic commentedon Oct 19, 2026
Is there somewhere I can go to review the changes to
archipelago?pyrox0 commentedon Oct 20, 2026
There haven't been any changes made yet. Since you're a maintainer, if it gets updated, you'll get requested for review.
IQubic commentedon Oct 20, 2026
Thanks. I was noticing that the first post of this thread had a checked box next to
archipelag.outso I was confused!vcunat commentedon Oct 21, 2026
I see an unchecked box in there, now at least.
Zaczero commentedon Nov 7, 2026
How is it that NixOS stable ships unsupported OpenSSL by default? No security patches, no updates. How are such decisions even made? Is 3.6.5 but should be 3.5.9 LTS. https://endoflife.date/openssl
whispersofthedawn commentedon Nov 7, 2026
that was a mistake. unfortunately, we somehow ended up with our default openssl being a non-lts, and afaik only realized during the 26.05 release cycle. we downgraded unstable to 3.5 once we noticed (#564262), but unfortunately that's too large a change to make on stable. if there are security fixes released, we'll backport them from the appropriate 3.5.x or 4.1.x branch for the next two months, and in the future we'll stick to the lts releases as our defaults.
vcunat commentedon Nov 7, 2026
There are only about 7 weeks of support left for 26.05.