HTTPS is the visible use. The same library also terminates mail, VPNs,
management planes and code-signing pipelines — and every one of them hands it
ASN.1.

The obvious use: TLS termination

When a browser connects to a web server, something has to hold the private key,
negotiate the handshake, and decrypt the records. In the Linux estate that
something is usually libssl. Apache httpd's mod_ssl, nginx's TLS module and
HAProxy's bind ... ssl all call the same API: create an SSL_CTX, load a
certificate chain and key, accept a socket, read and write through
SSL_read/SSL_write.

The library also does the verification side. A server asking for a client
certificate, or a client checking a server chain, parses X.509: version,
serial, signature algorithm, issuer and subject names, validity, extensions.
Every one of those fields is ASN.1, and the names are ASN.1 strings.

The mail path

Postfix and Dovecot use OpenSSL for SMTP and IMAP TLS. That is the same TLS
stack in a different daemon. Mail adds a second layer: S/MIME signatures and
CMS envelopes, which are ASN.1 containers holding certificates, algorithm
identifiers, signed attributes and encrypted content.

A mail gateway that verifies an S/MIME signature is therefore parsing
attacker-supplied ASN.1 twice — once in the TLS session, once in the message.
The message is the more interesting input, because it arrives after
authentication and can be arbitrarily large.

The VPN path

OpenVPN uses OpenSSL for its control-channel handshake and for certificate
verification. IPsec implementations frequently use it for the same reason.
The pattern is identical to TLS: a peer presents a certificate chain, the
library parses it, and the connection is admitted or refused before any user
credential exists.

VPN concentrators are also the clearest example of the embedded problem. The
appliance vendor compiles OpenSSL into a firmware image, ships it, and owns the
update path. The customer cannot run apt upgrade on the concentrator.

The certificate machinery

OpenSSL is not only a consumer of certificates; it is the tool most Linux
estates use to create and manage them:

  • openssl req builds a certificate signing request.
  • openssl ca signs certificates and maintains a CA database.
  • openssl ocsp runs or queries an OCSP responder.
  • openssl crl parses and prints revocation lists.
  • openssl pkcs12 imports and exports the bundle that browsers and appliances
    exchange.

Each command is a thin shell over libcrypto's ASN.1 encoder and decoder. When
the library mishandles a length or a string type, the tooling mishandles it in
the same way.

Code signing and update pipelines

Signing tools frequently link OpenSSL: osslsigncode for Authenticode,
various vendor utilities for firmware images, package-signing steps in build
pipelines. These are high-value targets for a different reason: the process
holds a signing key, and the input is often a file that arrived from somewhere
else.

QUIC and the newer protocols

OpenSSL 3.5 added a QUIC stack, and 3.6 and 4.0 continue it. QUIC carries TLS
1.3 handshakes inside its own packet protection, so the same certificate
parsing and the same record-layer code are reachable over UDP as well as TCP.
New transport, same sleeve.

The common denominator

Every use above eventually calls the ASN.1 layer. That is not an accident of
implementation; it is the format's role. X.509, CMS, PKCS#7, PKCS#12 and OCSP
are all ASN.1, and OpenSSL is the library that reads them.

This is why a bug in ASN1_mbstring_ncopy() matters out of proportion to its
severity score. The function is not on the TLS hot path — the advisory is
explicit that no protocol or certificate path reaches its overflow. But it
sits in the same module as the code that every path does reach, and it shares
the module's assumptions: that lengths are small, that callers bound their
inputs, and that a signed int is big enough for a buffer size.

Next: Part 4 — four forks and one FIPS certificate: what OpenSSL's
alternatives actually win, and what they cost.