Hacker News new | ask | show | jobs
by black3r 11 days ago
Neither Ubuntu nor Debian have released patches yet, so if you're using one of these mainstream distributions and install nginx through the distro's package manager, you can't easily "upgrade to the latest nginx" yet. You can however disable HTTP/2 for now.
8 comments

Both the Debian and the Red Hat packaging systems are awfully convenient ways to build software from source. It has to be, that's package maintainers do daily. They will install all dependencies, apply the distribution specific patches, build, and package in one operation.

Should your distributor fall of the face of the Earth and you still need to patch software, it is often the fastest way to take the source package, put the security patch in the patch directory, and run.

There is more it, such as versioning it between the last release but below the official upgrade so it's convenient when the offical one comes along, and preparing keys if you require signatures, but that's basically it.

Good to see
At least for Debian, http2 is disabled by default, and so not affected.

You would have had to enable http2 and have a buggy Linux kernel to be vulnerable.

Not quite. The kernel bug is only the worker-to-root step. Code execution as the nginx worker through the two HTTP/2 CVEs needs nothing but HTTP/2 enabled. Three of the five CVEs don't need HTTP/2 at all: one is HTTP/3 with an upstream, one is resolver + variable proxy_pass + subrequests, and one is the mail proxy with auth_http.
>the worker-to-root step

this is the whole issue, right?

>Code execution as the nginx worker

cry me a river

Luckily we could not see your face during writing this, as I’m pretty sure no serious person in the industry can say this with a straight face… Maybe Theo de Raadt, but there it is a running joke I guess.
Another reason not to couple your software versioning to Ubuntu and Debians' package managers' schedule
Their package manager and security response is the only reason to use (put up with?) their OS.

If I wanted to build my own software from source every time I'd be running Solaris like a virile man from 2004.

NixOS is probably the best modern option for those who crave building the whole world from source.
yep, already deployed fixes to our fleet (NixOS for the win)
Or just use it in a podman quadlet?

stable-alpine-slim docker iamge is only 14MB?

Alpine recently had https://sshhole.com/

Not saying that thie image is affected (I don't know), but small footprint does not guarantee security either. It can hit systems of any complexity these days.

Small footprint inherently means less code to audit.

Containers by default enforce some level of restrictions and a sandbox around it all.

If someone does break alpine, nginx, they would still need to get out of the container sandbox?

nginx when hosed gives full access to the system.

Depends on what type of continers.

As a Redhat container developer (IIRC) put it a long time ago: Containers do not contain.

Especially with docker everything running as host root opens new problems. Rootless containers as podman are more complex, so more code again. And user namespaces had their own vulnerabilities.

No simple answer to security...

...or you could use Gentoo.
Keep the flame alive!
Embrace true chaos and let an LLM do the config file merges for you in Portage.
LLMs love gentoo they go hog wild.

Which may be good or bad.

You can also add nginx.org repos and install the updated versions from there. https://nginx.org/en/linux_packages.html
That is a very well written page. I am pleasantly surprised that they provide detailed instructions to verify the package signature before installation.
FWIW, for nodes that don't have packages, I compiled from source under /opt and deploy scripts check equal or higher version so it will auto switch back when the new packages are installed. Seemed less risky than disabling http 2.
It makes more sense to install services like nginx via the official containers. In the modern world, the OS is for base services only.
The distributions can customize packages with sensible defaults. Debian usually does, and is incredibly convenient. They usually disable features most people don't use, and allow you to easily switch them on if you choose.
You are aware of the massive vulnerabilities coming out across software eco-systems recently right?

Ubuntu and other distros have not kept up.

Podman container auto-updates to the latest upstream. It is a minimal surface area given alpine images. Security first containment.

In this day and age with AI attackers and zero-days it is absolutely daft to still treat servers as the old-school pets model.

> Podman container auto-updates to the latest upstream

Doesn't this make the system more susceptible to supply chain attacks?

Sure but the trade off is faster patches from upstream and actual containment if something is exploited in the wild.

My nginx instance is very very tightly scoped for what privileges, file system space and capabilities it can access.

If someone exploits nginx on host, they have a remote shell and access to everything.

Agreed. At a previous job all the important stuff came from repos that always shipped latest.
This looks like it was patched in Ubuntu on the 12th?

https://ubuntu.com/security/notices/USN-9090-1

This Ubuntu security notice is about an Apache vulnerability, not nginx.
> Several security issues were fixed in Apache HTTP Server.

Um, what does this have to do with NGINX?