OpenSSL 4.1 and curl: Name Constraints Bypass Explained
A library update caused a widely used tool to accept a certificate it had previously rejected, angering its creator.
Overview
A change in the OpenSSL 4.1 library caused the curl tool to accept a digital certificateA file that ties a public key to a name, signed by a certificate authority that it had previously rejected. This happened because OpenSSL altered the behavior of an APIA structured interface that lets one software program request data or actions from another program function, which allowed a certificate with a name outside the allowed namespaceA named boundary that keeps variable names, package names, or container resources separate from each other to pass verification. The issue affects any system that uses curl to check serverA computer or program on a network that stores data and responds to requests from client devices identities, as it may now trust invalid certificates. The background involves rules in RFC 5280 and RFC 9525 that dictate how certificate names must match the issuing authority. The conflict arose because curl performs its own hostnameThe human-readable label assigned to a computer or server on a local network or the internet matching, relying on a heuristic that OpenSSL quietly removed. As a result, applications using this combination may now accept certificates that do not meet strict security standards.
Terms in this story
- certificate
- A file that ties a public key to a name, signed by a certificate authority. Web browsers check a site's certificate on every secure visit, and news stories report when an expired or stolen certificate causes outages or lets an attacker impersonate a domain. From the CYBR 101 room CYBR 101: What is a hash?; Security+ objective 1.4 lists the term
- API
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
- namespace
- A named boundary that keeps variable names, package names, or container resources separate from each other. Operating systems use namespaces to isolate containers so a program inside one container sees only its own files and processes, not those of the host server.
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- hostname
- The human-readable label assigned to a computer or server on a local network or the internet. During an intrusion investigation, logs often identify which employee laptop or internal server was accessed by its hostname alongside its IP address.
- DNS
- The internet directory service that translates human-readable domain names into numerical IP addresses. Whenever you type a web address into a browser, DNS looks up the server's IP address, and attackers who hijack DNS settings can silently steer visitors to a fake server. Security+ objective 2.4 lists the term
- TLS
- The standard cryptographic protocol that encrypts internet traffic between a browser or app and a server. Whenever you visit an HTTPS website, TLS checks the server's certificate and scrambles the connection so nobody on the local wireless network or internet backbone can read your traffic. Security+ objective 1.4 lists the term
- maintainer
- The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
- extension
- A small add-on program installed inside a web browser to add features like ad blocking. Because a browser extension can often read and change every web page you visit, attackers buy or hijack legitimate extensions to steal session cookies and passwords.
- pull request
- A proposed set of code changes submitted to a software repository for maintainers to review and merge. In open-source security news, attackers sometimes submit a normal-looking pull request that hides a backdoor or exploits the project's automated test pipeline.
- root
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The CyberSec Guru website. Cite the article, not this page.
Read the full article on The CyberSec Guru (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"OpenSSL 4.1 and curl: Name Constraints Bypass Explained..." Found by reading the article; these exact words are in it - Who is affected: "...curl..."
Copied word for word from the article - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"OpenSSL 4.1 stopped applying DNS name constraints to the Common Name, so..." Found in the opening sentences - CYBR 101 week 5: hashes, how passwords are stored and cracked, Linux basics
"......the Common Name, so curl accepted a certificate it used to reject. Here's the cause..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"OpenSSL 4.1 stopped applying DNS name constraints to the Common Name, so..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role