Skip to content
Back to Blog
Security11 min read

Critical CVE Patching: Triage & Deploy in Under 4 Hours

A field-tested triage workflow for evaluating CVSS scores, checking exploit availability, and rolling out emergency patches without breaking production systems.

Written by Abdul AbrorTechnical Hosting Support Engineer
Critical CVE Patching: Triage & Deploy in Under 4 Hours
On this page

You get the alert at 2 AM: a critical-rated CVE just dropped for software running on your production stack. Half the internet is screaming about it on Twitter. Your phone won't stop buzzing.

The next four hours decide whether you patch cleanly or spend the weekend in incident response. I've triaged dozens of these alerts in hosting support, and the difference between a smooth emergency patch and a self-inflicted outage usually comes down to having a repeatable workflow. Here's the one that works.

Evaluate the CVSS score in context

CVSS scores get thrown around like gospel, but a 9.8 rating doesn't automatically mean drop everything. Check the vector string first.

Look at the attack vector (AV). Network-exploitable (AV:N) vulnerabilities spread fast and matter immediately if your service faces the internet. Adjacent network (AV:A) or local (AV:L) exploits need physical or internal access—still serious, but you have more time to plan. I've seen teams lose sleep over a CVSS 9.0 that required local shell access on a machine with two-factor SSH and no other users.

Next, check attack complexity (AC) and privileges required (PR). Low complexity with no privileges (AC:L / PR:N) means script kiddies can exploit it in minutes once proof-of-concept code hits GitHub. High complexity or required privileges buys you breathing room to test properly.

User interaction (UI) matters too. If UI:R (required), the exploit needs someone to click a link or open a file. Still dangerous, but not wormable.

Write down the vector string somewhere you can see it. It keeps you honest when the pressure is on.

Check for active exploitation

CVSS tells you theoretical severity. Exploit availability tells you actual risk.

Search these sources in order:

  1. CISA Known Exploited Vulnerabilities catalog — if it's listed here, exploitation is confirmed in the wild and you're already behind
  2. Public exploit databases (Exploit-DB, Packet Storm) — working proof-of-concept code means widespread scanning will start within hours
  3. GitHub and GitLab — search the CVE number; attackers publish PoCs here before they hit the official databases
  4. Security vendor blogs — companies like Rapid7, GreyNoise, and Shadowserver publish exploitation telemetry fast

In hosting support, I saw the log4shell vulnerability go from disclosure to active scanning in under two hours. Exploit code was on GitHub twenty minutes after the CVE went public. If you find working exploit code, your four-hour window just became a two-hour window.

No public exploits? You still patch, but you can afford proper testing.

Map affected systems fast

You need an inventory. Right now.

For package-managed systems (Debian, Ubuntu, CentOS, AlmaLinux), query the package database:

# Debian/Ubuntu
dpkg -l | grep <package-name>
apt list --installed | grep <package-name>

# RHEL/CentOS/AlmaLinux
rpm -qa | grep <package-name>
dnf list installed | grep <package-name>

For standalone binaries or web applications, search the filesystem:

find /opt /usr/local /var/www -name "*package-name*" -type f

Check running processes too—version strings in ps output or /proc/*/cmdline catch services you forgot you installed:

ps aux | grep <service-name>
lsof -i :<port> | grep <service-name>

Document every affected server in a spreadsheet or ticket. Include the hostname, IP, current version, patch target version, and service dependencies. This list becomes your rollout plan.

Configuration management tools (Ansible, Puppet, Salt) make this faster if you already have them. Query your inventory for the affected package across all nodes. If you don't have config management, now you know why everyone says you should.

Assess the blast radius

Patching breaks things. Sometimes the patch is worse than the CVE.

Identify what depends on the vulnerable software. If you're patching OpenSSL, half your stack probably links against it—web servers, mail servers, database clients, monitoring agents. Restarting those services means brief downtime or dropped connections.

Check your monitoring and logs for the last seven days. If the vulnerable service has been flaky or throwing errors, a restart during patching might expose an unrelated bug you've been ignoring. Fix that first or be ready to roll back.

For web applications and interpreted languages (PHP, Python, Ruby), a version bump can introduce breaking API changes. Read the changelog before you apply anything. I've seen emergency PHP patches take down WordPress sites because a deprecated function got removed.

If you're running containers, check whether the base image includes the vulnerable package. Rebuilding and redeploying containers is usually safer than patching running instances, but it takes longer.

Set up a test environment

Don't test in production. Ever.

Spin up a VM or container that mirrors your production stack—same OS version, same package versions, same configuration files. If you're on a VPS provider, most let you snapshot a production server and boot the snapshot as a separate instance. Do that.

Apply the patch to the test system first. Verify these things:

  • The service starts without errors
  • Log files show no new warnings or deprecation notices
  • Existing functionality works (make a test request, query the database, send a test email)
  • Resource usage (CPU, memory) stays within normal bounds
  • Dependent services still connect

Run your application's test suite if you have one. If you don't, manually test the most critical user flows. For a web app, that means login, checkout, and data submission forms. For a mail server, send and receive a message.

Document anything that breaks. If the patch introduces a regression, you need to know before production users find out.

Stage the rollout

Patch in waves, not all at once.

Start with your least critical systems—dev environments, internal tools, secondary services. If something explodes, the blast radius is small. Wait at least thirty minutes and watch logs and monitoring. No errors? Move to the next tier.

For load-balanced or clustered services, patch one node at a time. Pull it out of the load balancer, apply the update, verify it's healthy, then put it back in rotation before touching the next node. This keeps your service online throughout the rollout.

For single points of failure (database primaries, DNS servers, mail relays), schedule a maintenance window. Late night or early morning, depending on your user base. Announce it in advance—five minutes of planned downtime beats an hour of unplanned chaos.

If you're using configuration management, push the patch to a canary group first (five to ten percent of your fleet). Monitor for an hour. Green across the board? Roll it out to the rest.

What if the patch isn't available yet?

Zero-day disclosures and vendor delays happen. Sometimes no patch exists.

Your options, in order of preference:

  1. Apply a vendor workaround or mitigation — many CVE announcements include configuration changes that reduce exposure (disable a feature, restrict access, add a firewall rule)
  2. Firewall the vulnerable service — if the exploit requires network access and you don't need the service exposed, block it at the firewall or bind it to localhost only
  3. Deploy a web application firewall (WAF) rule — for web-facing vulnerabilities, ModSecurity or Cloudflare WAF can block exploit patterns while you wait for a patch
  4. Isolate affected systems — move them to a restricted VLAN, revoke internet access, or place them behind a bastion host
  5. Shut it down — if the service is non-critical and the risk is high, turn it off until a patch arrives

I've had to take production services offline twice because no patch existed and the exploit code was public. It's not a fun conversation with stakeholders, but it beats a breach.

Roll back if things go sideways

Always have an undo plan.

Before you patch, snapshot your system or back up the package you're replacing:

# Debian/Ubuntu - download the current package
apt download <package-name>

# RHEL/CentOS - download the current RPM
yumdownloader <package-name>

If you're patching system libraries or the kernel, take a full disk snapshot. Most VPS providers and hypervisors support this.

After patching, if logs show errors or services won't start, roll back immediately. Don't try to debug a broken patch under pressure—revert, document what broke, and escalate to the vendor or community.

For package-managed systems, downgrade to the previous version:

# Debian/Ubuntu
apt install <package-name>=<old-version>

# RHEL/CentOS
dnf downgrade <package-name>

Pin the package temporarily so automated updates don't reapply the broken patch:

# Debian/Ubuntu
apt-mark hold <package-name>

# RHEL/CentOS
dnf versionlock add <package-name>

Record the failure in your ticketing system. If the patch broke something, others will hit the same issue.

Verify and document

Confirm the patch is active:

# Check installed package version
dpkg -l | grep <package-name>  # Debian/Ubuntu
rpm -qa | grep <package-name>  # RHEL/CentOS

# Check running binary version (if the software reports it)
<command> --version

For web applications, verify the version string in HTTP headers or the application's admin panel.

Run a vulnerability scanner to confirm the CVE no longer appears. Free tools like nmap with NSE scripts or OpenVAS can validate this quickly.

Document the rollout: which systems you patched, when, what versions you applied, and any issues you hit. Future you (or your replacement) will thank you when the next CVE drops and you need to remember what broke last time.

Update your runbooks with lessons learned. If this workflow took longer than four hours, write down what slowed you down and fix it.

Run the next one faster

Critical CVE patching is a drill, not a miracle. The workflow above gives you a repeatable process that scales from a single VPS to a hundred-server fleet.

Speed comes from preparation. Maintain an accurate asset inventory, keep your systems in a patchable state, and practice rolling updates before an emergency forces you to learn under pressure. When the next zero-day hits, you'll know exactly what to do.

And you'll have time left over for coffee.

FAQ

How do I prioritize when multiple CVEs drop at once?

Triage by exploit availability first, then CVSS score, then asset criticality. Public exploits for internet-facing services get patched before high-CVSS bugs with no PoC on internal systems.

Should I patch during business hours or after hours?

It depends on the service and the risk. Actively exploited CVEs get patched immediately, even during business hours. Lower-risk patches wait for a maintenance window to avoid disrupting users.

What if my vendor hasn't released a patch yet?

Apply the mitigation steps from the CVE announcement, firewall the vulnerable service, or isolate affected systems. Pressure the vendor for an ETA and consider switching vendors if they're consistently slow.

Do containers and VMs need patching separately?

Yes. Containers inherit vulnerabilities from their base images—rebuild and redeploy them. VMs need host-level patches if the hypervisor or kernel is affected. Don't assume containerization protects you.

How do I test patches without a staging environment?

Snapshot a production server, boot the snapshot as a separate instance, and test there. Most VPS and cloud providers support this. If you're on bare metal without virtualization, invest in a cheap VPS for testing.